nak: Set lower_pack_64_4x16

Otherwise, these can cause infinite loops in optimization because there
aren't _split variants and the optimizer tries to combine and split
things infinitely.

Reviewed-by: Mel Henning <drawoc@darkrefraction.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34849>
This commit is contained in:
Faith Ekstrand 2025-05-06 17:10:36 -04:00 committed by Marge Bot
parent 140cd7c4f4
commit efd1cddbe9

View file

@ -120,6 +120,7 @@ fn nir_options(dev: &nv_device_info) -> nir_shader_compiler_options {
op.lower_fsqrt = dev.sm < 52;
op.lower_bitfield_extract = dev.sm >= 70;
op.lower_bitfield_insert = true;
op.lower_pack_64_4x16 = true;
op.lower_pack_half_2x16 = true;
op.lower_pack_unorm_2x16 = true;
op.lower_pack_snorm_2x16 = true;