Revert "nir/validate: validate the stride for deref_ptr_as_array"
authorKarol Herbst <karolherbst@gmail.com>
Thu, 14 May 2020 17:36:43 +0000 (17:36 +0000)
committerKarol Herbst <karolherbst@gmail.com>
Thu, 14 May 2020 17:36:43 +0000 (17:36 +0000)
This reverts commit 667e14e7bd759a77e732c4de09fb978ee3816eaf

src/compiler/nir/nir_validate.c

index 70ddda3e98bda10311bb6d9723662c3993ef42ab..998017d504ab56959b022f74a56ed29753487bdc 100644 (file)
@@ -482,7 +482,6 @@ validate_deref_instr(nir_deref_instr *instr, validate_state *state)
                          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;