From 0c1801706eb9006a13ca15c5ab59980c99774e5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 5 Aug 2022 04:36:57 -0400 Subject: [PATCH] ac/llvm: handle external textures in ac_nir_lower_resinfo Fixes: 4f622d62d0dd8 - ac/nir: add ac_nir_lower_resinfo Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6993 Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/amd/common/ac_nir_lower_resinfo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/common/ac_nir_lower_resinfo.c b/src/amd/common/ac_nir_lower_resinfo.c index 3aa5071..be5d6a8 100644 --- a/src/amd/common/ac_nir_lower_resinfo.c +++ b/src/amd/common/ac_nir_lower_resinfo.c @@ -180,6 +180,7 @@ lower_query_size(nir_builder *b, nir_ssa_def *desc, nir_src *lod, case GLSL_SAMPLER_DIM_2D: case GLSL_SAMPLER_DIM_MS: case GLSL_SAMPLER_DIM_RECT: + case GLSL_SAMPLER_DIM_EXTERNAL: result = is_array ? nir_vec3(b, width, height, layers) : nir_vec2(b, width, height); break; case GLSL_SAMPLER_DIM_3D: -- 2.7.4