Default to Vulkan on Android Pie or later. Fixes #12228.
This commit is contained in:
parent
385579c5ad
commit
7196d6ac7e
1 changed files with 9 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue