From 1be91bd9d8e44986aacd91755f357cbf84d6599a Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 9 Mar 2017 11:13:52 -0800 Subject: i965/fs: Return progress from demote_sample_qualifiers(). Reviewed-by: Jason Ekstrand --- src/intel/compiler/brw_fs.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 099b09b5dd1..9dc21ac5e38 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -6359,9 +6359,11 @@ move_interpolation_to_top(nir_shader *nir) * * Useful when rendering to a non-multisampled buffer. */ -static void +static bool demote_sample_qualifiers(nir_shader *nir) { + bool progress = true; + nir_foreach_function(f, nir) { if (!f->impl) continue; @@ -6386,6 +6388,7 @@ demote_sample_qualifiers(nir_shader *nir) nir_ssa_def_rewrite_uses(&intrin->dest.ssa, nir_src_for_ssa(centroid)); nir_instr_remove(instr); + progress = true; } } @@ -6393,6 +6396,8 @@ demote_sample_qualifiers(nir_shader *nir) ((unsigned) nir_metadata_block_index | (unsigned) nir_metadata_dominance)); } + + return progress; } /** -- cgit v1.2.3