zink: run more int64 passes during optimization loop if int64 isn't available
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16669>
This commit is contained in:
parent
7c75ce6204
commit
b59d67431d
|
@ -470,11 +470,14 @@ optimize_nir(struct nir_shader *s)
|
|||
bool progress;
|
||||
do {
|
||||
progress = false;
|
||||
if (s->options->lower_int64_options)
|
||||
NIR_PASS_V(s, nir_lower_int64);
|
||||
NIR_PASS_V(s, nir_lower_vars_to_ssa);
|
||||
NIR_PASS(progress, s, nir_lower_alu_to_scalar, filter_pack_instr, NULL);
|
||||
NIR_PASS(progress, s, nir_copy_prop);
|
||||
NIR_PASS(progress, s, nir_opt_remove_phis);
|
||||
if (s->options->lower_int64_options) {
|
||||
NIR_PASS(progress, s, nir_lower_64bit_phis);
|
||||
NIR_PASS(progress, s, nir_lower_alu_to_scalar, filter_64_bit_instr, NULL);
|
||||
}
|
||||
NIR_PASS(progress, s, nir_opt_dce);
|
||||
|
|
Loading…
Reference in New Issue