diff options
| author | Dave Airlie <airlied@redhat.com> | 2017-04-25 23:09:02 -0400 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2017-06-13 22:11:04 -0400 |
| commit | 3ee45a3b533a20ed9fcc11ddb880fc4b30d28f51 (patch) | |
| tree | 9cece82033c4a5d5ca25ad68a4fe69390df25eb8 /include/uapi | |
| parent | e9083420bbacce27e43d418064d0d2dfb4b37aaa (diff) | |
drm/syncobj: add sync_file interaction. (v1.2)
This interface allows importing the fence from a sync_file into
an existing drm sync object, or exporting the fence attached to
an existing drm sync object into a new sync file object.
This should only be used to interact with sync files where necessary.
v1.1: fence put fixes (Chris), drop fence from ioctl names (Chris)
fixup for new fence replace API.
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/drm/drm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index 96c5c789e73d..101593ab10ac 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi/drm/drm.h | |||
| @@ -708,6 +708,8 @@ struct drm_syncobj_destroy { | |||
| 708 | __u32 pad; | 708 | __u32 pad; |
| 709 | }; | 709 | }; |
| 710 | 710 | ||
| 711 | #define DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE (1 << 0) | ||
| 712 | #define DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE (1 << 0) | ||
| 711 | struct drm_syncobj_handle { | 713 | struct drm_syncobj_handle { |
| 712 | __u32 handle; | 714 | __u32 handle; |
| 713 | __u32 flags; | 715 | __u32 flags; |
