summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/compiler/brw_fs.cpp7
1 files changed, 6 insertions, 1 deletions
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;
}
/**