broadcom/common: retrieve V3D revision number
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 9 Nov 2021 07:50:51 +0000 (08:50 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 22:37:41 +0000 (22:37 +0000)
commit04f16574e66a150a012a42b45620b910ef0b544e
tree927a556625088ac63d16e7be95a11fadb52c231b
parent52942aac0ef03297204a732169982d5cd4a4b0af
broadcom/common: retrieve V3D revision number

The subrev field from the hub ident3 register is bumped with every
hardware revision doing backwards incompatible changes so we want to
keep track of this.

Instead of modifying the 'ver' field info to acommodate subrev info,
which would require a lot of changes, simply add a new 'rev' field in
devinfo that we can use when we need to make changes based on the
revision number of a hardware release.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
src/broadcom/common/v3d_device_info.c
src/broadcom/common/v3d_device_info.h