diff options
| author | 2018-04-25 00:03:46 +0200 | |
|---|---|---|
| committer | 2018-04-30 16:04:23 -0700 | |
| commit | e84fcb95e07442edd7ce3b13973523646dbc581a (patch) | |
| tree | ee68eb7b0814f397e85b8870fb9504d7effecd63 /include/uapi/drm | |
| parent | drm/vc4: Syncobj import support (diff) | |
| download | linux-dev-e84fcb95e07442edd7ce3b13973523646dbc581a.tar.xz linux-dev-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')
| -rw-r--r-- | include/uapi/drm/vc4_drm.h | 6 |
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; }; /** |
