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@redhat.com>
Fixes: f4e499ec79
"radv: add initial non-conformant radv vulkan driver"
This commit is contained in:
parent
ecdace80f4
commit
2890a71158
|
@ -734,7 +734,7 @@ void radv_GetPhysicalDeviceProperties(
|
||||||
.driverVersion = radv_get_driver_version(),
|
.driverVersion = radv_get_driver_version(),
|
||||||
.vendorID = 0x1002,
|
.vendorID = 0x1002,
|
||||||
.deviceID = pdevice->rad_info.pci_id,
|
.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,
|
.limits = limits,
|
||||||
.sparseProperties = {0},
|
.sparseProperties = {0},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue