summaryrefslogtreecommitdiff
path: root/src/mapi/glapi/gen/EXT_draw_buffers2.xml
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-10-18 22:12:18 -0700
committerPaul Berry <stereotype441@gmail.com>2012-11-06 12:57:43 -0800
commite41d1a4e746775efa8c5f6bb72b8781417cb0ec0 (patch)
tree4a2c4eb8dda56c055be2f01ac488195e4f93ca7e /src/mapi/glapi/gen/EXT_draw_buffers2.xml
parent4b37fa8581203dd69009b6e4d0704c33779e73e5 (diff)
glapi: Annotate XML with function name suffix anomalies.
When the XML lists one or more GL api functions as aliases for another GL function, the mesa function that implements the functionality is usually named after the canonical version of the function (the one that is the target of the aliases). For example, FogCoordd is listed as an alias of FogCoorddEXT, and the Mesa function implementing the functionality is called loopback_FogCoorddEXT. However, there are exceptions. For example, Enablei is listed as an alias of EnableIndexedEXT, but the Mesa function implementing the functionality is called _mesa_EnableIndexed. To account for these anomalies, this patch annotates the XML with "mesa_name" attributes, which describe how to adjust the function name to find the corresponding Mesa function. For example: <function name="EnableIndexedEXT" mesa_name="-EXT">...</function> <function name="IsProgramNV" mesa_name="-NV+ARB">...</function> means that EnableIndexedEXT is implemented by a Mesa function called _mesa_EnableIndexed, and IsProgramNV is implemented by a Mesa function called _mesa_IsProgramARB. Future patches will use this annotation when code generating _mesa_create_exec_table(), to determine the name of the Mesa function that should be stored in each dispatch table entry. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mapi/glapi/gen/EXT_draw_buffers2.xml')
-rw-r--r--src/mapi/glapi/gen/EXT_draw_buffers2.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mapi/glapi/gen/EXT_draw_buffers2.xml b/src/mapi/glapi/gen/EXT_draw_buffers2.xml
index efbe61f74ed..affd55a5f5e 100644
--- a/src/mapi/glapi/gen/EXT_draw_buffers2.xml
+++ b/src/mapi/glapi/gen/EXT_draw_buffers2.xml
@@ -8,7 +8,7 @@
<category name="GL_EXT_draw_buffers2" number="340">
- <function name="ColorMaskIndexedEXT" offset="assign">
+ <function name="ColorMaskIndexedEXT" offset="assign" mesa_name="-EXT">
<param name="buf" type="GLuint"/>
<param name="r" type="GLboolean"/>
<param name="g" type="GLboolean"/>
@@ -16,29 +16,29 @@
<param name="a" type="GLboolean"/>
</function>
- <function name="GetBooleanIndexedvEXT" offset="assign">
+ <function name="GetBooleanIndexedvEXT" offset="assign" mesa_name="-EXT">
<param name="value" type="GLenum"/>
<param name="index" type="GLuint"/>
<param name="data" type="GLboolean *"/>
</function>
- <function name="GetIntegerIndexedvEXT" offset="assign">
+ <function name="GetIntegerIndexedvEXT" offset="assign" mesa_name="-EXT">
<param name="value" type="GLenum"/>
<param name="index" type="GLuint"/>
<param name="data" type="GLint *"/>
</function>
- <function name="EnableIndexedEXT" offset="assign">
+ <function name="EnableIndexedEXT" offset="assign" mesa_name="-EXT">
<param name="target" type="GLenum"/>
<param name="index" type="GLuint"/>
</function>
- <function name="DisableIndexedEXT" offset="assign">
+ <function name="DisableIndexedEXT" offset="assign" mesa_name="-EXT">
<param name="target" type="GLenum"/>
<param name="index" type="GLuint"/>
</function>
- <function name ="IsEnabledIndexedEXT" offset="assign">
+ <function name ="IsEnabledIndexedEXT" offset="assign" mesa_name="-EXT">
<param name="target" type="GLenum"/>
<param name="index" type="GLuint"/>
<return type="GLboolean"/>