From b4f45f319cc5cb833b4581447c45656cdeed025a Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 15 Mar 2016 18:57:20 -0700 Subject: [PATCH] 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 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] || -- 2.30.2