mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
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:
parent
f1ea6c1b40
commit
f2228902ed
2 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue