From a44af59f3a8eef23ca5fcfa016f7ce5983394f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 14 Dec 2022 16:59:20 +0100 Subject: [PATCH] Use vendor instead of lazy memory to detect tiling GPUs. --- Common/GPU/Vulkan/thin3d_vulkan.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Common/GPU/Vulkan/thin3d_vulkan.cpp b/Common/GPU/Vulkan/thin3d_vulkan.cpp index 19277ec94b..fbb5fbb3e8 100644 --- a/Common/GPU/Vulkan/thin3d_vulkan.cpp +++ b/Common/GPU/Vulkan/thin3d_vulkan.cpp @@ -853,13 +853,16 @@ VKContext::VKContext(VulkanContext *vulkan) break; } - bool hasLazyMemory = false; - for (u32 i = 0; i < vulkan->GetMemoryProperties().memoryTypeCount; i++) { - if (vulkan->GetMemoryProperties().memoryTypes[i].propertyFlags & VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT) { - hasLazyMemory = true; - } + switch (caps_.vendor) { + case GPUVendor::VENDOR_ARM: + case GPUVendor::VENDOR_IMGTEC: + case GPUVendor::VENDOR_QUALCOMM: + caps_.isTilingGPU = true; + break; + default: + caps_.isTilingGPU = false; + break; } - caps_.isTilingGPU = hasLazyMemory && caps_.vendor != GPUVendor::VENDOR_APPLE; // Hide D3D9 when we know it likely won't work well. #if PPSSPP_PLATFORM(WINDOWS)