From e2ecf306facd2c6d1ae4461b5ce2082528fdb434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 2 Sep 2019 21:42:07 +0200 Subject: [PATCH] Android: Be slightly more aggressive at defaulting to Vulkan (from Android 8.1 / 27) --- Core/Config.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index b83d1bc893..814b9fae6f 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -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;