spirv: set in_bounds for ptr_as_array

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38110>
This commit is contained in:
Job Noorman 2025-10-28 14:34:32 +01:00 committed by Marge Bot
parent 0ac55b786a
commit 0a6d698482

View file

@ -484,6 +484,7 @@ vtn_pointer_dereference(struct vtn_builder *b,
nir_def *index = vtn_access_link_as_ssa(b, deref_chain->link[0], 1,
tail->def.bit_size);
tail = nir_build_deref_ptr_as_array(&b->nb, tail, index);
tail->arr.in_bounds = deref_chain->in_bounds;
idx++;
}