From 9464d8c49813aba77285e7465b96e92a91ed327c Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 26 Apr 2016 20:26:42 -0700 Subject: nir: Switch the arguments to nir_foreach_function This matches the "foreach x in container" pattern found in many other programming languages. Generated by the following regular expression: s/nir_foreach_function(\([^,]*\),\s*\([^,]*\))/nir_foreach_function(\2, \1)/ Reviewed-by: Ian Romanick --- src/intel/vulkan/anv_nir_apply_pipeline_layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/intel/vulkan/anv_nir_apply_pipeline_layout.c') diff --git a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c index e1fec77adb0..91f4322f83a 100644 --- a/src/intel/vulkan/anv_nir_apply_pipeline_layout.c +++ b/src/intel/vulkan/anv_nir_apply_pipeline_layout.c @@ -267,7 +267,7 @@ anv_nir_apply_pipeline_layout(struct anv_pipeline *pipeline, state.set[s].image_offsets = rzalloc_array(mem_ctx, uint8_t, count); } - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (!function->impl) continue; @@ -327,7 +327,7 @@ anv_nir_apply_pipeline_layout(struct anv_pipeline *pipeline, } } - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (!function->impl) continue; -- cgit v1.2.3