mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 14:50:10 +01:00
vc4: Refuse to merge instructions involving 32-bit immediate loads.
An immediate load overwrites the mul and add operations, so you can't merge with them.
This commit is contained in:
parent
25db8729dc
commit
cff8c96a0d
1 changed files with 5 additions and 0 deletions
|
|
@ -356,6 +356,11 @@ qpu_merge_inst(uint64_t a, uint64_t b)
|
|||
if (qpu_num_sf_accesses(a) && qpu_num_sf_accesses(b))
|
||||
return 0;
|
||||
|
||||
if (QPU_GET_FIELD(a, QPU_SIG) == QPU_SIG_LOAD_IMM ||
|
||||
QPU_GET_FIELD(b, QPU_SIG) == QPU_SIG_LOAD_IMM) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
ok = ok && merge_fields(&merge, a, b, QPU_SIG_MASK,
|
||||
QPU_SET_FIELD(QPU_SIG_NONE, QPU_SIG));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue