diff options
author | José Fonseca <jfonseca@vmware.com> | 2015-06-22 14:18:14 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2015-06-22 15:37:40 +0100 |
commit | ba6d76cb596ce8a1539d29b1b485cfd279c1b5d6 (patch) | |
tree | a13fb49bad7d2804fe6dbee8b54eecd4bbb46c96 /specs | |
parent | 503a1388321e3f2de2589448899ca61d22edd631 (diff) |
eglretrace: Leverage EGL_EXT_platform_x11 where available.
I was hoping this would help with NVIDIA EGL on Linux but it did not.
Diffstat (limited to 'specs')
-rw-r--r-- | specs/eglapi.py | 9 | ||||
-rw-r--r-- | specs/scripts/Makefile | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/specs/eglapi.py b/specs/eglapi.py index 7fbdfaf1..8379e45e 100644 --- a/specs/eglapi.py +++ b/specs/eglapi.py @@ -191,6 +191,10 @@ EGLFenceSyncNVAttribs = EGLAttribArray([ ('EGL_SYNC_STATUS_NV', Flags(Int, ['EGL_SIGNALED_NV', 'EGL_UNSIGNALED_NV'])) ]) +EGLPlatformDisplayAttribs = EGLAttribArray([ + ('EGL_PLATFORM_X11_SCREEN_EXT', Int), +]) + EGLProc = Opaque("__eglMustCastToProperFunctionPointerType") def GlFunction(*args, **kwargs): @@ -249,6 +253,11 @@ eglapi.addFunctions([ Function(EGLProc, "eglGetProcAddress", [(ConstCString, "procname")]), + # EGL_EXT_platform_base + GlFunction(EGLDisplay, "eglGetPlatformDisplayEXT", [(EGLenum, "platform"), (OpaquePointer(Void), "native_display"), (EGLPlatformDisplayAttribs, "attrib_list")]), + GlFunction(EGLSurface, "eglCreatePlatformWindowSurfaceEXT", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (OpaquePointer(Void), "native_window"), (EGLAttribArray([]), "attrib_list")]), + GlFunction(EGLSurface, "eglCreatePlatformPixmapSurfaceEXT", [(EGLDisplay, "dpy"), (EGLConfig, "config"), (OpaquePointer(Void), "native_pixmap"), (EGLAttribArray([]), "attrib_list")]), + # EGL_KHR_lock_surface # EGL_KHR_lock_surface2 Function(EGLBoolean, "eglLockSurfaceKHR", [(EGLDisplay, "display"), (EGLSurface, "surface"), (EGLLockSurfaceKHRAttribs, "attrib_list")]), diff --git a/specs/scripts/Makefile b/specs/scripts/Makefile index 1a9e8781..714a3deb 100644 --- a/specs/scripts/Makefile +++ b/specs/scripts/Makefile @@ -5,6 +5,7 @@ all: \ glparams.py \ glxapi.py \ wglapi.py \ + eglapi.py \ glxenum.py \ wglenum.py \ eglenum.py @@ -44,6 +45,9 @@ glxapi.py: xml2api.py glx.xml wglapi.py: xml2api.py wgl.xml python $^ > $@ +eglapi.py: xml2api.py egl.xml + python $^ > $@ + glparams.py: xml2glparams.py gl.xml python $^ > $@ |