mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-11 11:20:41 +01:00
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:
parent
a298fb15af
commit
b4f45f319c
1 changed files with 3 additions and 0 deletions
|
|
@ -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] ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue