From a6ebd4ab08a7a39e0b8f0d58ca8a35e081f0fe5e Mon Sep 17 00:00:00 2001 From: Jonathan Marek Date: Thu, 5 Sep 2019 11:21:16 -0400 Subject: [PATCH] freedreno/a2xx: ir2: check opcode on the right instruction in export cp Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark Reviewed-by: Eric Anholt --- src/gallium/drivers/freedreno/a2xx/ir2_cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/a2xx/ir2_cp.c b/src/gallium/drivers/freedreno/a2xx/ir2_cp.c index 0e16bdaa4c1..2b165b3353b 100644 --- a/src/gallium/drivers/freedreno/a2xx/ir2_cp.c +++ b/src/gallium/drivers/freedreno/a2xx/ir2_cp.c @@ -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: -- 2.30.2