summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2015-10-09 07:02:57 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2015-10-15 07:31:09 -0700
commit635daef76ede735d97e202446d6477b7d2cf2f86 (patch)
tree63cc8c19bdbde70592c1542bf3579518d8d13785 /src/mesa/program
parent5d954fd5cb4b35b896b90100956d45eaa30edacb (diff)
downloadexternal_mesa3d-635daef76ede735d97e202446d6477b7d2cf2f86.zip
external_mesa3d-635daef76ede735d97e202446d6477b7d2cf2f86.tar.gz
external_mesa3d-635daef76ede735d97e202446d6477b7d2cf2f86.tar.bz2
nir/prog: Use nir_foreach_variable
Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/prog_to_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index fc00534..d9b1854 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -923,7 +923,7 @@ ptn_add_output_stores(struct ptn_compile *c)
{
nir_builder *b = &c->build;
- foreach_list_typed(nir_variable, var, node, &b->shader->outputs) {
+ nir_foreach_variable(var, &b->shader->outputs) {
nir_intrinsic_instr *store =
nir_intrinsic_instr_create(b->shader, nir_intrinsic_store_var);
store->num_components = glsl_get_vector_elements(var->type);