diff options
author | Rob Clark <robdclark@chromium.org> | 2022-02-19 08:36:43 -0800 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-04 22:16:20 +0000 |
commit | dfac374220d80b741b56fd9f31211902d8fa033e (patch) | |
tree | 961e230ed96357f91035eaf12d2378990d4ddd7b /include | |
parent | af2951dde843238c2a3052cb1fabefe7289d4210 (diff) |
gallium/dri: Extend image extension to support in-fence
Extend dri so that an in-fence-fd can be plumbed through to driver.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15094>
Diffstat (limited to 'include')
-rw-r--r-- | include/GL/internal/dri_interface.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 42da745d669..6099b2a296f 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -1689,6 +1689,17 @@ struct __DRIimageExtensionRec { uint32_t flags, int *strides, int *offsets, void *loaderPrivate); + + /** + * Set an in-fence-fd on the image. If a fence-fd is already set + * (but not yet consumed), the existing and new fence will be merged + * + * This does *not* take ownership of the fd. The fd does not need + * to be kept alive once the call has returned. + * + * \since 21 + */ + void (*setInFenceFd)(__DRIimage *image, int fd); }; |