include: Add a flush interop method

Reviewed-by: Adam Jackson <ajax@redhat.com>
Acked-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19242>
This commit is contained in:
Jesse Natalie
2022-10-21 15:14:30 -07:00
committed by Marge Bot
parent aaf35cb442
commit 04d45eab34
2 changed files with 57 additions and 1 deletions

View File

@@ -416,11 +416,12 @@ struct __DRI2fenceExtensionRec {
*/
#define __DRI2_INTEROP "DRI2_Interop"
#define __DRI2_INTEROP_VERSION 1
#define __DRI2_INTEROP_VERSION 2
struct mesa_glinterop_device_info;
struct mesa_glinterop_export_in;
struct mesa_glinterop_export_out;
typedef struct __GLsync *GLsync;
struct __DRI2interopExtensionRec {
__DRIextension base;
@@ -433,6 +434,15 @@ struct __DRI2interopExtensionRec {
int (*export_object)(__DRIcontext *ctx,
struct mesa_glinterop_export_in *in,
struct mesa_glinterop_export_out *out);
/**
* Same as MesaGLInterop*FlushObjects.
*
* \since 2
*/
int (*flush_objects)(__DRIcontext *ctx,
unsigned count, struct mesa_glinterop_export_in *objects,
GLsync *sync);
};