broadcom/simulator: Expose V3D revision number in the simulator interface

Signed-off-by: Maíra Canal <mcanal@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34465>
This commit is contained in:
Maíra Canal
2025-04-10 15:08:01 -03:00
committed by Marge Bot
parent 1d5da22dfd
commit d3ad4e3465
3 changed files with 10 additions and 0 deletions

View File

@@ -89,6 +89,13 @@ int v3d_hw_get_version(struct v3d_hw *hw)
return ident->tech_version * 10 + ident->revision;
}
int v3d_hw_get_revision(struct v3d_hw *hw)
{
const V3D_HUB_IDENT_T *ident = hw->get_hub_ident();
return ident->sub_rev;
}
void
v3d_hw_set_isr(struct v3d_hw *hw, void (*isr)(uint32_t status))
{