mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 09:40:08 +01:00
freedreno: disallow cat4 immed src
Normally this would never happen (constant-propagation in NIR would eliminate the instruction), except it does happen for 'undef' which we turn into immed 0.0 for bookkeeping purposes. Signed-off-by: Rob Clark <robclark@freedesktop.org>
This commit is contained in:
parent
76c6cdd36a
commit
dfd23abdcc
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ static bool valid_flags(struct ir3_instruction *instr, unsigned n,
|
|||
case 4:
|
||||
/* seems like blob compiler avoids const as src.. */
|
||||
/* TODO double check if this is still the case on a4xx */
|
||||
if (flags & IR3_REG_CONST)
|
||||
if (flags & (IR3_REG_CONST | IR3_REG_IMMED))
|
||||
return false;
|
||||
if (flags & (IR3_REG_SABS | IR3_REG_SNEG))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue