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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user