From 09cb4e301023dbed71c4106535d0eac0860233bb Mon Sep 17 00:00:00 2001 From: Iago Toral Quiroga Date: Wed, 15 Sep 2021 08:30:15 +0200 Subject: [PATCH] v3dv: start using Broadcom's device identifiers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Instead of creating our own based on the V3D version. CTS waivers are registered using a combination of VendorID and DeviceID, so if we want to reuse any wavers filed by Broadcom we want to use the same identifiers. We are already using the Broadcom VendorId, so let's start using the same deviceID as well. Reviewed-by: Alejandro Piñeiro Part-of: --- src/broadcom/vulkan/v3dv_device.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index 11a35a8..fec53ec 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -1239,7 +1239,12 @@ v3dv_physical_device_device_id(struct v3dv_physical_device *dev) return devid; #else - return dev->devinfo.ver; + switch (dev->devinfo.ver) { + case 42: + return 0xBE485FD3; /* Broadcom deviceID for 2711 */ + default: + unreachable("Unsupported V3D version"); + } #endif } -- 2.7.4