mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
panfrost: add support for DRM_PANTHOR_DEV_QUERY_TIMESTAMP_INFO on drm-shim
In opposite to other DRM_PANTHOR_DEV_QUERY queries, it just fills it
with noop values. Real values doesn't seem relevant on the usual uses
for drm-shim.
This avoids the following error when using shader-db:
$ ./run shaders/glmark/1-1.shader_test
Unknown DRM_IOCTL_PANTHOR_DEV_QUERY 2
MESA: error: DRM_IOCTL_PANTHOR_DEV_QUERY failed (err=2)
As we are here we also add DRM_PANTHOR_DEV_QUERY_GROUP_PRIORITIES_INFO
support.
Fixes: 302127fe9d ("pan/kmod: Add timestamp uapi support")
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31542>
This commit is contained in:
parent
281d135810
commit
6a6a8c6cff
1 changed files with 20 additions and 0 deletions
|
|
@ -199,6 +199,26 @@ panthor_ioctl_dev_query(int fd, unsigned long request, void *arg)
|
|||
csif_info->unpreserved_cs_reg_count = 4;
|
||||
return 0;
|
||||
}
|
||||
case DRM_PANTHOR_DEV_QUERY_TIMESTAMP_INFO: {
|
||||
struct drm_panthor_timestamp_info *timestamp_info =
|
||||
(struct drm_panthor_timestamp_info *)dev_query->pointer;
|
||||
|
||||
/* Noop values */
|
||||
timestamp_info->timestamp_frequency = 0;
|
||||
timestamp_info->current_timestamp = 0;
|
||||
timestamp_info->timestamp_offset = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
case DRM_PANTHOR_DEV_QUERY_GROUP_PRIORITIES_INFO: {
|
||||
struct drm_panthor_group_priorities_info *priorities_info =
|
||||
(struct drm_panthor_group_priorities_info *)dev_query->pointer;
|
||||
|
||||
/* Noop values */
|
||||
priorities_info->allowed_mask = 0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
default:
|
||||
fprintf(stderr, "Unknown DRM_IOCTL_PANTHOR_DEV_QUERY %d\n",
|
||||
dev_query->type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue