From 90d963d3537898c834b21928811f17e32cec1922 Mon Sep 17 00:00:00 2001 From: Mary Guillemard Date: Mon, 1 Jun 2026 14:04:44 +0200 Subject: [PATCH] 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 Fixes: 5f5f4474f623 ("nir: Add a format unpack helper and tests") Reviewed-by: Janne Grunau Part-of: --- src/compiler/nir/nir_format_convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir_format_convert.c b/src/compiler/nir/nir_format_convert.c index 7484b2249a4..3075ef9fb63 100644 --- a/src/compiler/nir/nir_format_convert.c +++ b/src/compiler/nir/nir_format_convert.c @@ -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 *