r600/sfn: lower idiv, imod, etc in nir

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9584>
This commit is contained in:
Gert Wollny
2021-03-06 18:14:04 +01:00
committed by Marge Bot
parent 7f020afcd6
commit 4459fc224b
3 changed files with 3 additions and 103 deletions

View File

@@ -875,6 +875,9 @@ int r600_shader_from_nir(struct r600_context *rctx,
NIR_PASS_V(sel->nir, nir_lower_vars_to_ssa);
NIR_PASS_V(sel->nir, nir_lower_regs_to_ssa);
NIR_PASS_V(sel->nir, nir_lower_idiv,
sel->nir->info.stage == MESA_SHADER_COMPUTE ?
nir_lower_idiv_precise : nir_lower_idiv_fast);
NIR_PASS_V(sel->nir, nir_lower_phis_to_scalar);
if (lower_64bit)