summaryrefslogtreecommitdiff
path: root/src/intel
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2017-03-09 11:05:08 -0800
committerMatt Turner <mattst88@gmail.com>2017-03-23 14:34:44 -0700
commitfd3351246ca6243a45df6d3790cff14ab9a9b529 (patch)
tree5cb1ca0b4f3465ec4ba52669e90757d821f23237 /src/intel
parente0f8daeb86df73cdd76e7ae4b06203d84367d6e0 (diff)
i965/fs: Return progress from move_interpolation_to_top().
And mark as static at the same time. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
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 c410efc29d..099b09b5dd 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;
}
/**