From 5a2ef27f7db60b2b16875f7cb59d7dfd4fe1f289 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sat, 24 Jan 2026 17:44:19 +0100 Subject: [PATCH] nir/format_convert: use f2f32 instead of unpack_half MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir_format_convert.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_format_convert.c b/src/compiler/nir/nir_format_convert.c index 43c7e5ac0e7..ba4a2a4ac69 100644 --- a/src/compiler/nir/nir_format_convert.c +++ b/src/compiler/nir/nir_format_convert.c @@ -403,7 +403,7 @@ nir_format_unpack_11f11f10f(nir_builder *b, nir_def *packed) chans[2] = nir_mask_shift(b, packed, 0xffc00000, -17); for (unsigned i = 0; i < 3; i++) - chans[i] = nir_unpack_half_2x16_split_x(b, chans[i]); + chans[i] = nir_f2f32(b, nir_u2u16(b, chans[i])); return nir_vec(b, chans, 3); } @@ -608,7 +608,7 @@ nir_format_unpack_rgba(nir_builder *b, nir_def *packed, case UTIL_FORMAT_TYPE_FLOAT: switch (chan->size) { case 16: - comps[c] = nir_unpack_half_2x16_split_x(b, raw); + comps[c] = nir_f2f32(b, nir_u2u16(b, raw)); break; case 32: