ir3: Fix valid flags for STIB

Disallow immediates for the source. This was hidden by the fact that we
didn't copy-propagate trivial collect instructions.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10076>
This commit is contained in:
Connor Abbott 2021-02-19 18:03:08 +01:00 committed by Marge Bot
parent 94beaa1d92
commit dcc26a3945

View file

@ -761,6 +761,7 @@ ir3_valid_flags(struct ir3_instruction *instr, unsigned n,
*/
switch (instr->opc) {
case OPC_LDIB:
case OPC_STIB:
case OPC_LDC:
case OPC_RESINFO:
if (n != 0)