nir/nir_format_convert: Add missing u2f32 in nir_format_unpack_r9g9b9e5

Fix
"dEQP-VK.api.copy_and_blit.*.image_to_image.all_formats.color.2d_to_1d.*.e5b9g9r9_ufloat_pack32.*"
on HK.

Signed-off-by: Mary Guillemard <mary@mary.zone>
Fixes: 5f5f4474f6 ("nir: Add a format unpack helper and tests")
Reviewed-by: Janne Grunau <j@jannau.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41929>
This commit is contained in:
Mary Guillemard 2026-06-01 14:04:44 +02:00 committed by Marge Bot
parent 00a407bbae
commit 90d963d353

View file

@ -446,7 +446,7 @@ nir_format_unpack_r9g9b9e5(nir_builder *b, nir_def *packed)
exp = nir_iadd_imm(b, exp, 127 - RGB9E5_EXP_BIAS - RGB9E5_MANTISSA_BITS);
nir_def *scale = nir_ishl_imm(b, exp, 23);
return nir_fmul(b, rgb, scale);
return nir_fmul(b, nir_u2f32(b, rgb), scale);
}
nir_def *