mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
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:
parent
27ed515c05
commit
4a3b42a717
2 changed files with 12 additions and 12 deletions
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue