From 2ab5546a96780c1589f587b84366b074cddd8c6a Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 15 Oct 2021 14:15:32 -0500 Subject: [PATCH] nir: Allow texture types Reviewed-by: Jesse Natalie Part-of: --- src/compiler/nir/nir_validate.c | 1 + 1 file changed, 1 insertion(+) 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; }