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

Author: Eric Anholt <[email protected]>
Date:   Mon May  2 12:36:56 2016 -0700

vc4: When emitting an instruction to an existing temp, mark it non-SSA.

Prevents a bug in the later control-flow support series.

---

 src/gallium/drivers/vc4/vc4_qir.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/vc4/vc4_qir.h 
b/src/gallium/drivers/vc4/vc4_qir.h
index 7ea6ec8..04ca8ed 100644
--- a/src/gallium/drivers/vc4/vc4_qir.h
+++ b/src/gallium/drivers/vc4/vc4_qir.h
@@ -533,6 +533,8 @@ static inline struct qinst *                                
             \
 qir_##name##_dest(struct vc4_compile *c, struct qreg dest,               \
                   struct qreg a)                                         \
 {                                                                        \
+        if (dest.file == QFILE_TEMP)                                     \
+                c->defs[dest.index] = NULL;                              \
         return qir_emit_nodef(c, qir_inst(QOP_##name, dest, a,           \
                                           c->undef));                    \
 }

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to