mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
wgl: Disable automatic use of layered drivers with LIBGL_ALWAYS_SOFTWARE
Fixes:8955980f("gallium/targets/libgl-gdi: prefer d3d12 driver") Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Tested-by: Prodea Alexandru-Liviu <liviuprodea@yahoo.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8865> (cherry picked from commit41e8dec75c)
This commit is contained in:
parent
fb2f644bae
commit
93be7a0aee
2 changed files with 4 additions and 2 deletions
|
|
@ -3262,7 +3262,7 @@
|
|||
"description": "wgl: Disable automatic use of layered drivers with LIBGL_ALWAYS_SOFTWARE",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "8955980f17f902d24c50962502a20285dcd11642"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include <windows.h>
|
||||
|
||||
#include "util/u_debug.h"
|
||||
#include "util/debug.h"
|
||||
#include "stw_winsys.h"
|
||||
#include "stw_device.h"
|
||||
#include "gdi/gdi_sw_winsys.h"
|
||||
|
|
@ -124,6 +125,7 @@ static struct pipe_screen *
|
|||
gdi_screen_create(HDC hDC)
|
||||
{
|
||||
struct sw_winsys *winsys;
|
||||
UNUSED bool sw_only = env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false);
|
||||
|
||||
winsys = gdi_create_sw_winsys();
|
||||
if (!winsys)
|
||||
|
|
@ -132,7 +134,7 @@ gdi_screen_create(HDC hDC)
|
|||
const char *const drivers[] = {
|
||||
debug_get_option("GALLIUM_DRIVER", ""),
|
||||
#ifdef GALLIUM_D3D12
|
||||
"d3d12",
|
||||
sw_only ? "" : "d3d12",
|
||||
#endif
|
||||
#if defined(GALLIUM_LLVMPIPE)
|
||||
"llvmpipe",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue