diff options
author | Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 2021-06-25 14:40:35 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-10-15 14:58:55 +0000 |
commit | 26582db077500a4461ae6ef944a0a8977a03bb92 (patch) | |
tree | 8840eb555a6ae41898a135dfb2b5133dc8ed7a9d /src/intel | |
parent | ff39916ce71b3842f825202c11a82461bd39e459 (diff) |
anv: Use nir_foreach_image_variable
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4743>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/vulkan/anv_nir_apply_pipeline_layout.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c index d39eae12839..3d9a062075b 100644 --- a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c +++ b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c @@ -1586,12 +1586,8 @@ anv_nir_apply_pipeline_layout(const struct anv_physical_device *pdevice, } } - nir_foreach_uniform_variable(var, shader) { + nir_foreach_image_variable(var, shader) { const struct glsl_type *glsl_type = glsl_without_array(var->type); - - if (!glsl_type_is_image(glsl_type)) - continue; - enum glsl_sampler_dim dim = glsl_get_sampler_dim(glsl_type); const uint32_t set = var->data.descriptor_set; |