mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 03:14:34 +01:00
Cleanup GPU vendor detection a bit, use it to avoid the issue mentioned in #9545
This commit is contained in:
1 parent
9468b3d073
commit
2c86217552
13 files changed
+88
-24
No files matched your search
@@ -687,6 +687,17 @@ VKContext::VKContext(VulkanContext *vulkan)
|
||||
caps_.framebufferDepthCopySupported = true; // Will pretty much always be the case.
|
||||
caps_.preferredDepthBufferFormat = DataFormat::D24_S8; // TODO: Ask vulkan.
|
||||
|
||||
switch (vulkan->GetPhysicalDeviceProperties().vendorID) {
|
||||
case VULKAN_VENDOR_AMD: caps_.vendor = GPUVendor::AMD; break;
|
||||
case VULKAN_VENDOR_ARM: caps_.vendor = GPUVendor::ARM; break;
|
||||
case VULKAN_VENDOR_IMGTEC: caps_.vendor = GPUVendor::IMGTEC; break;
|
||||
case VULKAN_VENDOR_NVIDIA: caps_.vendor = GPUVendor::NVIDIA; break;
|
||||
case VULKAN_VENDOR_QUALCOMM: caps_.vendor = GPUVendor::QUALCOMM; break;
|
||||
case VULKAN_VENDOR_INTEL: caps_.vendor = GPUVendor::INTEL; break;
|
||||
default:
|
||||
caps_.vendor = GPUVendor::UNKNOWN;
|
||||
}
|
||||
|
||||
device_ = vulkan->GetDevice();
|
||||
|
||||
queue_ = vulkan->GetGraphicsQueue();
|
||||
|
||||
Reference in new issue
Block a user