mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-21 13:40:16 +01:00
brw: Call brw_fs_opt_algebraic less often
No shader-db or fossil-db changes on any Intel platform. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31729>
This commit is contained in:
parent
ac64b78f1f
commit
04e1783278
1 changed files with 9 additions and 7 deletions
|
|
@ -100,21 +100,24 @@ brw_fs_optimize(fs_visitor &s)
|
||||||
|
|
||||||
/* After logical SEND lowering. */
|
/* After logical SEND lowering. */
|
||||||
|
|
||||||
if (OPT(brw_fs_opt_copy_propagation_defs) || OPT(brw_fs_opt_copy_propagation))
|
if (!OPT(brw_fs_opt_copy_propagation_defs))
|
||||||
OPT(brw_fs_opt_algebraic);
|
OPT(brw_fs_opt_copy_propagation);
|
||||||
|
|
||||||
/* Identify trailing zeros LOAD_PAYLOAD of sampler messages.
|
/* Identify trailing zeros LOAD_PAYLOAD of sampler messages.
|
||||||
* Do this before splitting SENDs.
|
* Do this before splitting SENDs.
|
||||||
*/
|
*/
|
||||||
if (OPT(brw_fs_opt_zero_samples) && (OPT(brw_fs_opt_copy_propagation_defs) || OPT(brw_fs_opt_copy_propagation)))
|
if (OPT(brw_fs_opt_zero_samples)) {
|
||||||
OPT(brw_fs_opt_algebraic);
|
if (!OPT(brw_fs_opt_copy_propagation_defs)) {
|
||||||
|
OPT(brw_fs_opt_copy_propagation);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
OPT(brw_fs_opt_split_sends);
|
OPT(brw_fs_opt_split_sends);
|
||||||
OPT(brw_fs_workaround_nomask_control_flow);
|
OPT(brw_fs_workaround_nomask_control_flow);
|
||||||
|
|
||||||
if (progress) {
|
if (progress) {
|
||||||
if (OPT(brw_fs_opt_copy_propagation_defs) || OPT(brw_fs_opt_copy_propagation))
|
if (!OPT(brw_fs_opt_copy_propagation_defs))
|
||||||
OPT(brw_fs_opt_algebraic);
|
OPT(brw_fs_opt_copy_propagation);
|
||||||
|
|
||||||
/* Run after logical send lowering to give it a chance to CSE the
|
/* Run after logical send lowering to give it a chance to CSE the
|
||||||
* LOAD_PAYLOAD instructions created to construct the payloads of
|
* LOAD_PAYLOAD instructions created to construct the payloads of
|
||||||
|
|
@ -160,7 +163,6 @@ brw_fs_optimize(fs_visitor &s)
|
||||||
const bool cp1 = OPT(brw_fs_opt_copy_propagation_defs);
|
const bool cp1 = OPT(brw_fs_opt_copy_propagation_defs);
|
||||||
const bool cp2 = OPT(brw_fs_opt_copy_propagation);
|
const bool cp2 = OPT(brw_fs_opt_copy_propagation);
|
||||||
if (cp1 || cp2) {
|
if (cp1 || cp2) {
|
||||||
OPT(brw_fs_opt_algebraic);
|
|
||||||
OPT(brw_fs_opt_combine_constants);
|
OPT(brw_fs_opt_combine_constants);
|
||||||
}
|
}
|
||||||
OPT(brw_fs_opt_dead_code_eliminate);
|
OPT(brw_fs_opt_dead_code_eliminate);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue