Identify swiftshader in vulkan driver info

This commit is contained in:
baldurk
2019-08-14 14:15:52 +01:00
parent 29647ee391
commit bb8172cfff
+4
View File
@@ -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);