summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Abbott <cwabbott0@gmail.com>2023-03-10 00:01:54 +0100
committerMarge Bot <emma+marge@anholt.net>2024-04-26 12:55:13 +0000
commit4ffef73bf5c7801ab6c4e1448931fdb26f947f43 (patch)
treea023e9c4fee0d0463f08bd30adf6630ed0318f2d
parent37748bbe78064ed73bc08498f4b0f35f7e05b866 (diff)
ir3: Immediate source for stc is invalid
For some reason some CTS tests are hitting this after removing the single-source collect. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22075>
-rw-r--r--src/freedreno/ir3/ir3.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c
index 81321ab2842..ab3077594ad 100644
--- a/src/freedreno/ir3/ir3.c
+++ b/src/freedreno/ir3/ir3.c
@@ -1322,6 +1322,9 @@ ir3_valid_flags(struct ir3_instruction *instr, unsigned n, unsigned flags)
if (instr->opc == OPC_LDG_A && (n < 2))
return false;
+ if (instr->opc == OPC_STC && n != 0)
+ return false;
+
/* as with atomics, these cat6 instrs can only have an immediate
* for SSBO/IBO slot argument
*/