dxil: Don't run opt_remove_phis before lower_returns
nir_lower_returns will run nir_opt_remove_phis as part of its work Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22913>
This commit is contained in:
@@ -1025,9 +1025,6 @@ dxil_spirv_nir_passes(nir_shader *nir,
|
||||
NIR_PASS_V(nir, nir_lower_discard_or_demote, nir->info.use_legacy_math_rules);
|
||||
|
||||
NIR_PASS_V(nir, dxil_nir_lower_discard_and_terminate);
|
||||
/* Remove single-source phis now that returns have been inserted, otherwise
|
||||
* lowering returns might not behave correctly. */
|
||||
NIR_PASS_V(nir, nir_opt_remove_phis);
|
||||
NIR_PASS_V(nir, nir_lower_returns);
|
||||
NIR_PASS_V(nir, dxil_nir_lower_sample_pos);
|
||||
NIR_PASS_V(nir, nir_lower_fragcoord_wtrans);
|
||||
|
Reference in New Issue
Block a user