From: Matt Turner Date: Thu, 9 Mar 2017 19:05:08 +0000 (-0800) Subject: i965/fs: Return progress from move_interpolation_to_top(). X-Git-Tag: upstream/17.1.0~1058 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd3351246ca6243a45df6d3790cff14ab9a9b529;p=platform%2Fupstream%2Fmesa.git i965/fs: Return progress from move_interpolation_to_top(). And mark as static at the same time. Reviewed-by: Jason Ekstrand --- diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index c410efc..099b09b 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -6293,9 +6293,11 @@ computed_depth_mode(const nir_shader *shader) * * This should be replaced by global value numbering someday. */ -void +static bool move_interpolation_to_top(nir_shader *nir) { + bool progress = false; + nir_foreach_function(f, nir) { if (!f->impl) continue; @@ -6339,6 +6341,7 @@ move_interpolation_to_top(nir_shader *nir) exec_list_push_head(&top->instr_list, &move[i]->node); } cursor_node = &move[i]->node; + progress = true; } } } @@ -6347,6 +6350,8 @@ move_interpolation_to_top(nir_shader *nir) ((unsigned) nir_metadata_block_index | (unsigned) nir_metadata_dominance)); } + + return progress; } /**