drisw: Prefer hardware-layered sw-winsys drivers over pure sw

Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8128>
This commit is contained in:
Jesse Natalie 2020-12-08 17:15:19 -08:00 committed by Marge Bot
parent 27ed515c05
commit 4a3b42a717
2 changed files with 12 additions and 12 deletions

View File

@ -78,6 +78,12 @@ sw_screen_create(struct sw_winsys *winsys)
{
const char *drivers[] = {
debug_get_option("GALLIUM_DRIVER", ""),
#if defined(GALLIUM_ZINK)
"zink",
#endif
#if defined(GALLIUM_D3D12)
"d3d12",
#endif
#if defined(GALLIUM_LLVMPIPE)
"llvmpipe",
#endif
@ -86,12 +92,6 @@ sw_screen_create(struct sw_winsys *winsys)
#endif
#if defined(GALLIUM_SWR)
"swr",
#endif
#if defined(GALLIUM_ZINK)
"zink",
#endif
#if defined(GALLIUM_D3D12)
"d3d12",
#endif
};

View File

@ -84,6 +84,12 @@ sw_screen_create(struct sw_winsys *winsys)
{
const char *drivers[] = {
debug_get_option("GALLIUM_DRIVER", ""),
#if defined(GALLIUM_ZINK)
"zink",
#endif
#if defined(GALLIUM_D3D12)
"d3d12",
#endif
#if defined(GALLIUM_LLVMPIPE)
"llvmpipe",
#endif
@ -92,12 +98,6 @@ sw_screen_create(struct sw_winsys *winsys)
#endif
#if defined(GALLIUM_SWR)
"swr",
#endif
#if defined(GALLIUM_ZINK)
"zink",
#endif
#if defined(GALLIUM_D3D12)
"d3d12",
#endif
};