summaryrefslogtreecommitdiffstats
path: root/include/EGL
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2012-07-05 16:43:04 -0400
committerKristian Høgsberg <[email protected]>2012-07-11 15:28:36 -0400
commite6a33570b73aa56c87818d7f67a122d4427b7841 (patch)
tree4417b28097e16ea2b944922b6ec71c2ba087817e /include/EGL
parent1aaec8c60985ffe03af265bf8f659ee0319926ca (diff)
egl: Add EGL_WAYLAND_PLANE_WL attribute
This lets us specify the plane to create the image for for multiplanar wl_buffers. Signed-off-by: Kristian Høgsberg <[email protected]>
Diffstat (limited to 'include/EGL')
-rw-r--r--include/EGL/eglmesaext.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/EGL/eglmesaext.h b/include/EGL/eglmesaext.h
index 52dd5b108fd..74d8ced37f3 100644
--- a/include/EGL/eglmesaext.h
+++ b/include/EGL/eglmesaext.h
@@ -113,13 +113,27 @@ typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETDRMDISPLAYMESA) (int fd);
#define EGL_WL_bind_wayland_display 1
#define EGL_WAYLAND_BUFFER_WL 0x31D5 /* eglCreateImageKHR target */
+#define EGL_WAYLAND_PLANE_WL 0x31D6 /* eglCreateImageKHR target */
+
+#define EGL_WAYLAND_BUFFER_COMPONENTS_WL 0x31D7 /* eglQueryWaylandBufferWL attribute */
+
+#define EGL_WAYLAND_BUFFER_RGB_WL 0x31D8
+#define EGL_WAYLAND_BUFFER_RGBA_WL 0x31D9
+#define EGL_WAYLAND_BUFFER_Y_U_V_WL 0x31Da
+#define EGL_WAYLAND_BUFFER_Y_UV_WL 0x31Db
+#define EGL_WAYLAND_BUFFER_Y_XUXV_WL 0x31Dc
+
struct wl_display;
+struct wl_buffer;
#ifdef EGL_EGLEXT_PROTOTYPES
EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_buffer *buffer, EGLint attribute, EGLint *value);
#endif
typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
+typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, struct wl_buffer *buffer, EGLint attribute, EGLint *value);
+
#endif
#ifndef EGL_NOK_swap_region