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:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user