Advertise macOS M1 GPU as VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU.

This commit is contained in:
Bill Hollings 2021-01-25 14:01:07 -05:00
parent c757f3012c
commit f123cb4b19

View File

@ -2110,7 +2110,7 @@ void MVKPhysicalDevice::initGPUInfoProperties() {
bool isFound = false;
bool isIntegrated = _mtlDevice.isLowPower;
bool isIntegrated = getHasUnifiedMemory();
_properties.deviceType = isIntegrated ? VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU : VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU;
strlcpy(_properties.deviceName, _mtlDevice.name.UTF8String, VK_MAX_PHYSICAL_DEVICE_NAME_SIZE);