nak: Use nir_lower_io_lower_64bit_to_32

This is the one that has Vulkan semantics.  We could probably make
nir_lower_io_lower_64bit_to_32_new work but it assumes the weird GL
semantics which don't map to what Vulkan does.  Using it with a Vulkan
driver would require remapping all the attribute indices.

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Mary Guillemard <mary@mary.zone>
Acked-by: Mel Henning <mhenning@darkrefraction.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39135>
This commit is contained in:
Faith Ekstrand 2026-01-02 18:14:53 -05:00 committed by Marge Bot
parent 230fb83d61
commit 5ed98c8267

View file

@ -1075,7 +1075,7 @@ nak_postprocess_nir(nir_shader *nir,
case MESA_SHADER_TESS_EVAL:
case MESA_SHADER_GEOMETRY:
OPT(nir, nir_lower_io, nir_var_shader_in | nir_var_shader_out,
type_size_vec4, nir_lower_io_lower_64bit_to_32_new);
type_size_vec4, nir_lower_io_lower_64bit_to_32);
OPT(nir, nir_opt_constant_folding);
OPT(nir, nak_nir_lower_vtg_io, nak);
if (nir->info.stage == MESA_SHADER_GEOMETRY)