Default to Vulkan on Android Pie or later. Fixes #12228.

This commit is contained in:
Henrik Rydgård 2019-08-23 17:14:11 +02:00
parent 385579c5ad
commit 7196d6ac7e

View file

@ -574,8 +574,16 @@ static int DefaultGPUBackend() {
if (DoesVersionMatchWindows(6, 2, 0, 0, true)) {
return (int)GPUBackend::DIRECT3D11;
}
#endif
#elif PPSSPP_PLATFORM(ANDROID)
// Default to Vulkan only on Pie (level 28) devices or newer. Drivers before Pie
// were generally too unreliable to default to (with some exceptions, of course).
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 28) {
return (int)GPUBackend::VULKAN;
}
#else
// TODO: On some additional Linux platforms, we should also default to Vulkan.
return (int)GPUBackend::OPENGL;
#endif
}
int Config::NextValidBackend() {