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

Author: Eric Anholt <e...@anholt.net>
Date:   Mon Feb 15 14:43:38 2016 -0800

vc4: Don't treat conditional MOVs as raw MOV.

The two consumers want to know that the destination will be exactly the
source, which is not true if we might not set the destination.

Signed-off-by: Eric Anholt <e...@anholt.net>

---

 src/gallium/drivers/vc4/vc4_qir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/vc4/vc4_qir.c 
b/src/gallium/drivers/vc4/vc4_qir.c
index efbb69b..f9eb0e1 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -193,6 +193,7 @@ qir_is_raw_mov(struct qinst *inst)
         return ((inst->op == QOP_MOV ||
                  inst->op == QOP_FMOV ||
                  inst->op == QOP_MMOV) &&
+                inst->cond == QPU_COND_ALWAYS &&
                 !inst->dst.pack &&
                 !inst->src[0].pack);
 }

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to