mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
microsoft/compiler: Move nir_lower_undef_to_zero out of the optimization loop
Otherwise after https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7710
I'm getting fighting between this pass and nir_opt_if.
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31003>
(cherry picked from commit 44cc67e659)
This commit is contained in:
parent
25235a9f2e
commit
12deeb2a62
2 changed files with 4 additions and 3 deletions
|
|
@ -644,7 +644,7 @@
|
|||
"description": "microsoft/compiler: Move nir_lower_undef_to_zero out of the optimization loop",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -6313,7 +6313,6 @@ optimize_nir(struct nir_shader *s, const struct nir_to_dxil_options *opts)
|
|||
NIR_PASS(progress, s, nir_lower_alu);
|
||||
NIR_PASS(progress, s, nir_opt_constant_folding);
|
||||
NIR_PASS(progress, s, nir_opt_undef);
|
||||
NIR_PASS(progress, s, nir_lower_undef_to_zero);
|
||||
NIR_PASS(progress, s, nir_opt_deref);
|
||||
NIR_PASS(progress, s, dxil_nir_lower_upcast_phis, opts->lower_int16 ? 32 : 16);
|
||||
NIR_PASS(progress, s, nir_lower_64bit_phis);
|
||||
|
|
@ -6328,6 +6327,8 @@ optimize_nir(struct nir_shader *s, const struct nir_to_dxil_options *opts)
|
|||
progress = false;
|
||||
NIR_PASS(progress, s, nir_opt_algebraic_late);
|
||||
} while (progress);
|
||||
|
||||
NIR_PASS_V(s, nir_lower_undef_to_zero);
|
||||
}
|
||||
|
||||
static
|
||||
|
|
@ -6599,7 +6600,7 @@ nir_to_dxil(struct nir_shader *s, const struct nir_to_dxil_options *opts,
|
|||
* might be too opaque for the pass to see that they're next to each other. */
|
||||
optimize_nir(s, opts);
|
||||
|
||||
/* Vectorize UBO/SSBO accesses aggressively. This can help increase alignment to enable us to do better
|
||||
/* Vectorize UBO/SSBO accesses aggressively. This can help increase alignment to enable us to do better
|
||||
* chunking of loads and stores after lowering bit sizes. Ignore load/store size limitations here, we'll
|
||||
* address them with lower_mem_access_bit_sizes */
|
||||
nir_load_store_vectorize_options vectorize_opts = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue