summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-03-09 11:13:52 -0800
committerMatt Turner <[email protected]>2017-03-23 14:34:44 -0700
commit1be91bd9d8e44986aacd91755f357cbf84d6599a (patch)
tree3c73cd8480c3ed96862972f618117c283c39caf7
parentfd3351246ca6243a45df6d3790cff14ab9a9b529 (diff)
i965/fs: Return progress from demote_sample_qualifiers().
Reviewed-by: Jason Ekstrand <[email protected]>
-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;
}
/**