mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-28 16:10:23 +01:00
nir/opt_shrink_vectors: add support for offset_shift
Signed-off-by: Job Noorman <jnoorman@igalia.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35092>
This commit is contained in:
parent
f876adc372
commit
cd72d8e366
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ shrink_dest_to_read_mask(nir_def *def, bool shrink_start)
|
|||
}
|
||||
|
||||
nir_builder b = nir_builder_at(nir_before_instr(&intr->instr));
|
||||
nir_src_rewrite(offset_src, nir_iadd_imm(&b, offset_src->ssa, offset));
|
||||
nir_add_io_offset(&b, intr, offset);
|
||||
}
|
||||
|
||||
/* Reswizzle sources, which must be ALU since they have swizzle */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue