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>
This commit is contained in:
Rob Clark
2022-02-19 08:36:43 -08:00
committed by Marge Bot
parent af2951dde8
commit dfac374220
4 changed files with 61 additions and 1 deletions

View File

@@ -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);
};