Mesa (master): radv: expose integrated device type for APUs.
Dave Airlie
airlied at kemper.freedesktop.org
Tue Jun 6 02:50:40 UTC 2017
Module: Mesa
Branch: master
Commit: 2890a711587e03f906530919056275b599f5f03e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2890a711587e03f906530919056275b599f5f03e
Author: Dave Airlie <airlied at redhat.com>
Date: Mon May 15 11:27:10 2017 +1000
radv: expose integrated device type for APUs.
This just sets the vulkan device type depending on whether
this is an APU or GPU.
Signed-off-by: Dave Airlie <airlied at redhat.com>
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
---
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 ad4005ba61..887916f558 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -734,7 +734,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},
};
More information about the mesa-commit
mailing list