diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c index 04e25dff1c0..1139a29a9a1 100644 --- a/src/compiler/nir/nir_validate.c +++ b/src/compiler/nir/nir_validate.c @@ -889,6 +889,7 @@ validate_tex_instr(nir_tex_instr *instr, validate_state *state) break; validate_assert(state, glsl_type_is_image(deref->type) || + glsl_type_is_texture(deref->type) || glsl_type_is_sampler(deref->type)); break; }