diff options
| author | Vincent Milum Jr <git@darkain.com> | 2020-09-09 22:09:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-09 22:09:34 -0700 |
| commit | 4e443ed85764e286f801c45acf8b8d22ac155fa4 (patch) | |
| tree | 2d4e5c7bd87b02693206075233e925e1f4a9f647 /Source/Core/VideoCommon/VideoBackendBase.cpp | |
| parent | 7cab8b733f18d2bb634a0f72625dba1f9f985e09 (diff) | |
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
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 3 |
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 |
