summaryrefslogtreecommitdiffstats
path: root/include/uapi/drm/vc4_drm.h
diff options
context:
space:
mode:
authorStefan Schake <stschake@gmail.com>2018-04-25 00:03:46 +0200
committerEric Anholt <eric@anholt.net>2018-04-30 16:04:23 -0700
commite84fcb95e07442edd7ce3b13973523646dbc581a (patch)
treeee68eb7b0814f397e85b8870fb9504d7effecd63 /include/uapi/drm/vc4_drm.h
parent818f5c8f4cd27747e8218e8a5fb230c322e02d1e (diff)
downloadlinux-e84fcb95e07442edd7ce3b13973523646dbc581a.tar.gz
linux-e84fcb95e07442edd7ce3b13973523646dbc581a.tar.bz2
linux-e84fcb95e07442edd7ce3b13973523646dbc581a.zip
drm/vc4: Export fence through syncobj
Allow specifying a syncobj on render job submission where we store the fence for the job. This gives userland flexible access to the fence. v2: Use 0 as invalid syncobj to drop flag (Eric) Don't reintroduce the padding (Eric) Signed-off-by: Stefan Schake <stschake@gmail.com> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Eric Anholt <eric@anholt.net> Link: https://patchwork.freedesktop.org/patch/msgid/1524607427-12876-3-git-send-email-stschake@gmail.com
Diffstat (limited to 'include/uapi/drm/vc4_drm.h')
-rw-r--r--include/uapi/drm/vc4_drm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/drm/vc4_drm.h b/include/uapi/drm/vc4_drm.h
index d97065b86431..2be4fe3610b8 100644
--- a/include/uapi/drm/vc4_drm.h
+++ b/include/uapi/drm/vc4_drm.h
@@ -187,6 +187,12 @@ struct drm_vc4_submit_cl {
* will not start until the syncobj is signaled. 0 means ignore.
*/
__u32 in_sync;
+
+ /* Syncobj handle to export fence to. If set, the fence in the syncobj
+ * will be replaced with a fence that signals upon completion of this
+ * render job. 0 means ignore.
+ */
+ __u32 out_sync;
};
/**