mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
aco: Use zero for MUBUF/MTBUF when soffset is undefined.
No Fossil DB changes on Rembrandt (GFX10.3). Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21930>
This commit is contained in:
parent
b3933ffe60
commit
40676da381
1 changed files with 6 additions and 0 deletions
|
|
@ -4428,6 +4428,9 @@ mubuf_load_callback(Builder& bld, const LoadEmitInfo& info, Temp offset, unsigne
|
|||
soffset = Operand(info.soffset);
|
||||
}
|
||||
|
||||
if (soffset.isUndefined())
|
||||
soffset = Operand::zero();
|
||||
|
||||
bool offen = !vaddr.isUndefined();
|
||||
bool idxen = info.idx.id();
|
||||
|
||||
|
|
@ -5486,6 +5489,9 @@ mtbuf_load_callback(Builder& bld, const LoadEmitInfo& info, Temp offset, unsigne
|
|||
soffset = Operand(info.soffset);
|
||||
}
|
||||
|
||||
if (soffset.isUndefined())
|
||||
soffset = Operand::zero();
|
||||
|
||||
const bool offen = !vaddr.isUndefined();
|
||||
const bool idxen = info.idx.id();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue