1848b8605Smrg/************************************************************************** 2848b8605Smrg * 3848b8605Smrg * Copyright 2008 VMware, Inc. 4848b8605Smrg * All Rights Reserved. 5848b8605Smrg * 6848b8605Smrg * Permission is hereby granted, free of charge, to any person obtaining a 7848b8605Smrg * copy of this software and associated documentation files (the 8848b8605Smrg * "Software"), to deal in the Software without restriction, including 9848b8605Smrg * without limitation the rights to use, copy, modify, merge, publish, 10848b8605Smrg * distribute, sub license, and/or sell copies of the Software, and to 11848b8605Smrg * permit persons to whom the Software is furnished to do so, subject to 12848b8605Smrg * the following conditions: 13848b8605Smrg * 14848b8605Smrg * The above copyright notice and this permission notice (including the 15848b8605Smrg * next paragraph) shall be included in all copies or substantial portions 16848b8605Smrg * of the Software. 17848b8605Smrg * 18848b8605Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19848b8605Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20848b8605Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 21848b8605Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22848b8605Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 23848b8605Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 24848b8605Smrg * DEALINGS IN THE SOFTWARE. 25848b8605Smrg * 26848b8605Smrg **************************************************************************/ 27848b8605Smrg 28848b8605Smrg#ifndef __eglmesaext_h_ 29848b8605Smrg#define __eglmesaext_h_ 30848b8605Smrg 31848b8605Smrg#ifdef __cplusplus 32848b8605Smrgextern "C" { 33848b8605Smrg#endif 34848b8605Smrg 35848b8605Smrg#include <EGL/eglplatform.h> 36848b8605Smrg 37848b8605Smrg#ifndef EGL_WL_bind_wayland_display 38848b8605Smrg#define EGL_WL_bind_wayland_display 1 39848b8605Smrg 40848b8605Smrg#define EGL_WAYLAND_BUFFER_WL 0x31D5 /* eglCreateImageKHR target */ 41848b8605Smrg#define EGL_WAYLAND_PLANE_WL 0x31D6 /* eglCreateImageKHR target */ 42848b8605Smrg 43848b8605Smrg#define EGL_WAYLAND_Y_INVERTED_WL 0x31DB /* eglQueryWaylandBufferWL attribute */ 44848b8605Smrg 45848b8605Smrg#define EGL_TEXTURE_Y_U_V_WL 0x31D7 46848b8605Smrg#define EGL_TEXTURE_Y_UV_WL 0x31D8 47848b8605Smrg#define EGL_TEXTURE_Y_XUXV_WL 0x31D9 48b8e80941Smrg#define EGL_TEXTURE_EXTERNAL_WL 0x31DA 49848b8605Smrg 50848b8605Smrgstruct wl_display; 51848b8605Smrgstruct wl_resource; 52848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 53848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display); 54848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display); 55848b8605SmrgEGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value); 56848b8605Smrg#endif 57848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display); 58848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display); 59848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value); 60848b8605Smrg 61848b8605Smrg#endif 62848b8605Smrg 63848b8605Smrg#ifndef EGL_WL_create_wayland_buffer_from_image 64848b8605Smrg#define EGL_WL_create_wayland_buffer_from_image 1 65848b8605Smrg 66b8e80941Smrgstruct wl_buffer; 67848b8605Smrg#ifdef EGL_EGLEXT_PROTOTYPES 68848b8605SmrgEGLAPI struct wl_buffer * EGLAPIENTRY eglCreateWaylandBufferFromImageWL(EGLDisplay dpy, EGLImageKHR image); 69848b8605Smrg#endif 70848b8605Smrgtypedef struct wl_buffer * (EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL) (EGLDisplay dpy, EGLImageKHR image); 71848b8605Smrg 72848b8605Smrg#endif 73848b8605Smrg 74b8e80941Smrg/* remnant of EGL_NOK_swap_region kept for compatibility because of a non-standard type name */ 75848b8605Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects); 76848b8605Smrg 77848b8605Smrg#ifndef EGL_MESA_configless_context 78848b8605Smrg#define EGL_MESA_configless_context 1 79848b8605Smrg#define EGL_NO_CONFIG_MESA ((EGLConfig)0) 80848b8605Smrg#endif 81848b8605Smrg 82b8e80941Smrg#ifndef EGL_MESA_drm_image_formats 83b8e80941Smrg#define EGL_MESA_drm_image_formats 1 84b8e80941Smrg#define EGL_DRM_BUFFER_FORMAT_ARGB2101010_MESA 0x3290 85b8e80941Smrg#define EGL_DRM_BUFFER_FORMAT_ARGB1555_MESA 0x3291 86b8e80941Smrg#define EGL_DRM_BUFFER_FORMAT_RGB565_MESA 0x3292 87b8e80941Smrg#endif /* EGL_MESA_drm_image_formats */ 88b8e80941Smrg 89848b8605Smrg#ifdef __cplusplus 90848b8605Smrg} 91848b8605Smrg#endif 92848b8605Smrg 93848b8605Smrg#endif 94