diff options
author | Dave Airlie <airlied@redhat.com> | 2017-04-26 05:09:02 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-06-14 04:11:04 +0200 |
commit | 3ee45a3b533a20ed9fcc11ddb880fc4b30d28f51 (patch) | |
tree | 9cece82033c4a5d5ca25ad68a4fe69390df25eb8 /include/uapi/drm/drm.h | |
parent | drm: introduce sync objects (v4) (diff) | |
download | linux-3ee45a3b533a20ed9fcc11ddb880fc4b30d28f51.tar.xz linux-3ee45a3b533a20ed9fcc11ddb880fc4b30d28f51.zip |
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/drm/drm.h')
-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 { __u32 pad; }; +#define DRM_SYNCOBJ_FD_TO_HANDLE_FLAGS_IMPORT_SYNC_FILE (1 << 0) +#define DRM_SYNCOBJ_HANDLE_TO_FD_FLAGS_EXPORT_SYNC_FILE (1 << 0) struct drm_syncobj_handle { __u32 handle; __u32 flags; |