aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_opt_peephole_select.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-01-20 16:30:14 -0800
committerJason Ekstrand <[email protected]>2015-01-20 16:53:29 -0800
commit194f6235b32cd0c54547a3913e463cf691d011d6 (patch)
treed93c654666139b58961430e80433b8342b88a86d /src/glsl/nir/nir_opt_peephole_select.c
parent169d7e5cb1cce73d39e40717d5f49ac30b626d1b (diff)
nir: Add a nir_foreach_phi_src helper macro
Reviewed-by: Connor Abbott <cwabbott02gmail.com>
Diffstat (limited to 'src/glsl/nir/nir_opt_peephole_select.c')
-rw-r--r--src/glsl/nir/nir_opt_peephole_select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_opt_peephole_select.c b/src/glsl/nir/nir_opt_peephole_select.c
index 3e8c93882d2..5d2f5d6208d 100644
--- a/src/glsl/nir/nir_opt_peephole_select.c
+++ b/src/glsl/nir/nir_opt_peephole_select.c
@@ -140,7 +140,7 @@ nir_opt_peephole_select_block(nir_block *block, void *void_state)
memset(sel->src[0].swizzle, 0, sizeof sel->src[0].swizzle);
assert(exec_list_length(&phi->srcs) == 2);
- foreach_list_typed(nir_phi_src, src, node, &phi->srcs) {
+ nir_foreach_phi_src(phi, src) {
assert(src->pred == then_block || src->pred == else_block);
assert(src->src.is_ssa);