mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
6a598cccc3
commit
f87072f5b0
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue