freedreno/ir3: Add new LDLW/STLW instructions
[mesa.git] / src / freedreno / ir3 / ir3_legalize.c
index 5a866abf1782ed25440b9d539bb575179f080981..1af80367e50af8497b98aa96f3b4e98ffb3007e0 100644 (file)
@@ -248,7 +248,7 @@ legalize_block(struct ir3_legalize_ctx *ctx, struct ir3_block *block)
                        /* seems like ldlv needs (ss) bit instead??  which is odd but
                         * makes a bunch of flat-varying tests start working on a4xx.
                         */
-                       if ((n->opc == OPC_LDLV) || (n->opc == OPC_LDL))
+                       if ((n->opc == OPC_LDLV) || (n->opc == OPC_LDL) || (n->opc == OPC_LDLW))
                                regmask_set(&state->needs_ss, n->regs[0]);
                        else
                                regmask_set(&state->needs_sy, n->regs[0]);