Module: Mesa Branch: master Commit: 8955980f17f902d24c50962502a20285dcd11642 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8955980f17f902d24c50962502a20285dcd11642
Author: Erik Faye-Lund <[email protected]> Date: Sun May 26 10:43:57 2019 +0200 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 <[email protected]> Acked-by: Adam Jackson <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7534> --- src/gallium/targets/libgl-gdi/libgl_gdi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/targets/libgl-gdi/libgl_gdi.c b/src/gallium/targets/libgl-gdi/libgl_gdi.c index b9436a43bc9..3619dfc6f3f 100644 --- a/src/gallium/targets/libgl-gdi/libgl_gdi.c +++ b/src/gallium/targets/libgl-gdi/libgl_gdi.c @@ -89,7 +89,9 @@ gdi_screen_create(HDC hDC) if(!winsys) goto no_winsys; -#ifdef GALLIUM_LLVMPIPE +#ifdef GALLIUM_D3D12 + default_driver = "d3d12"; +#elif defined(GALLIUM_LLVMPIPE) default_driver = "llvmpipe"; #elif GALLIUM_SWR default_driver = "swr"; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
