Module: Mesa
Branch: master
Commit: dcc26a3945c3bf732b87f4b27195413e26a11b50
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=dcc26a3945c3bf732b87f4b27195413e26a11b50

Author: Connor Abbott <[email protected]>
Date:   Fri Feb 19 18:03:08 2021 +0100

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 <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10076>

---

 src/freedreno/ir3/ir3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c
index 4945e7a968d..d73d869423f 100644
--- a/src/freedreno/ir3/ir3.c
+++ b/src/freedreno/ir3/ir3.c
@@ -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)

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to