mesa/es: Update GLAPI and APISpec for GL_OES_EGL_image.
authorChia-I Wu <olv@lunarg.com>
Thu, 25 Feb 2010 08:37:04 +0000 (16:37 +0800)
committerChia-I Wu <olv@lunarg.com>
Fri, 5 Mar 2010 03:33:10 +0000 (11:33 +0800)
This generates the entrypoints and dispatches for GL_OES_EGL_image.
There is no real support yet.

src/mesa/es/glapi/es_EXT.xml
src/mesa/es/main/APIspec.xml
src/mesa/es/main/mfeatures_es1.h
src/mesa/es/main/mfeatures_es2.h

index 629ba90528cfc9b1204d22c60d20a02b0d9dace9..291a53b4b27f43bf1a334d21ccc21bbe85a6b07d 100644 (file)
@@ -18,6 +18,9 @@
     <enum name="PALETTE8_RGB5_A1_OES"                     value="0x8B99"/>
 </category>
 
+<!-- 23. GL_OES_EGL_image -->
+<xi:include href="../../glapi/gen/OES_EGL_image.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+
 <category name="GL_OES_depth24" number="24">
     <enum name="DEPTH_COMPONENT24_OES"                    value="0x81A6"/>
 </category>
index f6f33130b159540ae3cd47e34137260a85a1781f..17665d8df5b0baab41dbb9538f5e4710b94205a2 100644 (file)
        </desc>
 </template>
 
+<template name="EGLImageTargetTexture2D">
+       <proto>
+               <return type="void"/>
+               <param name="target" type="GLenum"/>
+               <param name="image" type="GLeglImageOES"/>
+       </proto>
+
+       <desc name="target">
+               <value name="GL_TEXTURE_2D"/>
+       </desc>
+</template>
+
+<template name="EGLImageTargetRenderbufferStorage">
+       <proto>
+               <return type="void"/>
+               <param name="target" type="GLenum"/>
+               <param name="image" type="GLeglImageOES"/>
+       </proto>
+
+       <desc name="target">
+               <value name="GL_RENDERBUFFER_OES" category="OES_framebuffer_object"/>
+               <value name="GL_RENDERBUFFER" category="GLES2.0"/>
+       </desc>
+</template>
+
 <api name="mesa" implementation="true">
        <category name="MESA"/>
 
         <!-- EXT_multi_draw_arrays -->
         <function name="MultiDrawArraysEXT" template="MultiDrawArrays"/>
         <function name="MultiDrawElementsEXT" template="MultiDrawElements"/>
+
+        <!-- OES_EGL_image -->
+        <function name="EGLImageTargetTexture2DOES" template="EGLImageTargetTexture2D"/>
+        <function name="EGLImageTargetRenderbufferStorageOES" template="EGLImageTargetRenderbufferStorage"/>
 </api>
 
 <api name="GLES1.1">
        <category name="EXT_blend_minmax"/>
        -->
        <category name="EXT_multi_draw_arrays"/>
+       <category name="OES_EGL_image"/>
 
        <category name="OES_matrix_palette"/>
 
         <!-- EXT_multi_draw_arrays -->
         <function name="MultiDrawArraysEXT" template="MultiDrawArrays"/>
         <function name="MultiDrawElementsEXT" template="MultiDrawElements"/>
+
+        <!-- OES_EGL_image -->
+        <function name="EGLImageTargetTexture2DOES" template="EGLImageTargetTexture2D"/>
+        <function name="EGLImageTargetRenderbufferStorageOES" template="EGLImageTargetRenderbufferStorage"/>
 </api>
 
 <api name="GLES2.0">
        <category name="EXT_blend_minmax"/>
        -->
        <category name="EXT_multi_draw_arrays"/>
+       <category name="OES_EGL_image"/>
 
        <function name="CullFace" template="CullFace"/>
 
         <!-- EXT_multi_draw_arrays -->
         <function name="MultiDrawArraysEXT" template="MultiDrawArrays"/>
         <function name="MultiDrawElementsEXT" template="MultiDrawElements"/>
+
+        <!-- OES_EGL_image -->
+        <function name="EGLImageTargetTexture2DOES" template="EGLImageTargetTexture2D"/>
+        <function name="EGLImageTargetRenderbufferStorageOES" template="EGLImageTargetRenderbufferStorage"/>
 </api>
 
 </apispec>
index 6c2ece26080a7bb1f96fc90f3629b8bbfcdf7232..1793550268949a44842d1924177655152bdbf411 100644 (file)
 #define FEATURE_OES_draw_texture 1
 #define FEATURE_OES_mapbuffer 1
 
+#define FEATURE_OES_EGL_image 1
+
 #define FEATURE_extra_context_init 1
 
 /*@}*/
index f34782fedb95b670b52443e06b6a68631f238326..a463bed11c6b8bef0147a59fd1d3e0fb1990eb8c 100644 (file)
 #define FEATURE_OES_draw_texture 0
 #define FEATURE_OES_mapbuffer 1
 
+#define FEATURE_OES_EGL_image 1
+
 #define FEATURE_extra_context_init 1
 
 /*@}*/