mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 17:50:12 +01:00
gallium/targets/libgl-gdi: prefer d3d12 driver
Unlike the other drivers, the D3D12 driver is hardware accelerated, so it's going to be a more reasonable choice. So let's prefer it. This only matters for people who build with the D3D12 driver. And they can set the GALLIUM_DRIVER environment variable as appropriate to override it. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Acked-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7534>
This commit is contained in:
parent
843a56324a
commit
8955980f17
1 changed files with 3 additions and 1 deletions
|
|
@ -89,7 +89,9 @@ gdi_screen_create(HDC hDC)
|
||||||
if(!winsys)
|
if(!winsys)
|
||||||
goto no_winsys;
|
goto no_winsys;
|
||||||
|
|
||||||
#ifdef GALLIUM_LLVMPIPE
|
#ifdef GALLIUM_D3D12
|
||||||
|
default_driver = "d3d12";
|
||||||
|
#elif defined(GALLIUM_LLVMPIPE)
|
||||||
default_driver = "llvmpipe";
|
default_driver = "llvmpipe";
|
||||||
#elif GALLIUM_SWR
|
#elif GALLIUM_SWR
|
||||||
default_driver = "swr";
|
default_driver = "swr";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue