mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
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:
parent
ff39916ce7
commit
26582db077
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
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);
|
enum glsl_sampler_dim dim = glsl_get_sampler_dim(glsl_type);
|
||||||
|
|
||||||
const uint32_t set = var->data.descriptor_set;
|
const uint32_t set = var->data.descriptor_set;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue