Mesa (master): freedreno/a2xx: ir2: check opcode on the right instruction in export cp

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 6 02:24:44 UTC 2019


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

Author: Jonathan Marek <jonathan at marek.ca>
Date:   Thu Sep  5 11:21:16 2019 -0400

freedreno/a2xx: ir2: check opcode on the right instruction in export cp

Signed-off-by: Jonathan Marek <jonathan at marek.ca>
Reviewed-by: Rob Clark <robdclark at chromium.org>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 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:




More information about the mesa-commit mailing list