summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoBackendBase.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2020-09-16 15:56:04 -0400
committerGitHub <noreply@github.com>2020-09-16 15:56:04 -0400
commit655308255ea88783d6f6110cde2c3536d22f16d7 (patch)
treeb9c6bbad2d22a835da571e16a041130bfe5f8f50 /Source/Core/VideoCommon/VideoBackendBase.cpp
parenta7b9e6857b6c4e172a4ec333a6c83d624092cdf3 (diff)
parent4e443ed85764e286f801c45acf8b8d22ac155fa4 (diff)
Merge pull request #9073 from darkain/patch-1
Adding AmdPowerXpressRequestHighPerformance
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index b32cff86e3..a8633892bd 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -68,8 +68,11 @@ static VideoBackendBase* s_default_backend = nullptr;
// Nvidia drivers >= v302 will check if the application exports a global
// variable named NvOptimusEnablement to know if it should run the app in high
// performance graphics mode or using the IGP.
+// AMD drivers >= 13.35 do the same, but for the variable
+// named AmdPowerXpressRequestHighPerformance instead.
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 1;
+__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
#endif