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>
This commit is contained in:
Connor Abbott
2023-03-10 00:01:54 +01:00
committed by Marge Bot
parent 37748bbe78
commit 4ffef73bf5

View File

@@ -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
*/