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:
Job Noorman 2025-08-19 10:41:46 +02:00 committed by Marge Bot
parent f876adc372
commit cd72d8e366

View file

@ -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 */