From 4ffef73bf5c7801ab6c4e1448931fdb26f947f43 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Fri, 10 Mar 2023 00:01:54 +0100 Subject: [PATCH] ir3: Immediate source for stc is invalid For some reason some CTS tests are hitting this after removing the single-source collect. Part-of: --- src/freedreno/ir3/ir3.c | 3 +++ 1 file changed, 3 insertions(+) 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 */