From: Jinhyung Jo Date: Wed, 7 Oct 2015 07:43:02 +0000 (+0900) Subject: VIGS: Enabling NVidia GPU on Optimus systems X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~212 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40c81ea69fc2866e791366850d6e28c288b47dc1;p=sdk%2Femulator%2Fqemu.git 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 --- 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) \