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.
This commit is contained in:
@@ -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] ||
|
||||
|
||||
Reference in New Issue
Block a user