mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
aco: fix SMEM load_global_amd with non-zero offset
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Fixes: 3e9517c757 ("aco: implement _amd global access intrinsics")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16775>
This commit is contained in:
parent
695f66cecd
commit
4d9f3fcf9c
1 changed files with 2 additions and 0 deletions
|
|
@ -4344,6 +4344,8 @@ smem_load_callback(Builder& bld, const LoadEmitInfo& info, Temp offset, unsigned
|
|||
if (offset.id() && const_offset)
|
||||
load->operands[1] = bld.sop2(aco_opcode::s_add_u32, bld.def(s1), bld.def(s1, scc), offset,
|
||||
Operand::c32(const_offset));
|
||||
else if (offset.id())
|
||||
load->operands[1] = Operand(offset);
|
||||
else
|
||||
load->operands[1] = Operand::c32(const_offset);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue