mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-11 00:05:51 +00:00
Identify swiftshader in vulkan driver info
This commit is contained in:
@@ -747,6 +747,10 @@ VkDriverInfo::VkDriverInfo(const VkPhysicalDeviceProperties &physProps)
|
||||
if(physProps.vendorID == VK_VENDOR_ID_VSI)
|
||||
m_Vendor = GPUVendor::Verisilicon;
|
||||
|
||||
// Swiftshader
|
||||
if(physProps.vendorID == 0x1AE0 && physProps.deviceID == 0xC0DE)
|
||||
m_Vendor = GPUVendor::Software;
|
||||
|
||||
m_Major = VK_VERSION_MAJOR(physProps.driverVersion);
|
||||
m_Minor = VK_VERSION_MINOR(physProps.driverVersion);
|
||||
m_Patch = VK_VERSION_PATCH(physProps.driverVersion);
|
||||
|
||||
Reference in New Issue
Block a user