summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Abbott <cwabbott0@gmail.com>2023-03-09 22:29:54 +0100
committerMarge Bot <emma+marge@anholt.net>2024-04-26 12:55:13 +0000
commita56de0774b1bf867de0a03a251ef138a6b17416a (patch)
tree36289c22dc964c4d38de9584de724265a49c7c43
parentae2db62aab2f39ae72d935aa4c75562dbf59124e (diff)
ir3/legalize: Take (ss) into account in WaR hazards
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22075>
-rw-r--r--src/freedreno/ir3/ir3_legalize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/freedreno/ir3/ir3_legalize.c b/src/freedreno/ir3/ir3_legalize.c
index 0772027f585..74d9411e2af 100644
--- a/src/freedreno/ir3/ir3_legalize.c
+++ b/src/freedreno/ir3/ir3_legalize.c
@@ -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);
}