v3dv: start using Broadcom's device identifiers

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 <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12865>
This commit is contained in:
Iago Toral Quiroga 2021-09-15 08:30:15 +02:00 committed by Marge Bot
parent 3a26dfe761
commit 09cb4e3010

View file

@ -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
}