From 38e92556a041cc421dadb95aaac43a4619311a87 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 24 Jan 2024 17:21:50 +1000 Subject: [PATCH] gallivm: passing fp16_split_fp64 to fp16 lowering. This causes lavapipe to use the split code and fixes accuracy for CTS. Fixes dEQP-VK.glsl.builtin.precision_fconvert.f64_to_f16* Cc: mesa-stable Reviewed-by: Mike Blumenkrantz Part-of: --- src/gallium/auxiliary/gallivm/lp_bld_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c index a47fc3b4742..79d06f062fc 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c @@ -2967,7 +2967,7 @@ lp_build_opt_nir(struct nir_shader *nir) } NIR_PASS_V(nir, nir_lower_flrp, 16|32|64, true); - NIR_PASS_V(nir, nir_lower_fp16_casts, nir_lower_fp16_all); + NIR_PASS_V(nir, nir_lower_fp16_casts, nir_lower_fp16_all | nir_lower_fp16_split_fp64); do { progress = false; NIR_PASS(progress, nir, nir_opt_constant_folding);