summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-03-15 18:57:20 -0700
committerEric Anholt <[email protected]>2016-03-16 11:28:34 -0700
commitb4f45f319cc5cb833b4581447c45656cdeed025a (patch)
tree6e4e6a26a8f3c7bedd9acc52f73891e0b2668169 /src/gallium
parenta298fb15afa91d866c78f80fbd71bafeb9f36fda (diff)
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.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc4/vc4_qir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c
index 65f0067c61e..fd1192f340c 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] ||