intel/brw: Pull lower_regioning out of fs_visitor

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26887>
This commit is contained in:
Caio Oliveira
2024-01-03 16:07:12 -08:00
committed by Marge Bot
parent 89866b6259
commit 06272d4883
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -5765,7 +5765,7 @@ fs_visitor::optimize()
progress = false;
OPT(brw_fs_lower_derivatives, *this);
OPT(lower_regioning);
OPT(brw_fs_lower_regioning, *this);
if (progress) {
if (OPT(brw_fs_opt_copy_propagation, *this))
OPT(brw_fs_opt_algebraic, *this);
+1 -1
View File
@@ -273,7 +273,6 @@ public:
void limit_dispatch_width(unsigned n, const char *msg);
bool lower_uniform_pull_constant_loads();
bool lower_load_payload();
bool lower_regioning();
bool lower_find_live_channel();
bool lower_scoreboard();
@@ -599,6 +598,7 @@ bool brw_fs_lower_derivatives(fs_visitor &s);
bool brw_fs_lower_integer_multiplication(fs_visitor &s);
bool brw_fs_lower_logical_sends(fs_visitor &s);
bool brw_fs_lower_pack(fs_visitor &s);
bool brw_fs_lower_regioning(fs_visitor &s);
bool brw_fs_lower_simd_width(fs_visitor &s);
bool brw_fs_lower_sub_sat(fs_visitor &s);
@@ -663,15 +663,15 @@ namespace {
}
bool
fs_visitor::lower_regioning()
brw_fs_lower_regioning(fs_visitor &s)
{
bool progress = false;
foreach_block_and_inst_safe(block, fs_inst, inst, cfg)
progress |= lower_instruction(this, block, inst);
foreach_block_and_inst_safe(block, fs_inst, inst, s.cfg)
progress |= lower_instruction(&s, block, inst);
if (progress)
invalidate_analysis(DEPENDENCY_INSTRUCTIONS | DEPENDENCY_VARIABLES);
s.invalidate_analysis(DEPENDENCY_INSTRUCTIONS | DEPENDENCY_VARIABLES);
return progress;
}