From 733448ea9de861f348728a4cc41db16206004ea8 Mon Sep 17 00:00:00 2001 From: Jade Macho Date: Fri, 19 Sep 2025 01:22:17 +0200 Subject: [PATCH] gallium/sw: Fix llvmpipe being chosen when not wanted !31546 made llvmpipe the "default" without regard of sw_screen_create_vk which already treats llvmpipe as default, which in turn deselects D3D12 as default, which breaks WSLg. Fixes: f87072f5b0a ("gallium/sw: make llvmpipe the "default" sw driver") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13120 --- src/gallium/auxiliary/target-helpers/sw_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/target-helpers/sw_helper.h b/src/gallium/auxiliary/target-helpers/sw_helper.h index 030f61528d9..65fadc481ab 100644 --- a/src/gallium/auxiliary/target-helpers/sw_helper.h +++ b/src/gallium/auxiliary/target-helpers/sw_helper.h @@ -39,7 +39,7 @@ sw_screen_create_named(struct sw_winsys *winsys, const struct pipe_screen_config struct pipe_screen *screen = NULL; #if defined(GALLIUM_LLVMPIPE) - if (screen == NULL && (strcmp(driver, "llvmpipe") == 0 || !driver[0])) + if (screen == NULL && strcmp(driver, "llvmpipe") == 0) screen = llvmpipe_create_screen(winsys); #endif