nir_lower_mem_access_bit_sizes: support 64-bit offsets

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31904>
This commit is contained in:
Rhys Perry 2024-10-29 15:09:47 +00:00 committed by Marge Bot
parent 0619e4db63
commit e2dd36c66e

View file

@ -126,7 +126,7 @@ lower_mem_load(nir_builder *b, nir_intrinsic_instr *intrin,
uint64_t align_mask = requested.align - 1;
nir_def *chunk_offset = nir_iadd_imm(b, offset, chunk_start);
nir_def *pad = nir_iand_imm(b, chunk_offset, align_mask);
nir_def *pad = nir_u2u32(b, nir_iand_imm(b, chunk_offset, align_mask));
chunk_offset = nir_iand_imm(b, chunk_offset, ~align_mask);
nir_intrinsic_instr *load =