freedreno/a2xx: ir2: check opcode on the right instruction in export cp
authorJonathan Marek <jonathan@marek.ca>
Thu, 5 Sep 2019 15:21:16 +0000 (11:21 -0400)
committerJonathan Marek <jonathan@marek.ca>
Fri, 6 Sep 2019 02:24:29 +0000 (02:24 +0000)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/freedreno/a2xx/ir2_cp.c

index 0e16bdaa4c1ae0cbb8c9f15649b1311e12bf787e..2b165b3353bdcc45d1d3610d5376b8c9eb7fd9cf 100644 (file)
@@ -205,7 +205,7 @@ void cp_export(struct ir2_context *ctx)
                        memset(p->ssa.comp, 0, sizeof(p->ssa.comp));
                        p->alu.saturate |= instr->alu.saturate;
 
-                       switch (instr->alu.vector_opc) {
+                       switch (p->alu.vector_opc) {
                        case PRED_SETE_PUSHv ... PRED_SETGTE_PUSHv:
                        case DOT2ADDv:
                        case DOT3v: