diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2017-08-28 23:10:28 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-08-29 02:16:25 +0200 |
commit | ffa9443fb3d3eddf0fdf6ac473dc8b5c87f08f15 (patch) | |
tree | 516a051cc991d6f093f9533c345870acfc6f1352 /drivers/gpu/drm/drm_internal.h | |
parent | drm/syncobj: Add a reset ioctl (v3) (diff) | |
download | linux-ffa9443fb3d3eddf0fdf6ac473dc8b5c87f08f15.tar.xz linux-ffa9443fb3d3eddf0fdf6ac473dc8b5c87f08f15.zip |
drm/syncobj: Add a signal ioctl (v3)
This IOCTL provides a mechanism for userspace to trigger a sync object
directly. There are other ways that userspace can trigger a syncobj
such as submitting a dummy batch somewhere or hanging on to a triggered
sync_file and doing an import. This just provides an easy way to
manually trigger the sync object without weird hacks.
The motivation for this IOCTL is Vulkan fences. Vulkan lets you create
a fence already in the signaled state so that you can wait on it
immediatly without stalling. We could also handle this with a new
create flag to ask the driver to create a syncobj that is already
signaled but the IOCTL seemed a bit cleaner and more generic.
v2:
- Take an array of sync objects (Dave Airlie)
v3:
- Throw -EINVAL if pad != 0
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_internal.h')
-rw-r--r-- | drivers/gpu/drm/drm_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h index 83f1615eb1ec..fbc3f308fa19 100644 --- a/drivers/gpu/drm/drm_internal.h +++ b/drivers/gpu/drm/drm_internal.h @@ -171,3 +171,5 @@ int drm_syncobj_wait_ioctl(struct drm_device *dev, void *data, struct drm_file *file_private); int drm_syncobj_reset_ioctl(struct drm_device *dev, void *data, struct drm_file *file_private); +int drm_syncobj_signal_ioctl(struct drm_device *dev, void *data, + struct drm_file *file_private); |