glapi: Annotate XML with desktop="false" for GLES-only functions.
authorPaul Berry <stereotype441@gmail.com>
Fri, 19 Oct 2012 04:00:25 +0000 (21:00 -0700)
committerPaul Berry <stereotype441@gmail.com>
Tue, 6 Nov 2012 20:57:42 +0000 (12:57 -0800)
Future patches will use this annotation when code generating
_mesa_create_exec_table(), to determine which functions should be
skipped when the API is desktop GL.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mapi/glapi/gen/OES_fixed_point.xml
src/mapi/glapi/gen/OES_single_precision.xml
src/mapi/glapi/gen/es_EXT.xml
src/mapi/glapi/gen/gl_API.dtd
src/mapi/glapi/gen/gl_and_es_API.xml

index 4996d353230aa5f66a0495f5aa62afc232ca8788..92e29b19acb9a6a3d73bfa23484390aa1c27efd7 100644 (file)
     </function>
 
     <function name="GetClipPlanexOES" offset="assign" static_dispatch="false"
-              es1="1.0" exec="es">
+              es1="1.0" exec="es" desktop="false">
         <param name="plane" type="GLenum"/>
         <param name="equation" type="GLfixed *" output="true" count="4"/>
     </function>
 
     <!-- texgen -->
     <function name="GetTexGenxvOES" offset="assign" static_dispatch="false"
-              es1="1.0" exec="check">
+              es1="1.0" exec="check" desktop="false">
         <param name="coord" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
     </function>
 
     <function name="TexGenxOES" offset="assign" static_dispatch="false"
-              es1="1.0" exec="check">
+              es1="1.0" exec="check" desktop="false">
         <param name="coord" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="param" type="GLint"/>
     </function>
 
     <function name="TexGenxvOES" offset="assign" static_dispatch="false"
-              es1="1.0" exec="check">
+              es1="1.0" exec="check" desktop="false">
         <param name="coord" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="const GLfixed *" variable_param="pname"/>
index 112e08f82c1e9d9180d6e67abdcf05dae8ec968a..935aea81bf880e0606a795a426a0c6776a6e475a 100644 (file)
@@ -24,7 +24,7 @@
     </function>
 
     <function name="GetClipPlanefOES" offset="assign" static_dispatch="false"
-              es1="1.0" exec="es">
+              es1="1.0" exec="es" desktop="false">
         <param name="plane" type="GLenum"/>
         <param name="equation" type="GLfloat *" output="true" count="4"/>
     </function>
index e86f2eda20965d3a7549031b18573db0dc7c1aec..a78cec367905d9a133584bb7f93d77a963c1c7a9 100644 (file)
@@ -73,7 +73,7 @@
     <enum name="TEXTURE_CROP_RECT_OES"                    value="0x8B9D"/>
 
     <function name="DrawTexiOES" offset="assign" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="x" type="GLint"/>
         <param name="y" type="GLint"/>
         <param name="z" type="GLint"/>
     </function>
 
     <function name="DrawTexivOES" offset="assign" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="coords" type="const GLint *" count="5"/>
     </function>
 
     <function name="DrawTexfOES" offset="assign" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="x" type="GLfloat"/>
         <param name="y" type="GLfloat"/>
         <param name="z" type="GLfloat"/>
     </function>
 
     <function name="DrawTexfvOES" offset="assign" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="coords" type="const GLfloat *" count="5"/>
     </function>
 
     <function name="DrawTexsOES" offset="assign" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="x" type="GLshort"/>
         <param name="y" type="GLshort"/>
         <param name="z" type="GLshort"/>
     </function>
 
     <function name="DrawTexsvOES" offset="assign" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="coords" type="const GLshort *" count="5"/>
     </function>
 
     <function name="DrawTexxOES" offset="assign" static_dispatch="false"
-              es1="1.0" exec="es">
+              es1="1.0" exec="es" desktop="false">
         <param name="x" type="GLfixed"/>
         <param name="y" type="GLfixed"/>
         <param name="z" type="GLfixed"/>
     </function>
 
     <function name="DrawTexxvOES" offset="assign" static_dispatch="false"
-              es1="1.0" exec="es">
+              es1="1.0" exec="es" desktop="false">
         <param name="coords" type="const GLfixed *" count="5"/>
     </function>
 
     <enum name="POINT_SIZE_ARRAY_BUFFER_BINDING_OES"     value="0x8B9F"/>
 
     <function name="PointSizePointerOES" offset="assign"
-              static_dispatch="false" es1="1.0">
+              static_dispatch="false" es1="1.0" desktop="false">
         <param name="type" type="GLenum"/>
         <param name="stride" type="GLsizei"/>
         <param name="pointer" type="const GLvoid *"/>
 <!-- optional for es1.0 -->
 <category name="GL_OES_query_matrix" number="16">
     <function name="QueryMatrixxOES" offset="assign" static_dispatch="false"
-              es1="1.0" exec="es">
+              es1="1.0" exec="es" desktop="false">
         <param name="mantissa" type="GLfixed *" count="16" />
         <param name="exponent" type="GLint *" count="16" />
        <return type="GLbitfield"/>
index b07b6965c6476501035dea66bd78696e622e5958..ab321fad0f81b93fa008733e76b07500929f0b82 100644 (file)
@@ -39,7 +39,8 @@
                    es1                 CDATA   "none"
                    es2                 CDATA   "none"
                    deprecated          CDATA   "none"
-                   exec                NMTOKEN #IMPLIED>
+                   exec                NMTOKEN #IMPLIED
+                   desktop             (true | false) "true">
 <!ATTLIST size     name                NMTOKEN #REQUIRED
                    count               NMTOKEN #IMPLIED
                    mode                (get | set) "set">
index 7495a2e56c7d6f36e946399f14854bb0ad207454..205f74fa97eccd69b2a7f6f188232f58d56d2260 100644 (file)
     <type name="clampx"  size="4"                                    />
 
     <function name="AlphaFuncx" alias="AlphaFuncxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="func" type="GLenum"/>
         <param name="ref" type="GLclampx"/>
     </function>
 
     <function name="ClearColorx" alias="ClearColorxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="red" type="GLclampx"/>
         <param name="green" type="GLclampx"/>
         <param name="blue" type="GLclampx"/>
     </function>
 
     <function name="ClearDepthx" alias="ClearDepthxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="depth" type="GLclampx"/>
     </function>
 
     <function name="Color4x" alias="Color4xOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="red" type="GLfixed"/>
         <param name="green" type="GLfixed"/>
         <param name="blue" type="GLfixed"/>
     </function>
 
     <function name="DepthRangex" alias="DepthRangexOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="zNear" type="GLclampx"/>
         <param name="zFar" type="GLclampx"/>
     </function>
 
-    <function name="Fogx" alias="FogxOES" static_dispatch="false" es1="1.0">
+    <function name="Fogx" alias="FogxOES" static_dispatch="false" es1="1.0"
+              desktop="false">
         <param name="pname" type="GLenum"/>
         <param name="param" type="GLfixed"/>
     </function>
 
-    <function name="Fogxv" alias="FogxvOES" static_dispatch="false" es1="1.0">
+    <function name="Fogxv" alias="FogxvOES" static_dispatch="false" es1="1.0"
+              desktop="false">
         <param name="pname" type="GLenum"/>
         <param name="params" type="const GLfixed *" variable_param="pname"/>
     </function>
 
     <function name="Frustumx" alias="FrustumxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="left" type="GLfixed"/>
         <param name="right" type="GLfixed"/>
         <param name="bottom" type="GLfixed"/>
     </function>
 
     <function name="LightModelx" alias="LightModelxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="pname" type="GLenum"/>
         <param name="param" type="GLfixed"/>
     </function>
 
     <function name="LightModelxv" alias="LightModelxvOES"
-              static_dispatch="false" es1="1.0">
+              static_dispatch="false" es1="1.0" desktop="false">
         <param name="pname" type="GLenum"/>
         <param name="params" type="const GLfixed *" variable_param="pname"/>
     </function>
 
     <function name="Lightx" alias="LightxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="light" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="param" type="GLfixed"/>
     </function>
 
     <function name="Lightxv" alias="LightxvOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="light" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="const GLfixed *" variable_param="pname"/>
     </function>
 
     <function name="LineWidthx" alias="LineWidthxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="width" type="GLfixed"/>
     </function>
 
     <function name="LoadMatrixx" alias="LoadMatrixxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="m" type="const GLfixed *" count="16"/>
     </function>
 
     <function name="Materialx" alias="MaterialxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="face" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="param" type="GLfixed"/>
     </function>
 
     <function name="Materialxv" alias="MaterialxvOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="face" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="const GLfixed *" variable_param="pname"/>
     </function>
 
     <function name="MultMatrixx" alias="MultMatrixxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="m" type="const GLfixed *" count="16"/>
     </function>
 
     <function name="MultiTexCoord4x" alias="MultiTexCoord4xOES"
-              static_dispatch="false" es1="1.0">
+              static_dispatch="false" es1="1.0" desktop="false">
         <param name="target" type="GLenum"/>
         <param name="s" type="GLfixed"/>
         <param name="t" type="GLfixed"/>
     </function>
 
     <function name="Normal3x" alias="Normal3xOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="nx" type="GLfixed"/>
         <param name="ny" type="GLfixed"/>
         <param name="nz" type="GLfixed"/>
     </function>
 
     <function name="Orthox" alias="OrthoxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="left" type="GLfixed"/>
         <param name="right" type="GLfixed"/>
         <param name="bottom" type="GLfixed"/>
     </function>
 
     <function name="PointSizex" alias="PointSizexOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="size" type="GLfixed"/>
     </function>
 
     <function name="PolygonOffsetx" alias="PolygonOffsetxOES"
-              static_dispatch="false" es1="1.0">
+              static_dispatch="false" es1="1.0" desktop="false">
         <param name="factor" type="GLfixed"/>
         <param name="units" type="GLfixed"/>
     </function>
 
     <function name="Rotatex" alias="RotatexOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="angle" type="GLfixed"/>
         <param name="x" type="GLfixed"/>
         <param name="y" type="GLfixed"/>
     </function>
 
     <function name="SampleCoveragex" alias="SampleCoveragexOES"
-              static_dispatch="false" es1="1.0">
+              static_dispatch="false" es1="1.0" desktop="false">
         <param name="value" type="GLclampx"/>
         <param name="invert" type="GLboolean"/>
     </function>
 
     <function name="Scalex" alias="ScalexOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="x" type="GLfixed"/>
         <param name="y" type="GLfixed"/>
         <param name="z" type="GLfixed"/>
     </function>
 
     <function name="TexEnvx" alias="TexEnvxOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="target" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="param" type="GLfixed"/>
     </function>
 
     <function name="TexEnvxv" alias="TexEnvxvOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="target" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="const GLfixed *" variable_param="pname"/>
     </function>
 
     <function name="TexParameterx" alias="TexParameterxOES"
-              static_dispatch="false" es1="1.0">
+              static_dispatch="false" es1="1.0" desktop="false">
         <param name="target" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="param" type="GLfixed"/>
     </function>
 
     <function name="Translatex" alias="TranslatexOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="x" type="GLfixed"/>
         <param name="y" type="GLfixed"/>
         <param name="z" type="GLfixed"/>
 
     <!-- from GL_OES_single_precision -->
     <function name="Frustumf" alias="FrustumfOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="left" type="GLfloat"/>
         <param name="right" type="GLfloat"/>
         <param name="bottom" type="GLfloat"/>
     </function>
 
     <function name="Orthof" alias="OrthofOES" static_dispatch="false"
-              es1="1.0">
+              es1="1.0" desktop="false">
         <param name="left" type="GLfloat"/>
         <param name="right" type="GLfloat"/>
         <param name="bottom" type="GLfloat"/>
 <category name="es1.1">
     <!-- from GL_OES_fixed_point -->
     <function name="ClipPlanex" alias="ClipPlanexOES" static_dispatch="false"
-              es1="1.1">
+              es1="1.1" desktop="false">
         <param name="plane" type="GLenum"/>
         <param name="equation" type="const GLfixed *" count="4"/>
     </function>
     </function>
 
     <function name="GetFixedv" alias="GetFixedvOES" static_dispatch="false"
-              es1="1.1">
+              es1="1.1" desktop="false">
         <param name="pname" type="GLenum"/>
         <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
     </function>
 
     <function name="GetLightxv" alias="GetLightxvOES" static_dispatch="false"
-              es1="1.1">
+              es1="1.1" desktop="false">
         <param name="light" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
     </function>
 
     <function name="GetMaterialxv" alias="GetMaterialxvOES"
-              static_dispatch="false" es1="1.1">
+              static_dispatch="false" es1="1.1" desktop="false">
         <param name="face" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
     </function>
 
     <function name="GetTexEnvxv" alias="GetTexEnvxvOES" static_dispatch="false"
-              es1="1.1">
+              es1="1.1" desktop="false">
         <param name="target" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
     </function>
 
     <function name="GetTexParameterxv" alias="GetTexParameterxvOES"
-              static_dispatch="false" es1="1.1">
+              static_dispatch="false" es1="1.1" desktop="false">
         <param name="target" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
     </function>
 
     <function name="PointParameterx" alias="PointParameterxOES"
-              static_dispatch="false" es1="1.1">
+              static_dispatch="false" es1="1.1" desktop="false">
         <param name="pname" type="GLenum"/>
         <param name="param" type="GLfixed"/>
     </function>
 
     <function name="PointParameterxv" alias="PointParameterxvOES"
-              static_dispatch="false" es1="1.1">
+              static_dispatch="false" es1="1.1" desktop="false">
         <param name="pname" type="GLenum"/>
         <param name="params" type="const GLfixed *"/>
     </function>
 
     <function name="TexParameterxv" alias="TexParameterxvOES"
-              static_dispatch="false" es1="1.1">
+              static_dispatch="false" es1="1.1" desktop="false">
         <param name="target" type="GLenum"/>
         <param name="pname" type="GLenum"/>
         <param name="params" type="const GLfixed *" variable_param="pname"/>
 
     <!-- from GL_OES_single_precision -->
     <function name="ClipPlanef" alias="ClipPlanefOES" static_dispatch="false"
-              es1="1.1">
+              es1="1.1" desktop="false">
         <param name="plane" type="GLenum"/>
         <param name="equation" type="const GLfloat *" count="4"/>
     </function>