2011-12-19 17:37:30 +08:00
|
|
|
/**************************************************************************
|
|
|
|
*
|
s/Tungsten Graphics/VMware/
Tungsten Graphics Inc. was acquired by VMware Inc. in 2008. Leaving the
old copyright name is creating unnecessary confusion, hence this change.
This was the sed script I used:
$ cat tg2vmw.sed
# Run as:
#
# git reset --hard HEAD && find include scons src -type f -not -name 'sed*' -print0 | xargs -0 sed -i -f tg2vmw.sed
#
# Rename copyrights
s/Tungsten Gra\(ph\|hp\)ics,\? [iI]nc\.\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./g
/Copyright/s/Tungsten Graphics\(,\? [iI]nc\.\)\?\(, Cedar Park\)\?\(, Austin\)\?\(, \(Texas\|TX\)\)\?\.\?/VMware, Inc./
s/TUNGSTEN GRAPHICS/VMWARE/g
# Rename emails
s/alanh@tungstengraphics.com/alanh@vmware.com/
s/jens@tungstengraphics.com/jowen@vmware.com/g
s/jrfonseca-at-tungstengraphics-dot-com/jfonseca-at-vmware-dot-com/
s/jrfonseca\?@tungstengraphics.com/jfonseca@vmware.com/g
s/keithw\?@tungstengraphics.com/keithw@vmware.com/g
s/michel@tungstengraphics.com/daenzer@vmware.com/g
s/thomas-at-tungstengraphics-dot-com/thellstom-at-vmware-dot-com/
s/zack@tungstengraphics.com/zackr@vmware.com/
# Remove dead links
s@Tungsten Graphics (http://www.tungstengraphics.com)@Tungsten Graphics@g
# C string src/gallium/state_trackers/vega/api_misc.c
s/"Tungsten Graphics, Inc"/"VMware, Inc"/
Reviewed-by: Brian Paul <brianp@vmware.com>
2014-01-18 00:27:50 +08:00
|
|
|
* Copyright 2008 VMware, Inc.
|
2011-12-19 17:37:30 +08:00
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
* distribute, sub license, and/or sell copies of the Software, and to
|
|
|
|
* permit persons to whom the Software is furnished to do so, subject to
|
|
|
|
* the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice (including the
|
|
|
|
* next paragraph) shall be included in all copies or substantial portions
|
|
|
|
* of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
* DEALINGS IN THE SOFTWARE.
|
|
|
|
*
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __eglmesaext_h_
|
|
|
|
#define __eglmesaext_h_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <EGL/eglplatform.h>
|
|
|
|
|
|
|
|
#ifndef EGL_MESA_drm_display
|
|
|
|
#define EGL_MESA_drm_display 1
|
|
|
|
|
|
|
|
#ifdef EGL_EGLEXT_PROTOTYPES
|
|
|
|
EGLAPI EGLDisplay EGLAPIENTRY eglGetDRMDisplayMESA(int fd);
|
|
|
|
#endif /* EGL_EGLEXT_PROTOTYPES */
|
|
|
|
|
|
|
|
typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETDRMDISPLAYMESA) (int fd);
|
|
|
|
|
|
|
|
#endif /* EGL_MESA_drm_display */
|
|
|
|
|
2011-12-15 15:20:01 +08:00
|
|
|
#ifdef EGL_MESA_drm_image
|
|
|
|
/* Mesa's extension to EGL_MESA_drm_image... */
|
|
|
|
#ifndef EGL_DRM_BUFFER_USE_CURSOR_MESA
|
2011-12-19 17:37:30 +08:00
|
|
|
#define EGL_DRM_BUFFER_USE_CURSOR_MESA 0x0004
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EGL_WL_bind_wayland_display
|
|
|
|
#define EGL_WL_bind_wayland_display 1
|
|
|
|
|
2012-07-19 20:54:05 +08:00
|
|
|
#define EGL_WAYLAND_BUFFER_WL 0x31D5 /* eglCreateImageKHR target */
|
|
|
|
#define EGL_WAYLAND_PLANE_WL 0x31D6 /* eglCreateImageKHR target */
|
2012-07-06 04:43:04 +08:00
|
|
|
|
2013-09-16 17:02:46 +08:00
|
|
|
#define EGL_WAYLAND_Y_INVERTED_WL 0x31DB /* eglQueryWaylandBufferWL attribute */
|
|
|
|
|
2012-07-19 20:54:05 +08:00
|
|
|
#define EGL_TEXTURE_Y_U_V_WL 0x31D7
|
|
|
|
#define EGL_TEXTURE_Y_UV_WL 0x31D8
|
|
|
|
#define EGL_TEXTURE_Y_XUXV_WL 0x31D9
|
2012-07-06 04:43:04 +08:00
|
|
|
|
2011-12-19 17:37:30 +08:00
|
|
|
struct wl_display;
|
2013-07-18 20:11:25 +08:00
|
|
|
struct wl_resource;
|
2011-12-19 17:37:30 +08:00
|
|
|
#ifdef EGL_EGLEXT_PROTOTYPES
|
|
|
|
EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
|
|
|
|
EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL(EGLDisplay dpy, struct wl_display *display);
|
2013-07-18 20:11:25 +08:00
|
|
|
EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
|
2011-12-19 17:37:30 +08:00
|
|
|
#endif
|
|
|
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
|
|
|
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy, struct wl_display *display);
|
2013-07-18 20:11:25 +08:00
|
|
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
|
2012-07-06 04:43:04 +08:00
|
|
|
|
2011-12-19 17:37:30 +08:00
|
|
|
#endif
|
|
|
|
|
2013-10-28 23:07:03 +08:00
|
|
|
#ifndef EGL_WL_create_wayland_buffer_from_image
|
|
|
|
#define EGL_WL_create_wayland_buffer_from_image 1
|
|
|
|
|
|
|
|
#ifdef EGL_EGLEXT_PROTOTYPES
|
|
|
|
EGLAPI struct wl_buffer * EGLAPIENTRY eglCreateWaylandBufferFromImageWL(EGLDisplay dpy, EGLImageKHR image);
|
|
|
|
#endif
|
|
|
|
typedef struct wl_buffer * (EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL) (EGLDisplay dpy, EGLImageKHR image);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2011-12-19 17:37:30 +08:00
|
|
|
#ifndef EGL_NOK_swap_region
|
|
|
|
#define EGL_NOK_swap_region 1
|
|
|
|
|
|
|
|
#ifdef EGL_EGLEXT_PROTOTYPES
|
|
|
|
EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK(EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef EGL_NOK_texture_from_pixmap
|
|
|
|
#define EGL_NOK_texture_from_pixmap 1
|
|
|
|
|
|
|
|
#define EGL_Y_INVERTED_NOK 0x307F
|
|
|
|
#endif /* EGL_NOK_texture_from_pixmap */
|
|
|
|
|
|
|
|
#ifndef EGL_ANDROID_image_native_buffer
|
|
|
|
#define EGL_ANDROID_image_native_buffer 1
|
|
|
|
#define EGL_NATIVE_BUFFER_ANDROID 0x3140 /* eglCreateImageKHR target */
|
|
|
|
#endif
|
|
|
|
|
2014-03-08 02:05:47 +08:00
|
|
|
#ifndef EGL_MESA_configless_context
|
|
|
|
#define EGL_MESA_configless_context 1
|
|
|
|
#define EGL_NO_CONFIG_MESA ((EGLConfig)0)
|
|
|
|
#endif
|
|
|
|
|
2014-03-03 11:57:16 +08:00
|
|
|
#if KHRONOS_SUPPORT_INT64
|
|
|
|
#ifndef EGL_MESA_image_dma_buf_export
|
|
|
|
#define EGL_MESA_image_dma_buf_export 1
|
2015-05-12 06:43:47 +08:00
|
|
|
#ifdef EGL_EGLEXT_PROTOTYPES
|
2015-05-05 07:10:34 +08:00
|
|
|
EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *fourcc, EGLint *nplanes, EGLuint64KHR *modifiers);
|
2014-03-03 11:57:16 +08:00
|
|
|
EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
|
|
|
|
#endif
|
2015-05-12 06:43:47 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESA) (EGLDisplay dpy, EGLImageKHR image, EGLint *fourcc, EGLint *nplanes, EGLuint64KHR *modifiers);
|
|
|
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESA) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
|
|
|
|
|
2014-03-03 11:57:16 +08:00
|
|
|
#endif
|
2011-12-19 17:37:30 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|