aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-12-24 18:56:01 +0100
committerdec05eba <dec05eba@protonmail.com>2025-12-24 18:56:01 +0100
commit1f0ea70c366f8b2f033d0d49f93172e85c8f0f78 (patch)
tree2e6bfd1c435655703d23423535d7f26af7e16c79 /include
parent0511f04d1f7cd1cff5a56c28eb9114e6d8528280 (diff)
wip sync
Diffstat (limited to 'include')
-rw-r--r--include/egl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/egl.h b/include/egl.h
index d4fed98..2927b53 100644
--- a/include/egl.h
+++ b/include/egl.h
@@ -40,6 +40,7 @@ typedef struct __GLXFBConfigRec *GLXFBConfig;
typedef struct __GLXcontextRec *GLXContext;
typedef XID GLXDrawable;
typedef void(*__GLXextFuncPtr)(void);
+typedef struct __GLsync *GLsync;
#define EGL_SUCCESS 0x3000
#define EGL_BUFFER_SIZE 0x3020
@@ -151,6 +152,11 @@ typedef void(*__GLXextFuncPtr)(void);
#define GL_COMPILE_STATUS 0x8B81
#define GL_LINK_STATUS 0x8B82
+#define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
+#define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
+#define GL_CONDITION_SATISFIED 0x911C
+#define GL_ALREADY_SIGNALED 0x911A
+
typedef unsigned int (*FUNC_eglExportDMABUFImageQueryMESA)(EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, uint64_t *modifiers);
typedef unsigned int (*FUNC_eglExportDMABUFImageMESA)(EGLDisplay dpy, EGLImageKHR image, int *fds, int32_t *strides, int32_t *offsets);
typedef void (*FUNC_glEGLImageTargetTexture2DOES)(unsigned int target, GLeglImageOES image);
@@ -309,6 +315,10 @@ struct gsr_egl {
void* (*glMapBufferRange)(unsigned int target, intptr_t offset, ssize_t length, unsigned int access);
unsigned char (*glUnmapBuffer)(unsigned int target);
void (*glGetIntegerv)(unsigned int pname, int *params);
+
+ GLsync (*glFenceSync)(unsigned int condition, unsigned int flags);
+ void (*glDeleteSync)(GLsync sync);
+ unsigned int (*glClientWaitSync)(GLsync sync, unsigned int flags, uint64_t timeout);
};
bool gsr_egl_load(gsr_egl *self, gsr_window *window, bool is_monitor_capture, bool enable_debug);