Request AMD GPU on Enduro Devices

It seems AMD provides an equivalent to `NvOptimusEnablement` called `AmdPowerXpressRequestHighPerformance`

See https://gpuopen.com/learn/amdpowerxpressrequesthighperformance/
This commit is contained in:
Stanislas Dolcini 2021-12-12 22:35:57 +01:00 committed by GitHub
parent ccf6ff2686
commit 0a99c667ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -693,9 +693,10 @@ bool checkGLError()
}
#ifdef WIN32
// Tell system that it should use nvidia on optimus devices
// Tell system that it should use nvidia on optimus devices and amd on enduro devices
extern "C" {
__declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
__declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001;
}
#endif