Merge pull request #17929 from hrydgard/android-default-vulkan-on-new-32bit

Android: On some newer devices with 32-bit userland, default to Vulkan.
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2023-08-18 15:40:03 +02:00
commit bf11d042a0
1 file changed
+6
+6
View File
@@ -396,6 +396,12 @@ static int DefaultGPUBackend() {
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 27) {
return (int)GPUBackend::VULKAN;
}
#else
// There are some newer devices that benefit from Vulkan as default, but are 32-bit. Example: Redmi 9A.
// Let's only allow the very newest generation though.
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 30) {
return (int)GPUBackend::VULKAN;
}
#endif
#elif PPSSPP_PLATFORM(MAC)
#if PPSSPP_ARCH(ARM64)