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

Author: Eric Anholt <e...@anholt.net>
Date:   Tue Mar 15 18:57:20 2016 -0700

vc4: Add a safety check for setting flags.

If a pack was on the src reg, should it be a float, int, or mul unpack?
Just complain, instead.

---

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

diff --git a/src/gallium/drivers/vc4/vc4_qir.c 
b/src/gallium/drivers/vc4/vc4_qir.c
index 65f0067..fd1192f 100644
--- a/src/gallium/drivers/vc4/vc4_qir.c
+++ b/src/gallium/drivers/vc4/vc4_qir.c
@@ -488,6 +488,9 @@ qir_SF(struct vc4_compile *c, struct qreg src)
         if (!list_empty(&c->instructions))
                 last_inst = (struct qinst *)c->instructions.prev;
 
+        /* We don't have any way to guess which kind of MOV is implied. */
+        assert(!src.pack);
+
         if (src.file != QFILE_TEMP ||
             !c->defs[src.index] ||
             last_inst != c->defs[src.index] ||

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

Reply via email to