mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-08 16:30:27 +01:00
brw: unloop post-mem vectorize opts
There's enough looping happening elsewhere for it to not really matter. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39514>
This commit is contained in:
parent
11dba60e6e
commit
73fa431bff
1 changed files with 5 additions and 11 deletions
|
|
@ -2258,7 +2258,7 @@ brw_vectorize_lower_mem_access(nir_shader *nir,
|
|||
const struct brw_compiler *compiler,
|
||||
enum brw_robustness_flags robust_flags)
|
||||
{
|
||||
bool progress = false;
|
||||
UNUSED bool progress = false;
|
||||
|
||||
nir_load_store_vectorize_options options = {
|
||||
.modes = nir_var_mem_ubo | nir_var_mem_ssbo |
|
||||
|
|
@ -2322,16 +2322,10 @@ brw_vectorize_lower_mem_access(nir_shader *nir,
|
|||
};
|
||||
OPT(nir_lower_mem_access_bit_sizes, &mem_access_options);
|
||||
OPT(nir_lower_pack);
|
||||
|
||||
while (progress) {
|
||||
progress = false;
|
||||
|
||||
OPT(nir_opt_copy_prop);
|
||||
OPT(nir_opt_dce);
|
||||
OPT(nir_opt_cse);
|
||||
OPT(nir_opt_algebraic);
|
||||
OPT(nir_opt_constant_folding);
|
||||
}
|
||||
OPT(nir_opt_copy_prop);
|
||||
OPT(nir_opt_dce);
|
||||
OPT(nir_opt_algebraic);
|
||||
OPT(nir_opt_cse);
|
||||
|
||||
/* Do this after the vectorization & brw_nir_rebase_const_offset_ubo_loads
|
||||
* so that we maximize the offset put into the messages.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue