nir: Add a nir_foreach_variable macro
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 3 Oct 2015 01:15:06 +0000 (18:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 3 Oct 2015 04:21:16 +0000 (21:21 -0700)
commit050e4787d3526b8341dd76b59442356f9737ee96
tree745536973c0279b53d8d23253b59b28630fc7f4e
parentca941799ce76eac8afe2503fbacffee057e949d3
nir: Add a nir_foreach_variable macro

This is a common enough operation that it's nice to not have to think about
the arguments to foreach_list_typed every time.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_clip.c
src/glsl/nir/nir_lower_io.c
src/glsl/nir/nir_lower_outputs_to_temporaries.c
src/glsl/nir/nir_lower_two_sided_color.c
src/glsl/nir/nir_print.c
src/glsl/nir/nir_validate.c