From: Jonathan Marek Date: Thu, 5 Sep 2019 15:21:16 +0000 (-0400) Subject: freedreno/a2xx: ir2: check opcode on the right instruction in export cp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6ebd4ab08a7a39e0b8f0d58ca8a35e081f0fe5e;p=mesa.git 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 --- 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: