mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nvc0/ir: fix load propagation for sub 4 byte addressing
Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6433>
This commit is contained in:
parent
036f1c29fc
commit
1c9efcd7a6
1 changed files with 6 additions and 0 deletions
|
|
@ -387,6 +387,12 @@ TargetNVC0::insnCanLoad(const Instruction *i, int s,
|
|||
}
|
||||
}
|
||||
|
||||
// only loads can do sub 4 byte addressing
|
||||
if (sf == FILE_MEMORY_CONST &&
|
||||
(ld->getSrc(0)->reg.data.offset & 0x3)
|
||||
&& i->op != OP_LOAD)
|
||||
return false;
|
||||
|
||||
// not all instructions support full 32 bit immediates
|
||||
if (sf == FILE_IMMEDIATE) {
|
||||
Storage ® = ld->getSrc(0)->asImm()->reg;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue