From 5d70bf3c9880a46e1e8d8d17d91f33d80ce72fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Pi=C3=B1eiro?= Date: Thu, 23 Oct 2025 13:16:59 +0200 Subject: [PATCH] mesa/st: add a warning if can't set SoftFP64 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this warning, if a driver try to use the nir_lower_fp64_full_software option, would get a crash without any message pointing that the problem is that doesn't fulfill the requirements of current mesa fp64 sw implementation. Acked-by: Alyssa Rosenzweig Reviewed-by: Marek Ol¨ák Part-of: --- src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp index 689241107ef..88f45899002 100644 --- a/src/mesa/state_tracker/st_glsl_to_nir.cpp +++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp @@ -491,6 +491,8 @@ st_link_glsl_to_nir(struct gl_context *ctx, */ if (_mesa_is_desktop_gl(st->ctx) && st->ctx->Const.GLSLVersion >= 400) st->ctx->SoftFP64 = glsl_float64_funcs_to_nir(st->ctx, options); + else + _mesa_warning(NULL, "Mesa full software implementation of FP64 requires OpenGL >= 4.0\n"); } }