| Index: include/EGL/eglext.h
|
| diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h
|
| index 906fdfaa15cf66cd4e33d5f7ec7168a192b51308..62ffc9ee22d311b0a5c01648b9ca3004928693a9 100644
|
| --- a/include/EGL/eglext.h
|
| +++ b/include/EGL/eglext.h
|
| @@ -6,7 +6,7 @@ extern "C" {
|
| #endif
|
|
|
| /*
|
| -** Copyright (c) 2007-2009 The Khronos Group Inc.
|
| +** Copyright (c) 2007-2010 The Khronos Group Inc.
|
| **
|
| ** Permission is hereby granted, free of charge, to any person obtaining a
|
| ** copy of this software and/or associated documentation files (the
|
| @@ -34,8 +34,8 @@ extern "C" {
|
|
|
| /* Header file version number */
|
| /* Current version at http://www.khronos.org/registry/egl/ */
|
| -/* $Revision: 9356 $ on $Date: 2009-10-21 02:52:25 -0700 (Wed, 21 Oct 2009) $ */
|
| -#define EGL_EGLEXT_VERSION 4
|
| +/* $Revision: 13164 $ on $Date: 2010-12-09 01:26:57 -0800 (Thu, 09 Dec 2010) $ */
|
| +#define EGL_EGLEXT_VERSION 9
|
|
|
| #ifndef EGL_KHR_config_attribs
|
| #define EGL_KHR_config_attribs 1
|
| @@ -120,6 +120,7 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGL
|
| #define EGL_GL_RENDERBUFFER_KHR 0x30B9 /* eglCreateImageKHR target */
|
| #endif
|
|
|
| +#if KHRONOS_SUPPORT_INT64 /* EGLTimeKHR requires 64-bit uint support */
|
| #ifndef EGL_KHR_reusable_sync
|
| #define EGL_KHR_reusable_sync 1
|
|
|
| @@ -143,11 +144,12 @@ EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync,
|
| EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
|
| EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
|
| #endif /* EGL_EGLEXT_PROTOTYPES */
|
| -typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHR) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
|
| -typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHR) (EGLDisplay dpy, EGLSyncKHR sync);
|
| -typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHR) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
|
| -typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHR) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
|
| -typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHR) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
|
| +typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
|
| +typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
|
| +#endif
|
| #endif
|
|
|
| #ifndef EGL_KHR_image_base
|
| @@ -169,6 +171,128 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHR) (EGLDisplay dpy, EGLSyn
|
| #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
|
| #endif
|
|
|
| +#ifndef EGL_KHR_lock_surface2
|
| +#define EGL_KHR_lock_surface2 1
|
| +#define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
|
| +#endif
|
| +
|
| +#ifndef EGL_NV_coverage_sample
|
| +#define EGL_NV_coverage_sample 1
|
| +#define EGL_COVERAGE_BUFFERS_NV 0x30E0
|
| +#define EGL_COVERAGE_SAMPLES_NV 0x30E1
|
| +#endif
|
| +
|
| +#ifndef EGL_NV_depth_nonlinear
|
| +#define EGL_NV_depth_nonlinear 1
|
| +#define EGL_DEPTH_ENCODING_NV 0x30E2
|
| +#define EGL_DEPTH_ENCODING_NONE_NV 0
|
| +#define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
|
| +#endif
|
| +
|
| +#if KHRONOS_SUPPORT_INT64 /* EGLTimeNV requires 64-bit uint support */
|
| +#ifndef EGL_NV_sync
|
| +#define EGL_NV_sync 1
|
| +#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
|
| +#define EGL_SYNC_STATUS_NV 0x30E7
|
| +#define EGL_SIGNALED_NV 0x30E8
|
| +#define EGL_UNSIGNALED_NV 0x30E9
|
| +#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
|
| +#define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
|
| +#define EGL_ALREADY_SIGNALED_NV 0x30EA
|
| +#define EGL_TIMEOUT_EXPIRED_NV 0x30EB
|
| +#define EGL_CONDITION_SATISFIED_NV 0x30EC
|
| +#define EGL_SYNC_TYPE_NV 0x30ED
|
| +#define EGL_SYNC_CONDITION_NV 0x30EE
|
| +#define EGL_SYNC_FENCE_NV 0x30EF
|
| +#define EGL_NO_SYNC_NV ((EGLSyncNV)0)
|
| +typedef void* EGLSyncNV;
|
| +typedef khronos_utime_nanoseconds_t EGLTimeNV;
|
| +#ifdef EGL_EGLEXT_PROTOTYPES
|
| +EGLSyncNV eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
|
| +EGLBoolean eglDestroySyncNV (EGLSyncNV sync);
|
| +EGLBoolean eglFenceNV (EGLSyncNV sync);
|
| +EGLint eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
|
| +EGLBoolean eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
|
| +EGLBoolean eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
|
| +#endif /* EGL_EGLEXT_PROTOTYPES */
|
| +typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
|
| +typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
|
| +#endif
|
| +#endif
|
| +
|
| +#if KHRONOS_SUPPORT_INT64 /* Dependent on EGL_KHR_reusable_sync which requires 64-bit uint support */
|
| +#ifndef EGL_KHR_fence_sync
|
| +#define EGL_KHR_fence_sync 1
|
| +/* Reuses most tokens and entry points from EGL_KHR_reusable_sync */
|
| +#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
|
| +#define EGL_SYNC_CONDITION_KHR 0x30F8
|
| +#define EGL_SYNC_FENCE_KHR 0x30F9
|
| +#endif
|
| +#endif
|
| +
|
| +#ifndef EGL_HI_clientpixmap
|
| +#define EGL_HI_clientpixmap 1
|
| +
|
| +/* Surface Attribute */
|
| +#define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
|
| +/*
|
| + * Structure representing a client pixmap
|
| + * (pixmap's data is in client-space memory).
|
| + */
|
| +struct EGLClientPixmapHI
|
| +{
|
| + void* pData;
|
| + EGLint iWidth;
|
| + EGLint iHeight;
|
| + EGLint iStride;
|
| +};
|
| +
|
| +#ifdef EGL_EGLEXT_PROTOTYPES
|
| +EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI(EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap);
|
| +#endif /* EGL_EGLEXT_PROTOTYPES */
|
| +typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap);
|
| +#endif /* EGL_HI_clientpixmap */
|
| +
|
| +#ifndef EGL_HI_colorformats
|
| +#define EGL_HI_colorformats 1
|
| +/* Config Attribute */
|
| +#define EGL_COLOR_FORMAT_HI 0x8F70
|
| +/* Color Formats */
|
| +#define EGL_COLOR_RGB_HI 0x8F71
|
| +#define EGL_COLOR_RGBA_HI 0x8F72
|
| +#define EGL_COLOR_ARGB_HI 0x8F73
|
| +#endif /* EGL_HI_colorformats */
|
| +
|
| +#ifndef EGL_MESA_drm_image
|
| +#define EGL_MESA_drm_image 1
|
| +#define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0 /* CreateDRMImageMESA attribute */
|
| +#define EGL_DRM_BUFFER_USE_MESA 0x31D1 /* CreateDRMImageMESA attribute */
|
| +#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2 /* EGL_IMAGE_FORMAT_MESA attribute value */
|
| +#define EGL_DRM_BUFFER_MESA 0x31D3 /* eglCreateImageKHR target */
|
| +#define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
|
| +#define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001 /* EGL_DRM_BUFFER_USE_MESA bits */
|
| +#define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002 /* EGL_DRM_BUFFER_USE_MESA bits */
|
| +#ifdef EGL_EGLEXT_PROTOTYPES
|
| +EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
|
| +EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
|
| +#endif /* EGL_EGLEXT_PROTOTYPES */
|
| +typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
|
| +#endif
|
| +
|
| +#ifndef EGL_NV_post_sub_buffer
|
| +#define EGL_NV_post_sub_buffer 1
|
| +#define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
|
| +#ifdef EGL_EGLEXT_PROTOTYPES
|
| +EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
|
| +#endif /* EGL_EGLEXT_PROTOTYPES */
|
| +typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
|
| +#endif
|
| +
|
| #ifdef __cplusplus
|
| }
|
| #endif
|
|
|