mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 04:03:49 +01:00
Use vendor instead of lazy memory to detect tiling GPUs.
This commit is contained in:
1 parent
b70a9993d8
commit
a44af59f3a
1 file changed
+9
-6
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user