From f87072f5b0ab74abbd2597764114801d3820e19c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 7 Oct 2024 08:46:37 -0400 Subject: [PATCH] gallium/sw: make llvmpipe the "default" sw driver if GALLIUM_DRIVERS isn't set, this string can be "", which fails to load any driver Reviewed-by: Adam Jackson Part-of: --- 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 65fadc481ab..030f61528d9 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) + if (screen == NULL && (strcmp(driver, "llvmpipe") == 0 || !driver[0])) screen = llvmpipe_create_screen(winsys); #endif