mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
asahi: fix fdiv lowering
Fixes: d3adef3164 ("agx: defer nir_opt_idiv_const")
This commit is contained in:
parent
28aa1d7fb8
commit
a8e5307668
1 changed files with 5 additions and 2 deletions
|
|
@ -3619,8 +3619,6 @@ agx_preprocess_nir(nir_shader *nir)
|
|||
nir_metadata_control_flow, NULL);
|
||||
NIR_PASS(_, nir, agx_nir_lower_subgroups);
|
||||
NIR_PASS(_, nir, nir_lower_all_phis_to_scalar);
|
||||
NIR_PASS(_, nir, nir_shader_alu_pass, agx_nir_lower_fdiv,
|
||||
nir_metadata_control_flow, NULL);
|
||||
|
||||
/* After lowering, run through the standard suite of NIR optimizations. We
|
||||
* will run through the loop later, once we have the shader key, but if we
|
||||
|
|
@ -3638,6 +3636,11 @@ agx_preprocess_nir(nir_shader *nir)
|
|||
};
|
||||
|
||||
NIR_PASS(_, nir, nir_lower_idiv, &idiv_options);
|
||||
|
||||
/* Has to run after nir_lower_idiv */
|
||||
NIR_PASS(_, nir, nir_shader_alu_pass, agx_nir_lower_fdiv,
|
||||
nir_metadata_control_flow, NULL);
|
||||
|
||||
NIR_PASS(_, nir, nir_opt_deref);
|
||||
NIR_PASS(_, nir, nir_lower_vars_to_ssa);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue