ir3: Move turnip's nir_lower_frexp to the shared compiler.

We had NIR lowering for Vulkan, and rely on GLSL's lowering in the
frontend, but this will let us drop the GLSL lowering.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22083>
This commit is contained in:
Emma Anholt 2023-03-23 09:47:47 -07:00 committed by Marge Bot
parent f1ea6c1b40
commit f2228902ed
2 changed files with 1 additions and 2 deletions

View file

@ -349,6 +349,7 @@ ir3_finalize_nir(struct ir3_compiler *compiler, nir_shader *s)
if (s->info.stage == MESA_SHADER_GEOMETRY)
NIR_PASS_V(s, ir3_nir_lower_gs);
NIR_PASS_V(s, nir_lower_frexp);
NIR_PASS_V(s, nir_lower_amul, ir3_glsl_type_size);
OPT_V(s, nir_lower_regs_to_ssa);

View file

@ -124,8 +124,6 @@ tu_spirv_to_nir(struct tu_device *dev,
NIR_PASS_V(nir, nir_lower_system_values);
NIR_PASS_V(nir, nir_lower_is_helper_invocation);
NIR_PASS_V(nir, nir_lower_frexp);
ir3_optimize_loop(dev->compiler, nir);
NIR_PASS_V(nir, nir_opt_conditional_discard);