From 4e443ed85764e286f801c45acf8b8d22ac155fa4 Mon Sep 17 00:00:00 2001 From: Vincent Milum Jr Date: Wed, 9 Sep 2020 22:09:34 -0700 Subject: [PATCH] Adding AmdPowerXpressRequestHighPerformance Adding AmdPowerXpressRequestHighPerformance This will allow AMD drivers to detect the request to use the dGPU instead of the iGPU on compatible hybrid graphics systems. Reference: https://community.amd.com/thread/169965 --- Source/Core/VideoCommon/VideoBackendBase.cpp | 3 +++ 1 file changed, 3 insertions(+) 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