nir: Add a nir_foreach_uniform_variable helper
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 18 Jul 2020 23:45:18 +0000 (18:45 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 17:38:58 +0000 (17:38 +0000)
commitfeb32f898c6d36f3c81c3ce2d5a3f8ddd915e332
tree364cf231b2b65b1bce4553b7040b7bc32deca946
parent92dcda5ce9185125453ff376957cbf32e348edfe
nir: Add a nir_foreach_uniform_variable helper

This one's a bit more complex because it filters off only those
variables with mode == nir_var_uniform.  As such, it's not exactly a
drop-in replacement for nir_foreach_variable(var, &nir->uniforms).

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
13 files changed:
src/broadcom/compiler/vir.c
src/compiler/glsl/gl_nir_link_atomics.c
src/compiler/nir/nir.h
src/compiler/nir/nir_gather_info.c
src/compiler/nir/nir_lower_atomics_to_ssbo.c
src/gallium/auxiliary/nir/nir_draw_helpers.c
src/gallium/drivers/r600/sfn/sfn_instruction_tex.cpp
src/intel/vulkan/anv_nir_apply_pipeline_layout.c
src/mesa/drivers/dri/i965/brw_link.cpp
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp
src/mesa/state_tracker/st_glsl_to_nir.cpp
src/mesa/state_tracker/st_nir_lower_builtin.c
src/mesa/state_tracker/st_nir_lower_tex_src_plane.c