ir3/legalize: Take (ss) into account in WaR hazards

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22075>
This commit is contained in:
Connor Abbott
2023-03-09 22:29:54 +01:00
committed by Marge Bot
parent ae2db62aab
commit a56de0774b
+1 -1
View File
@@ -565,7 +565,7 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block)
/* both tex/sfu appear to not always immediately consume
* their src register(s):
*/
if (is_tex(n) || is_sfu(n) || is_mem(n)) {
if (is_tex(n) || is_mem(n) || is_ss_producer(n)) {
foreach_src (reg, n) {
regmask_set(&state->needs_ss_war, reg);
}