v3dv: expose V3D revision number in device name

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
This commit is contained in:
Iago Toral Quiroga 2021-11-10 10:06:50 +01:00 committed by Marge Bot
parent 4606904215
commit 15a0ad216a

View file

@ -1127,8 +1127,10 @@ create_physical_device(struct v3dv_instance *instance,
device->next_program_id = 0;
ASSERTED int len =
asprintf(&device->name, "V3D %d.%d",
device->devinfo.ver / 10, device->devinfo.ver % 10);
asprintf(&device->name, "V3D %d.%d.%d",
device->devinfo.ver / 10,
device->devinfo.ver % 10,
device->devinfo.rev);
assert(len != -1);
v3dv_physical_device_init_disk_cache(device);