From 9780c6bb77ae00ca68dd618c3f9b5baa8b2665c7 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 28 Jun 2019 11:01:27 +0100 Subject: [PATCH] Add passthrough hooking of EGL 1.5 --- renderdoc/driver/gl/egl_hooks.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/renderdoc/driver/gl/egl_hooks.cpp b/renderdoc/driver/gl/egl_hooks.cpp index b622ab567..94330e817 100644 --- a/renderdoc/driver/gl/egl_hooks.cpp +++ b/renderdoc/driver/gl/egl_hooks.cpp @@ -696,6 +696,24 @@ EGL_PASSTHRU_0(EGLBoolean, eglWaitClient) /* EGL 1.4 */ EGL_PASSTHRU_0(EGLContext, eglGetCurrentContext) +/* EGL 1.5 */ +EGL_PASSTHRU_3(EGLSync, eglCreateSync, EGLDisplay, dpy, EGLenum, type, const EGLAttrib *, attrib_list) +EGL_PASSTHRU_2(EGLBoolean, eglDestroySync, EGLDisplay, dpy, EGLSync, sync) +EGL_PASSTHRU_4(EGLint, eglClientWaitSync, EGLDisplay, dpy, EGLSync, sync, EGLint, flags, EGLTime, + timeout) +EGL_PASSTHRU_4(EGLBoolean, eglGetSyncAttrib, EGLDisplay, dpy, EGLSync, sync, EGLint, attribute, + EGLAttrib *, value) +EGL_PASSTHRU_5(EGLImage, eglCreateImage, EGLDisplay, dpy, EGLContext, ctx, EGLenum, target, + EGLClientBuffer, buffer, const EGLAttrib *, attrib_list) +EGL_PASSTHRU_2(EGLBoolean, eglDestroyImage, EGLDisplay, dpy, EGLImage, image) +EGL_PASSTHRU_3(EGLDisplay, eglGetPlatformDisplay, EGLenum, platform, void *, native_display, + const EGLAttrib *, attrib_list) +EGL_PASSTHRU_4(EGLSurface, eglCreatePlatformWindowSurface, EGLDisplay, dpy, EGLConfig, config, + void *, native_window, const EGLAttrib *, attrib_list) +EGL_PASSTHRU_4(EGLSurface, eglCreatePlatformPixmapSurface, EGLDisplay, dpy, EGLConfig, config, + void *, native_pixmap, const EGLAttrib *, attrib_list) +EGL_PASSTHRU_3(EGLBoolean, eglWaitSync, EGLDisplay, dpy, EGLSync, sync, EGLint, flags) + static void EGLHooked(void *handle) { RDCDEBUG("EGL library hooked");