VIGS: Enabling NVidia GPU on Optimus systems
authorJinhyung Jo <jinhyung.jo@samsung.com>
Wed, 7 Oct 2015 07:43:02 +0000 (16:43 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 20 Oct 2015 05:52:14 +0000 (14:52 +0900)
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 <jinhyung.jo@samsung.com>
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
hw/vigs/vigs_gl_backend_wgl.c

index c4e34b70d124c66b24d4ce6d0a2e07503f7dc8e5..b5b45bcef024e59267fd21ba8fa830bf27436039 100644 (file)
@@ -35,6 +35,9 @@
 #include <GL/gl.h>
 #include <GL/wglext.h>
 
+__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) \