Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4068>
parent->deref_type == nir_deref_type_array ||
parent->deref_type == nir_deref_type_ptr_as_array ||
parent->deref_type == nir_deref_type_cast);
+ validate_assert(state, nir_deref_instr_ptr_as_array_stride(parent));
validate_src(&instr->arr.index, state,
nir_dest_bit_size(instr->dest), 1);
break;