DriverDetails: Introduce new VENDOR_APPLE for Apple GPUs

This commit is contained in:
OatmealDome 2021-07-30 04:02:51 -04:00
parent 80dfefb32e
commit e7f5e5172c
2 changed files with 6 additions and 0 deletions

View File

@ -922,6 +922,11 @@ void VulkanContext::InitDriverDetails()
vendor = DriverDetails::VENDOR_IMGTEC; vendor = DriverDetails::VENDOR_IMGTEC;
driver = DriverDetails::DRIVER_IMGTEC; driver = DriverDetails::DRIVER_IMGTEC;
} }
else if (device_name.find("Apple") != std::string::npos)
{
vendor = DriverDetails::VENDOR_APPLE;
driver = DriverDetails::DRIVER_PORTABILITY;
}
else else
{ {
WARN_LOG_FMT(VIDEO, "Unknown Vulkan driver vendor, please report it to us."); WARN_LOG_FMT(VIDEO, "Unknown Vulkan driver vendor, please report it to us.");

View File

@ -43,6 +43,7 @@ enum Vendor
VENDOR_TEGRA, VENDOR_TEGRA,
VENDOR_VIVANTE, VENDOR_VIVANTE,
VENDOR_MESA, VENDOR_MESA,
VENDOR_APPLE,
VENDOR_UNKNOWN VENDOR_UNKNOWN
}; };