mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 12:18:35 +01:00
Android: Be slightly more aggressive at defaulting to Vulkan (from Android 8.1 / 27)
This commit is contained in:
1 parent
57c6ab7206
commit
e2ecf306fa
1 file changed
+7
-3
+7
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user