diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index c109aac1da3..55557e7a910 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -506,8 +506,8 @@ vtn_pointer_dereference(struct vtn_builder *b, type = type->array_element; } tail = nir_build_deref_array(&b->nb, tail, arr_index); + tail->arr.in_bounds = deref_chain->in_bounds; } - tail->arr.in_bounds = deref_chain->in_bounds; access |= type->access; }