[Mesa-dev] [PATCH] radv: expose integrated device type for APUs.
Dave Airlie
airlied at gmail.com
Mon May 15 01:27:10 UTC 2017
From: Dave Airlie <airlied at redhat.com>
Note: this is on top of nha's rework.
This just sets the vulkan device type depending on whether
this is an APU or GPU.
---
src/amd/vulkan/radv_device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 102b9fd..e082c59 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -702,7 +702,7 @@ void radv_GetPhysicalDeviceProperties(
.driverVersion = radv_get_driver_version(),
.vendorID = 0x1002,
.deviceID = pdevice->rad_info.pci_id,
- .deviceType = VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU,
+ .deviceType = pdevice->rad_info.has_dedicated_vram ? VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU : VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
.limits = limits,
.sparseProperties = {0},
};
--
2.9.3
More information about the mesa-dev
mailing list