From 341e2d328336788e30e480000c46564d76a510d0 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 2 Dec 2025 12:38:28 -0800 Subject: [PATCH] lavapipe: fp16 flrp must also be lowered Prevents failures with fp16 in lavapipe and Zink on lavapipe when "nir/lower_flrp: Check and set shader_info::flrp_lowered" is applied. Lowering with an incomplete mask on the first call to nir_lower_flrp will prevent later calls (with the complete mask) from doing anything. Fixes: b38879f8c5f ("vallium: initial import of the vulkan frontend") Reviewed-by: Alyssa Rosenzweig Reviewed-by: Dave Airlie Part-of: --- src/gallium/frontends/lavapipe/lvp_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/lavapipe/lvp_pipeline.c b/src/gallium/frontends/lavapipe/lvp_pipeline.c index 1638fcfa962..7aea2456fac 100644 --- a/src/gallium/frontends/lavapipe/lvp_pipeline.c +++ b/src/gallium/frontends/lavapipe/lvp_pipeline.c @@ -201,7 +201,7 @@ optimize(nir_shader *nir) do { progress = false; - NIR_PASS(progress, nir, nir_lower_flrp, 32|64, true); + NIR_PASS(progress, nir, nir_lower_flrp, 16|32|64, true); NIR_PASS(progress, nir, nir_split_array_vars, nir_var_function_temp); NIR_PASS(progress, nir, nir_shrink_vec_array_vars, nir_var_function_temp); NIR_PASS(progress, nir, nir_opt_deref);