eglmesaext.h revision 7ec681f3
1b8e80941Smrg/**************************************************************************
2b8e80941Smrg *
3b8e80941Smrg * Copyright 2008 VMware, Inc.
4b8e80941Smrg * All Rights Reserved.
5b8e80941Smrg *
6b8e80941Smrg * Permission is hereby granted, free of charge, to any person obtaining a
7b8e80941Smrg * copy of this software and associated documentation files (the
8b8e80941Smrg * "Software"), to deal in the Software without restriction, including
9b8e80941Smrg * without limitation the rights to use, copy, modify, merge, publish,
10b8e80941Smrg * distribute, sub license, and/or sell copies of the Software, and to
11b8e80941Smrg * permit persons to whom the Software is furnished to do so, subject to
12b8e80941Smrg * the following conditions:
13b8e80941Smrg *
14b8e80941Smrg * The above copyright notice and this permission notice (including the
15b8e80941Smrg * next paragraph) shall be included in all copies or substantial portions
16b8e80941Smrg * of the Software.
17b8e80941Smrg *
18b8e80941Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19b8e80941Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20b8e80941Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
21b8e80941Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22b8e80941Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23b8e80941Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24b8e80941Smrg * DEALINGS IN THE SOFTWARE.
25b8e80941Smrg *
26b8e80941Smrg **************************************************************************/
27b8e80941Smrg
28b8e80941Smrg#ifndef __eglmesaext_h_
29b8e80941Smrg#define __eglmesaext_h_
30b8e80941Smrg
31b8e80941Smrg#ifdef __cplusplus
32b8e80941Smrgextern "C" {
33b8e80941Smrg#endif
34b8e80941Smrg
35b8e80941Smrg#include <EGL/eglplatform.h>
36b8e80941Smrg
37b8e80941Smrg/* remnant of EGL_NOK_swap_region kept for compatibility because of a non-standard type name */
38b8e80941Smrgtypedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
39b8e80941Smrg
40b8e80941Smrg#ifndef EGL_MESA_configless_context
41b8e80941Smrg#define EGL_MESA_configless_context 1
42b8e80941Smrg#define EGL_NO_CONFIG_MESA			EGL_CAST(EGLConfig,0)
43b8e80941Smrg#endif
44b8e80941Smrg
45b8e80941Smrg#ifndef EGL_MESA_drm_image_formats
46b8e80941Smrg#define EGL_MESA_drm_image_formats 1
47b8e80941Smrg#define EGL_DRM_BUFFER_FORMAT_ARGB2101010_MESA  0x3290
48b8e80941Smrg#define EGL_DRM_BUFFER_FORMAT_ARGB1555_MESA     0x3291
49b8e80941Smrg#define EGL_DRM_BUFFER_FORMAT_RGB565_MESA       0x3292
50b8e80941Smrg#endif /* EGL_MESA_drm_image_formats */
51b8e80941Smrg
52b8e80941Smrg#ifdef __cplusplus
53b8e80941Smrg}
54b8e80941Smrg#endif
55b8e80941Smrg
56b8e80941Smrg#endif
57b8e80941Smrg