History

drm/syncobj: add transition iotcls between binary and timeline v2

we need to import/export timeline point. v2: unify to one transfer ioctl

Chunming Zhou committed 7 years ago

Commit ea569911 parent bc9c80f4 files · +88 −0Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/drm/drm.h+10−0
@@ -735,6 +735,15 @@ struct drm_syncobj_handle { · 734 unmodified lines
735735 __u32 pad;
736736 };
737737
738+struct drm_syncobj_transfer {
739+ __u32 src_handle;
740+ __u32 dst_handle;
741+ __u64 src_point;
742+ __u64 dst_point;
743+ __u32 flags;
744+ __u32 pad;
745+};
746+
738747 #define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL (1 << 0)
739748 #define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT (1 << 1)
740749 #define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE (1 << 2) /* wait for time point to become available */
@@ -933,6 +942,7 @@ extern "C" { · 192 unmodified lines
933942
934943 #define DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT DRM_IOWR(0xCA, struct drm_syncobj_timeline_wait)
935944 #define DRM_IOCTL_SYNCOBJ_QUERY DRM_IOWR(0xCB, struct drm_syncobj_timeline_array)
945+#define DRM_IOCTL_SYNCOBJ_TRANSFER DRM_IOWR(0xCC, struct drm_syncobj_transfer)
936946
937947 /**
938948 * Device specific ioctls should only be in their respective headers