panvk: Fix the deviceID reported by the driver

Report the -rXpY info in the deviceID.

Reviewed-by: John Anthony <john.anthony@arm.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39267>
This commit is contained in:
Boris Brezillon 2025-04-28 15:00:23 +02:00 committed by John Anthony
parent 6dff2220fa
commit f9745d59f0

View file

@ -615,12 +615,7 @@ panvk_per_arch(get_physical_device_properties)(
.driverVersion = vk_get_driver_version(),
.vendorID =
instance->force_vk_vendor ? instance->force_vk_vendor : ARM_VENDOR_ID,
/* Collect arch_major, arch_minor, arch_rev and product_major,
* as done by the Arm driver.
*/
.deviceID = device->kmod.dev->props.gpu_id &
(ARCH_MAJOR | ARCH_MINOR | ARCH_REV | PRODUCT_MAJOR),
.deviceID = device->kmod.dev->props.gpu_id,
.deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU,
/* Vulkan 1.0 limits */