diff options
author | Jason Ekstrand <[email protected]> | 2016-04-26 20:21:27 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-04-28 15:54:48 -0700 |
commit | e63766fb4b54bc88756ee7e82c3ff8cec0dc5561 (patch) | |
tree | d86854f08e9b437ead58cab32d798b9aa815e4da /src/compiler/nir/nir.c | |
parent | 8564916d01b31ca5665a27366e483738541ba5a3 (diff) |
nir: Switch the arguments to nir_foreach_parallel_copy_entry
This matches the "foreach x in container" pattern found in many other
programming languages.
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.c')
-rw-r--r-- | src/compiler/nir/nir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 238f5257602..0a8b0836ab0 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -981,7 +981,7 @@ static bool visit_parallel_copy_dest(nir_parallel_copy_instr *instr, nir_foreach_dest_cb cb, void *state) { - nir_foreach_parallel_copy_entry(instr, entry) { + nir_foreach_parallel_copy_entry(entry, instr) { if (!cb(&entry->dest, state)) return false; } @@ -1174,7 +1174,7 @@ static bool visit_parallel_copy_src(nir_parallel_copy_instr *instr, nir_foreach_src_cb cb, void *state) { - nir_foreach_parallel_copy_entry(instr, entry) { + nir_foreach_parallel_copy_entry(entry, instr) { if (!visit_src(&entry->src, cb, state)) return false; } |