ac/llvm: handle external textures in ac_nir_lower_resinfo

Fixes: 4f622d62d0 - ac/nir: add ac_nir_lower_resinfo
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6993

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17902>
This commit is contained in:
Marek Olšák 2022-08-05 04:36:57 -04:00 committed by Marge Bot
parent bdfaf51014
commit 0c1801706e

View file

@ -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: