mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Android: Be slightly more aggressive at defaulting to Vulkan (from Android 8.1 / 27)
This commit is contained in:
parent
57c6ab7206
commit
e2ecf306fa
1 changed files with 7 additions and 3 deletions
|
@ -575,9 +575,9 @@ static int DefaultGPUBackend() {
|
|||
return (int)GPUBackend::DIRECT3D11;
|
||||
}
|
||||
#elif PPSSPP_PLATFORM(ANDROID)
|
||||
// Default to Vulkan only on Pie (level 28) devices or newer. Drivers before Pie
|
||||
// Default to Vulkan only on Oreo 8.1 (level 27) devices or newer. Drivers before
|
||||
// were generally too unreliable to default to (with some exceptions, of course).
|
||||
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 28) {
|
||||
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 27) {
|
||||
return (int)GPUBackend::VULKAN;
|
||||
}
|
||||
#endif
|
||||
|
@ -628,10 +628,14 @@ int Config::NextValidBackend() {
|
|||
}
|
||||
#endif
|
||||
|
||||
// They've all failed. Let them try the default.
|
||||
// They've all failed. Let them try the default - or on Android, OpenGL.
|
||||
sFailedGPUBackends += ",ALL";
|
||||
ERROR_LOG(LOADER, "All graphics backends failed");
|
||||
#if PPSSPP_PLATFORM(ANDROID)
|
||||
return (int)GPUBackend::OPENGL;
|
||||
#else
|
||||
return DefaultGPUBackend();
|
||||
#endif
|
||||
}
|
||||
|
||||
return iGPUBackend;
|
||||
|
|
Loading…
Add table
Reference in a new issue