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:
@@ -78,6 +78,12 @@ sw_screen_create(struct sw_winsys *winsys)
|
|||||||
{
|
{
|
||||||
const char *drivers[] = {
|
const char *drivers[] = {
|
||||||
debug_get_option("GALLIUM_DRIVER", ""),
|
debug_get_option("GALLIUM_DRIVER", ""),
|
||||||
|
#if defined(GALLIUM_ZINK)
|
||||||
|
"zink",
|
||||||
|
#endif
|
||||||
|
#if defined(GALLIUM_D3D12)
|
||||||
|
"d3d12",
|
||||||
|
#endif
|
||||||
#if defined(GALLIUM_LLVMPIPE)
|
#if defined(GALLIUM_LLVMPIPE)
|
||||||
"llvmpipe",
|
"llvmpipe",
|
||||||
#endif
|
#endif
|
||||||
@@ -86,12 +92,6 @@ sw_screen_create(struct sw_winsys *winsys)
|
|||||||
#endif
|
#endif
|
||||||
#if defined(GALLIUM_SWR)
|
#if defined(GALLIUM_SWR)
|
||||||
"swr",
|
"swr",
|
||||||
#endif
|
|
||||||
#if defined(GALLIUM_ZINK)
|
|
||||||
"zink",
|
|
||||||
#endif
|
|
||||||
#if defined(GALLIUM_D3D12)
|
|
||||||
"d3d12",
|
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -84,6 +84,12 @@ sw_screen_create(struct sw_winsys *winsys)
|
|||||||
{
|
{
|
||||||
const char *drivers[] = {
|
const char *drivers[] = {
|
||||||
debug_get_option("GALLIUM_DRIVER", ""),
|
debug_get_option("GALLIUM_DRIVER", ""),
|
||||||
|
#if defined(GALLIUM_ZINK)
|
||||||
|
"zink",
|
||||||
|
#endif
|
||||||
|
#if defined(GALLIUM_D3D12)
|
||||||
|
"d3d12",
|
||||||
|
#endif
|
||||||
#if defined(GALLIUM_LLVMPIPE)
|
#if defined(GALLIUM_LLVMPIPE)
|
||||||
"llvmpipe",
|
"llvmpipe",
|
||||||
#endif
|
#endif
|
||||||
@@ -92,12 +98,6 @@ sw_screen_create(struct sw_winsys *winsys)
|
|||||||
#endif
|
#endif
|
||||||
#if defined(GALLIUM_SWR)
|
#if defined(GALLIUM_SWR)
|
||||||
"swr",
|
"swr",
|
||||||
#endif
|
|
||||||
#if defined(GALLIUM_ZINK)
|
|
||||||
"zink",
|
|
||||||
#endif
|
|
||||||
#if defined(GALLIUM_D3D12)
|
|
||||||
"d3d12",
|
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user