mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 13:40:29 +01:00
i965/fs: don't propagate 64-bit immediates
They can only be used with 1-src instructions, which practically (since we should've constant-propagated away all 1-src instructions with 64-bit immediates in NIR) means that they must be kept in separate MOV's and can't be propagated. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
0f1690fd95
commit
0f2e227d5c
1 changed files with 2 additions and 0 deletions
|
|
@ -508,6 +508,8 @@ fs_visitor::try_constant_propagate(fs_inst *inst, acp_entry *entry)
|
|||
|
||||
if (entry->src.file != IMM)
|
||||
return false;
|
||||
if (type_sz(entry->src.type) > 4)
|
||||
return false;
|
||||
if (entry->saturate)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue