From ca70e642610e0ac0b5c6ea51278ee75dab6d0280 Mon Sep 17 00:00:00 2001
From: James Turner <zakalawe@mac.com>
Date: Tue, 27 Sep 2016 17:16:46 -0500
Subject: [PATCH] Request AMD PowerXpress.

---
 src/Main/main.cxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/Main/main.cxx b/src/Main/main.cxx
index 2b6ffa0ac..9de75380c 100644
--- a/src/Main/main.cxx
+++ b/src/Main/main.cxx
@@ -405,10 +405,11 @@ static void upper_case_property(const char *name)
     p->addChangeListener(muc);
 }
 
-// Propose NVIDIA Optimus to use high-end GPU
+// Propose NVIDIA Optimus / AMD Xpress to use high-end GPU
 #if defined(SG_WINDOWS)
 extern "C" {
     _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
+    _declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
 }
 #endif