st/mesa: call nir_opt_access only once
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
@@ -309,8 +309,6 @@ st_nir_opts(nir_shader *nir)
|
|||||||
lower_flrp = 0;
|
lower_flrp = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
NIR_PASS(progress, nir, nir_opt_access);
|
|
||||||
|
|
||||||
NIR_PASS(progress, nir, nir_opt_undef);
|
NIR_PASS(progress, nir, nir_opt_undef);
|
||||||
NIR_PASS(progress, nir, nir_opt_conditional_discard);
|
NIR_PASS(progress, nir, nir_opt_conditional_discard);
|
||||||
if (nir->options->max_unroll_iterations) {
|
if (nir->options->max_unroll_iterations) {
|
||||||
|
@@ -390,6 +390,8 @@ st_release_common_variants(struct st_context *st, struct st_common_program *p)
|
|||||||
void
|
void
|
||||||
st_finalize_nir_before_variants(struct nir_shader *nir)
|
st_finalize_nir_before_variants(struct nir_shader *nir)
|
||||||
{
|
{
|
||||||
|
NIR_PASS_V(nir, nir_opt_access);
|
||||||
|
|
||||||
NIR_PASS_V(nir, nir_split_var_copies);
|
NIR_PASS_V(nir, nir_split_var_copies);
|
||||||
NIR_PASS_V(nir, nir_lower_var_copies);
|
NIR_PASS_V(nir, nir_lower_var_copies);
|
||||||
if (nir->options->lower_all_io_to_temps ||
|
if (nir->options->lower_all_io_to_temps ||
|
||||||
|
Reference in New Issue
Block a user