From e41d1a4e746775efa8c5f6bb72b8781417cb0ec0 Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Thu, 18 Oct 2012 22:12:18 -0700 Subject: 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: ... ... 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 Reviewed-by: Matt Turner --- src/mapi/glapi/gen/ARB_draw_buffers_blend.xml | 9 +- src/mapi/glapi/gen/ARB_instanced_arrays.xml | 2 +- src/mapi/glapi/gen/ARB_texture_buffer_object.xml | 2 +- src/mapi/glapi/gen/EXT_draw_buffers2.xml | 12 +- src/mapi/glapi/gen/EXT_gpu_shader4.xml | 46 ++++---- src/mapi/glapi/gen/EXT_texture_integer.xml | 8 +- src/mapi/glapi/gen/EXT_transform_feedback.xml | 14 ++- src/mapi/glapi/gen/NV_conditional_render.xml | 4 +- src/mapi/glapi/gen/NV_primitive_restart.xml | 2 +- src/mapi/glapi/gen/OES_fixed_point.xml | 78 ++++++------- src/mapi/glapi/gen/OES_single_precision.xml | 8 +- src/mapi/glapi/gen/es_EXT.xml | 15 +-- src/mapi/glapi/gen/gl_API.dtd | 3 +- src/mapi/glapi/gen/gl_API.xml | 135 ++++++++++++++--------- 14 files changed, 191 insertions(+), 147 deletions(-) (limited to 'src') diff --git a/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml b/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml index 0b6947cc5f3..c08017aa552 100644 --- a/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml +++ b/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml @@ -8,24 +8,25 @@ - + - + - + - + diff --git a/src/mapi/glapi/gen/ARB_instanced_arrays.xml b/src/mapi/glapi/gen/ARB_instanced_arrays.xml index 822f5437494..9a30b0c9e3e 100644 --- a/src/mapi/glapi/gen/ARB_instanced_arrays.xml +++ b/src/mapi/glapi/gen/ARB_instanced_arrays.xml @@ -10,7 +10,7 @@ - + diff --git a/src/mapi/glapi/gen/ARB_texture_buffer_object.xml b/src/mapi/glapi/gen/ARB_texture_buffer_object.xml index 57680f5535e..8884591cad6 100644 --- a/src/mapi/glapi/gen/ARB_texture_buffer_object.xml +++ b/src/mapi/glapi/gen/ARB_texture_buffer_object.xml @@ -11,7 +11,7 @@ - + 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 @@ - + @@ -16,29 +16,29 @@ - + - + - + - + - + diff --git a/src/mapi/glapi/gen/EXT_gpu_shader4.xml b/src/mapi/glapi/gen/EXT_gpu_shader4.xml index 990027d0d10..b008f2e655c 100644 --- a/src/mapi/glapi/gen/EXT_gpu_shader4.xml +++ b/src/mapi/glapi/gen/EXT_gpu_shader4.xml @@ -96,7 +96,8 @@ - + @@ -116,7 +117,8 @@ - + @@ -136,27 +138,31 @@ - + - + - + - + - + @@ -164,37 +170,37 @@ - + - + - + - + - + - + @@ -202,43 +208,43 @@ - + - + - + - + - + - + - + diff --git a/src/mapi/glapi/gen/EXT_texture_integer.xml b/src/mapi/glapi/gen/EXT_texture_integer.xml index 7e5a8cbebe1..dac3999640a 100644 --- a/src/mapi/glapi/gen/EXT_texture_integer.xml +++ b/src/mapi/glapi/gen/EXT_texture_integer.xml @@ -69,25 +69,25 @@ - + - + - + - + diff --git a/src/mapi/glapi/gen/EXT_transform_feedback.xml b/src/mapi/glapi/gen/EXT_transform_feedback.xml index c9b1c532151..e9b27582a22 100644 --- a/src/mapi/glapi/gen/EXT_transform_feedback.xml +++ b/src/mapi/glapi/gen/EXT_transform_feedback.xml @@ -24,7 +24,7 @@ - + @@ -39,27 +39,29 @@ - + - + - + - + - + diff --git a/src/mapi/glapi/gen/NV_conditional_render.xml b/src/mapi/glapi/gen/NV_conditional_render.xml index 8bb31dd1fc9..8bb5c22cad2 100644 --- a/src/mapi/glapi/gen/NV_conditional_render.xml +++ b/src/mapi/glapi/gen/NV_conditional_render.xml @@ -13,12 +13,12 @@ - + - + diff --git a/src/mapi/glapi/gen/NV_primitive_restart.xml b/src/mapi/glapi/gen/NV_primitive_restart.xml index ba71c5c8e2d..d19fc8cf1b5 100644 --- a/src/mapi/glapi/gen/NV_primitive_restart.xml +++ b/src/mapi/glapi/gen/NV_primitive_restart.xml @@ -15,7 +15,7 @@ exec="dynamic"> - + diff --git a/src/mapi/glapi/gen/OES_fixed_point.xml b/src/mapi/glapi/gen/OES_fixed_point.xml index 92e29b19acb..ad775728ff7 100644 --- a/src/mapi/glapi/gen/OES_fixed_point.xml +++ b/src/mapi/glapi/gen/OES_fixed_point.xml @@ -14,13 +14,13 @@ + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> @@ -28,12 +28,12 @@ + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> @@ -41,25 +41,25 @@ + es1="1.0" exec="es" mesa_name="-OES"> + exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> @@ -69,62 +69,62 @@ + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> @@ -133,14 +133,14 @@ + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> @@ -150,18 +150,18 @@ + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> @@ -169,41 +169,41 @@ + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> @@ -211,65 +211,65 @@ + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" desktop="false" mesa_name="-OES"> + es1="1.0" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + static_dispatch="false" es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> + static_dispatch="false" es1="1.0" exec="es" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> diff --git a/src/mapi/glapi/gen/OES_single_precision.xml b/src/mapi/glapi/gen/OES_single_precision.xml index 935aea81bf8..8a6c2719451 100644 --- a/src/mapi/glapi/gen/OES_single_precision.xml +++ b/src/mapi/glapi/gen/OES_single_precision.xml @@ -12,7 +12,7 @@ + es1="1.0" exec="es" mesa_name="-OES"> @@ -24,13 +24,13 @@ + es1="1.0" exec="es" desktop="false" mesa_name="-OES"> + es1="1.0" exec="es" mesa_name="-OES"> @@ -40,7 +40,7 @@ + es1="1.0" exec="es" mesa_name="-OES"> diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml index a78cec36790..c0bbbfae1be 100644 --- a/src/mapi/glapi/gen/es_EXT.xml +++ b/src/mapi/glapi/gen/es_EXT.xml @@ -73,7 +73,7 @@ + es1="1.0" desktop="false" mesa_name="-OES"> @@ -82,12 +82,12 @@ + es1="1.0" desktop="false" mesa_name="-OES"> + es1="1.0" desktop="false" mesa_name="-OES"> @@ -96,12 +96,12 @@ + es1="1.0" desktop="false" mesa_name="-OES"> + es1="1.0" desktop="false" mesa_name="-OES"> @@ -110,7 +110,7 @@ + es1="1.0" desktop="false" mesa_name="-OES"> @@ -343,7 +343,8 @@ + static_dispatch="false" es1="1.0" desktop="false" + mesa_name="-OES"> diff --git a/src/mapi/glapi/gen/gl_API.dtd b/src/mapi/glapi/gen/gl_API.dtd index ab321fad0f8..066d5da522d 100644 --- a/src/mapi/glapi/gen/gl_API.dtd +++ b/src/mapi/glapi/gen/gl_API.dtd @@ -40,7 +40,8 @@ es2 CDATA "none" deprecated CDATA "none" exec NMTOKEN #IMPLIED - desktop (true | false) "true"> + desktop (true | false) "true" + mesa_name CDATA #IMPLIED> diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 9cdfc838d3b..01d2a9cd2d4 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -1164,25 +1164,27 @@ + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + @@ -1200,87 +1202,94 @@ + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + @@ -1299,66 +1308,71 @@ + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + + deprecated="3.1" exec="loopback" mesa_name="+_f"> - + @@ -9300,13 +9314,13 @@ - + - + @@ -10015,25 +10029,29 @@ + vectorequiv="SecondaryColor3bvEXT" exec="loopback" + mesa_name="+_f"> - + + vectorequiv="SecondaryColor3dvEXT" exec="loopback" + mesa_name="+_f"> - + @@ -10050,61 +10068,71 @@ + vectorequiv="SecondaryColor3ivEXT" exec="loopback" + mesa_name="+_f"> - + + vectorequiv="SecondaryColor3svEXT" exec="loopback" + mesa_name="+_f"> - + + vectorequiv="SecondaryColor3ubvEXT" exec="loopback" + mesa_name="+_f"> - + + vectorequiv="SecondaryColor3uivEXT" exec="loopback" + mesa_name="+_f"> - + + vectorequiv="SecondaryColor3usvEXT" exec="loopback" + mesa_name="+_f"> - + @@ -11581,13 +11609,15 @@ - + - + @@ -11601,7 +11631,8 @@ - + @@ -11680,14 +11711,16 @@ - + - + @@ -12465,13 +12498,13 @@ - + - + -- cgit v1.2.3