nir/gl: Move glsl_type::sampler_target() into a helper in its one caller
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Fri, 4 Aug 2023 11:16:00 +0000 (06:16 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 8 Aug 2023 01:50:05 +0000 (01:50 +0000)
commitf2f4e811bee9499a545af5f7c27c47164aaa6373
tree35c749854f64f73a79dd287627c332d8bb563497
parentf17c5297d7a01eb37815f96bbf3a87667a2f3261
nir/gl: Move glsl_type::sampler_target() into a helper in its one caller

The new version also doesn't need to worry about arrays of textures
because the caller already takes care of that.

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24503>
src/compiler/glsl/gl_nir_link_uniforms.c
src/compiler/glsl/glsl_parser_extras.h
src/compiler/glsl_types.cpp
src/compiler/glsl_types.h
src/compiler/nir_types.cpp