mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nir/load_store_vectorize: Use nir_iadd_imm for offsets
This makes it capable of handling 64-bit offsets Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4367>
This commit is contained in:
parent
04d08ea149
commit
b6273291b5
1 changed files with 1 additions and 1 deletions
|
|
@ -793,7 +793,7 @@ vectorize_loads(nir_builder *b, struct vectorize_ctx *ctx,
|
|||
b->cursor = nir_before_instr(first->instr);
|
||||
|
||||
nir_ssa_def *new_base = first->intrin->src[info->base_src].ssa;
|
||||
new_base = nir_iadd(b, new_base, nir_imm_int(b, -(high_start / 8u)));
|
||||
new_base = nir_iadd_imm(b, new_base, -(int)(high_start / 8u));
|
||||
|
||||
nir_instr_rewrite_src(first->instr, &first->intrin->src[info->base_src],
|
||||
nir_src_for_ssa(new_base));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue