we need to import/export timeline point. v2: unify to one transfer ioctl
Showing the changes to include/uapi (1 of 4 files). Show all
Unified · Split
| @@ -735,6 +735,15 @@ struct drm_syncobj_handle { · 734 unmodified lines | ||
| 735 | 735 | __u32 pad; |
| 736 | 736 | }; |
| 737 | 737 | |
| 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 | + | |
| 738 | 747 | #define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL (1 << 0) |
| 739 | 748 | #define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT (1 << 1) |
| 740 | 749 | #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 | ||
| 933 | 942 | |
| 934 | 943 | #define DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT DRM_IOWR(0xCA, struct drm_syncobj_timeline_wait) |
| 935 | 944 | #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) | |
| 936 | 946 | |
| 937 | 947 | /** |
| 938 | 948 | * Device specific ioctls should only be in their respective headers |