mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-04 10:40:36 +01:00
swrastg: Fix defines to be able to load more then one sw driver
This commit is contained in:
parent
8239fd4baa
commit
cb56b31f84
1 changed files with 6 additions and 6 deletions
|
|
@ -68,16 +68,16 @@ swrast_create_screen(struct sw_winsys *winsys)
|
|||
#if defined(GALLIUM_CELL)
|
||||
if (screen == NULL && strcmp(driver, "cell") == 0)
|
||||
screen = cell_create_screen( winsys );
|
||||
#elif defined(GALLIUM_LLVMPIPE)
|
||||
#endif
|
||||
|
||||
#if defined(GALLIUM_LLVMPIPE)
|
||||
if (screen == NULL && strcmp(driver, "llvmpipe") == 0)
|
||||
screen = llvmpipe_create_screen( winsys );
|
||||
#elif defined(GALLIUM_SOFTPIPE)
|
||||
#endif
|
||||
|
||||
#if defined(GALLIUM_SOFTPIPE)
|
||||
if (screen == NULL)
|
||||
screen = softpipe_create_screen( winsys );
|
||||
|
||||
(void) driver;
|
||||
#else
|
||||
(void) driver;
|
||||
#endif
|
||||
|
||||
return screen;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue