From 40c81ea69fc2866e791366850d6e28c288b47dc1 Mon Sep 17 00:00:00 2001 From: Jinhyung Jo Date: Wed, 7 Oct 2015 16:43:02 +0900 Subject: [PATCH] VIGS: Enabling NVidia GPU on Optimus systems Add global variable NvOptimusEnablement for the NVidia GPU. It can run with Release 302 driver or later. Add global vatiable AmdPowerXpressRequestHighPerformance for the AMD GPU. It can run with 13.35 driver or later. Change-Id: Ia917d46dd466fbfa2260c8013dab6baa7ffbb803 Signed-off-by: Jinhyung Jo Signed-off-by: SeokYeon Hwang --- hw/vigs/vigs_gl_backend_wgl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/vigs/vigs_gl_backend_wgl.c b/hw/vigs/vigs_gl_backend_wgl.c index c4e34b70d1..b5b45bcef0 100644 --- a/hw/vigs/vigs_gl_backend_wgl.c +++ b/hw/vigs/vigs_gl_backend_wgl.c @@ -35,6 +35,9 @@ #include #include +__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; +__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; + #define VIGS_WGL_WIN_CLASS "VIGSWinClass" #define VIGS_WGL_GET_PROC(proc_type, proc_name, label) \ -- 2.34.1