mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
sync_file: Use dma-fence driver and timeline name helpers
Access the dma-fence internals via the previously added helpers. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Tvrtko Ursulin <tursulin@ursulin.net> Link: https://lore.kernel.org/r/20250515095004.28318-5-tvrtko.ursulin@igalia.com
This commit is contained in:
parent
ecec875a6c
commit
68ff0e07f9
|
|
@ -137,8 +137,8 @@ char *sync_file_get_name(struct sync_file *sync_file, char *buf, int len)
|
|||
struct dma_fence *fence = sync_file->fence;
|
||||
|
||||
snprintf(buf, len, "%s-%s%llu-%lld",
|
||||
fence->ops->get_driver_name(fence),
|
||||
fence->ops->get_timeline_name(fence),
|
||||
dma_fence_driver_name(fence),
|
||||
dma_fence_timeline_name(fence),
|
||||
fence->context,
|
||||
fence->seqno);
|
||||
}
|
||||
|
|
@ -262,9 +262,9 @@ static long sync_file_ioctl_merge(struct sync_file *sync_file,
|
|||
static int sync_fill_fence_info(struct dma_fence *fence,
|
||||
struct sync_fence_info *info)
|
||||
{
|
||||
strscpy(info->obj_name, fence->ops->get_timeline_name(fence),
|
||||
strscpy(info->obj_name, dma_fence_timeline_name(fence),
|
||||
sizeof(info->obj_name));
|
||||
strscpy(info->driver_name, fence->ops->get_driver_name(fence),
|
||||
strscpy(info->driver_name, dma_fence_driver_name(fence),
|
||||
sizeof(info->driver_name));
|
||||
|
||||
info->status = dma_fence_get_status(fence);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user