anv: Use nir_foreach_image_variable

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4743>
This commit is contained in:
Caio Marcelo de Oliveira Filho 2021-06-25 14:40:35 -07:00 committed by Marge Bot
parent ff39916ce7
commit 26582db077

View file

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