mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 23:10:11 +01:00
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:
parent
0619e4db63
commit
e2dd36c66e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue