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 <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31546>
This commit is contained in:
Mike Blumenkrantz 2024-10-07 08:46:37 -04:00 committed by Marge Bot
parent 6a598cccc3
commit f87072f5b0

View file

@ -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