From e8d5e7c4bb11f7fcb0a4ba5c13f43e7929849a2f Mon Sep 17 00:00:00 2001 From: marha Date: Mon, 15 Jun 2015 20:27:26 +0200 Subject: fontconfig libX11 libxcb xcb-proto mesa pixman xserver xkeyboard-config git update 15 June 2015 xserver commit fa12f2c150b2f50de9dac4a2b09265f13af353af libxcb commit f85661c3bca97faa72431df92a3867be39a74e23 libxcb/xcb-proto commit fef8a4cdc2cacd9541a656026371a3d338dadb8e xkeyboard-config commit 61fb58a95a071cc1c212f6d3808908c086219fe0 libX11 commit f0286b2770ece10aef5e2e8c004260217f12fd25 pixman commit eebc1b78200aff075dbcae9c8d00edad1f830d91 fontconfig commit f6d61c9beed856a925bd60c025b55284b2d88161 mesa commit 932d1613d1e15ec22555e5ec09105c49eb850e36 --- .../src/mapi/glapi/gen/AMD_performance_monitor.xml | 22 +- .../src/mapi/glapi/gen/APPLE_object_purgeable.xml | 6 +- .../mapi/glapi/gen/APPLE_vertex_array_object.xml | 10 +- .../src/mapi/glapi/gen/ARB_ES2_compatibility.xml | 10 +- mesalib/src/mapi/glapi/gen/ARB_base_instance.xml | 9 +- .../src/mapi/glapi/gen/ARB_blend_func_extended.xml | 4 +- .../src/mapi/glapi/gen/ARB_clear_buffer_object.xml | 8 +- mesalib/src/mapi/glapi/gen/ARB_clear_texture.xml | 4 +- mesalib/src/mapi/glapi/gen/ARB_clip_control.xml | 2 +- mesalib/src/mapi/glapi/gen/ARB_compute_shader.xml | 4 +- mesalib/src/mapi/glapi/gen/ARB_copy_buffer.xml | 2 +- mesalib/src/mapi/glapi/gen/ARB_copy_image.xml | 2 +- .../src/mapi/glapi/gen/ARB_direct_state_access.xml | 158 +- .../src/mapi/glapi/gen/ARB_draw_buffers_blend.xml | 8 +- .../glapi/gen/ARB_draw_elements_base_vertex.xml | 11 +- mesalib/src/mapi/glapi/gen/ARB_draw_indirect.xml | 8 +- mesalib/src/mapi/glapi/gen/ARB_draw_instanced.xml | 4 +- .../src/mapi/glapi/gen/ARB_framebuffer_object.xml | 46 +- .../src/mapi/glapi/gen/ARB_geometry_shader4.xml | 2 +- .../src/mapi/glapi/gen/ARB_get_program_binary.xml | 6 +- mesalib/src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml | 36 +- .../mapi/glapi/gen/ARB_internalformat_query.xml | 3 +- .../src/mapi/glapi/gen/ARB_invalidate_subdata.xml | 12 +- .../src/mapi/glapi/gen/ARB_map_buffer_range.xml | 4 +- mesalib/src/mapi/glapi/gen/ARB_multi_bind.xml | 12 +- .../mapi/glapi/gen/ARB_program_interface_query.xml | 12 +- mesalib/src/mapi/glapi/gen/ARB_robustness.xml | 40 +- mesalib/src/mapi/glapi/gen/ARB_sampler_objects.xml | 28 +- .../mapi/glapi/gen/ARB_separate_shader_objects.xml | 122 +- .../mapi/glapi/gen/ARB_shader_atomic_counters.xml | 2 +- .../mapi/glapi/gen/ARB_shader_image_load_store.xml | 4 +- mesalib/src/mapi/glapi/gen/ARB_sync.xml | 14 +- .../mapi/glapi/gen/ARB_texture_buffer_range.xml | 2 +- .../src/mapi/glapi/gen/ARB_texture_multisample.xml | 8 +- mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml | 12 +- .../glapi/gen/ARB_texture_storage_multisample.xml | 4 +- mesalib/src/mapi/glapi/gen/ARB_texture_view.xml | 2 +- .../mapi/glapi/gen/ARB_uniform_buffer_object.xml | 14 +- .../src/mapi/glapi/gen/ARB_vertex_array_object.xml | 8 +- .../src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml | 20 +- .../mapi/glapi/gen/ARB_vertex_attrib_binding.xml | 12 +- .../glapi/gen/ARB_vertex_type_2_10_10_10_rev.xml | 106 +- mesalib/src/mapi/glapi/gen/ARB_viewport_array.xml | 20 +- .../src/mapi/glapi/gen/EXT_framebuffer_object.xml | 6 +- mesalib/src/mapi/glapi/gen/EXT_gpu_shader4.xml | 28 +- .../src/mapi/glapi/gen/EXT_provoking_vertex.xml | 2 +- .../mapi/glapi/gen/EXT_separate_shader_objects.xml | 94 +- mesalib/src/mapi/glapi/gen/EXT_texture_integer.xml | 4 +- .../src/mapi/glapi/gen/EXT_transform_feedback.xml | 16 +- mesalib/src/mapi/glapi/gen/GL3x.xml | 100 +- mesalib/src/mapi/glapi/gen/GL4x.xml | 10 +- .../src/mapi/glapi/gen/INTEL_performance_query.xml | 20 +- mesalib/src/mapi/glapi/gen/KHR_debug.xml | 20 +- mesalib/src/mapi/glapi/gen/Makefile.am | 8 +- .../src/mapi/glapi/gen/NV_primitive_restart.xml | 4 +- mesalib/src/mapi/glapi/gen/NV_texture_barrier.xml | 2 +- mesalib/src/mapi/glapi/gen/NV_vdpau_interop.xml | 20 +- mesalib/src/mapi/glapi/gen/OES_EGL_image.xml | 6 +- mesalib/src/mapi/glapi/gen/OES_fixed_point.xml | 123 +- .../src/mapi/glapi/gen/OES_single_precision.xml | 17 +- mesalib/src/mapi/glapi/gen/apiexec.py | 240 +++ mesalib/src/mapi/glapi/gen/es_EXT.xml | 166 +- mesalib/src/mapi/glapi/gen/glX_proto_recv.py | 62 +- mesalib/src/mapi/glapi/gen/glX_proto_send.py | 70 +- mesalib/src/mapi/glapi/gen/glX_proto_size.py | 99 +- mesalib/src/mapi/glapi/gen/glX_server_table.py | 38 +- mesalib/src/mapi/glapi/gen/gl_API.dtd | 2 - mesalib/src/mapi/glapi/gen/gl_API.xml | 1741 +++++++++----------- mesalib/src/mapi/glapi/gen/gl_SPARC_asm.py | 41 +- mesalib/src/mapi/glapi/gen/gl_XML.py | 20 +- mesalib/src/mapi/glapi/gen/gl_and_es_API.xml | 86 +- mesalib/src/mapi/glapi/gen/gl_apitemp.py | 44 +- mesalib/src/mapi/glapi/gen/gl_enums.py | 34 +- mesalib/src/mapi/glapi/gen/gl_genexec.py | 90 +- mesalib/src/mapi/glapi/gen/gl_gentable.py | 34 +- mesalib/src/mapi/glapi/gen/gl_procs.py | 52 +- mesalib/src/mapi/glapi/gen/gl_table.py | 97 +- mesalib/src/mapi/glapi/gen/gl_x86-64_asm.py | 47 +- mesalib/src/mapi/glapi/gen/gl_x86_asm.py | 45 +- mesalib/src/mapi/glapi/gen/remap_helper.py | 53 +- mesalib/src/mapi/glapi/gen/static_data.py | 1729 +++++++++++++++++++ 81 files changed, 3899 insertions(+), 2194 deletions(-) create mode 100644 mesalib/src/mapi/glapi/gen/apiexec.py create mode 100644 mesalib/src/mapi/glapi/gen/static_data.py (limited to 'mesalib/src/mapi') diff --git a/mesalib/src/mapi/glapi/gen/AMD_performance_monitor.xml b/mesalib/src/mapi/glapi/gen/AMD_performance_monitor.xml index b96b263db..41b520838 100644 --- a/mesalib/src/mapi/glapi/gen/AMD_performance_monitor.xml +++ b/mesalib/src/mapi/glapi/gen/AMD_performance_monitor.xml @@ -5,13 +5,13 @@ - + - + @@ -19,14 +19,14 @@ - + - + @@ -34,24 +34,24 @@ - + - + - + - + @@ -59,15 +59,15 @@ - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/APPLE_object_purgeable.xml b/mesalib/src/mapi/glapi/gen/APPLE_object_purgeable.xml index 62fa64ad2..829fc2631 100644 --- a/mesalib/src/mapi/glapi/gen/APPLE_object_purgeable.xml +++ b/mesalib/src/mapi/glapi/gen/APPLE_object_purgeable.xml @@ -13,21 +13,21 @@ - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/APPLE_vertex_array_object.xml b/mesalib/src/mapi/glapi/gen/APPLE_vertex_array_object.xml index 5eb53b14e..7312f9b35 100644 --- a/mesalib/src/mapi/glapi/gen/APPLE_vertex_array_object.xml +++ b/mesalib/src/mapi/glapi/gen/APPLE_vertex_array_object.xml @@ -5,23 +5,21 @@ - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_ES2_compatibility.xml b/mesalib/src/mapi/glapi/gen/ARB_ES2_compatibility.xml index d15736612..c96e71c44 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_ES2_compatibility.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_ES2_compatibility.xml @@ -18,17 +18,17 @@ - + - + - + @@ -45,11 +45,11 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_base_instance.xml b/mesalib/src/mapi/glapi/gen/ARB_base_instance.xml index 1478e3970..56de639e9 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_base_instance.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_base_instance.xml @@ -8,8 +8,7 @@ - + @@ -17,8 +16,7 @@ - + @@ -27,8 +25,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_blend_func_extended.xml b/mesalib/src/mapi/glapi/gen/ARB_blend_func_extended.xml index 32adcde77..406140f7d 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_blend_func_extended.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_blend_func_extended.xml @@ -8,14 +8,14 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_clear_buffer_object.xml b/mesalib/src/mapi/glapi/gen/ARB_clear_buffer_object.xml index cb97a0185..2284eacd6 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_clear_buffer_object.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_clear_buffer_object.xml @@ -8,7 +8,7 @@ - + @@ -16,7 +16,7 @@ - + @@ -26,7 +26,7 @@ - diff --git a/mesalib/src/mapi/glapi/gen/ARB_compute_shader.xml b/mesalib/src/mapi/glapi/gen/ARB_compute_shader.xml index 1db373e99..c2ec842ef 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_compute_shader.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_compute_shader.xml @@ -26,13 +26,13 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_copy_buffer.xml b/mesalib/src/mapi/glapi/gen/ARB_copy_buffer.xml index 6982ed1d2..d1c6f1fec 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_copy_buffer.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_copy_buffer.xml @@ -11,7 +11,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_copy_image.xml b/mesalib/src/mapi/glapi/gen/ARB_copy_image.xml index 2fbd84557..af672cd38 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_copy_image.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_copy_image.xml @@ -5,7 +5,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_direct_state_access.xml b/mesalib/src/mapi/glapi/gen/ARB_direct_state_access.xml index bb9baf5a3..4c8f73ede 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -9,18 +9,18 @@ - + - + - + @@ -28,20 +28,20 @@ - + - + - + @@ -50,33 +50,33 @@ - + - + - + - + - + @@ -84,7 +84,7 @@ - + @@ -92,7 +92,7 @@ - + @@ -102,13 +102,13 @@ - + - + @@ -116,36 +116,36 @@ - + - + - + - + - + - + @@ -283,19 +283,19 @@ - + - + - + @@ -303,7 +303,7 @@ - + @@ -311,19 +311,19 @@ - + - + - + @@ -331,14 +331,14 @@ - + - + @@ -346,7 +346,7 @@ - + @@ -355,7 +355,7 @@ - + @@ -364,7 +364,7 @@ - + @@ -374,7 +374,7 @@ - + @@ -384,7 +384,7 @@ - + @@ -396,7 +396,7 @@ - + @@ -410,7 +410,7 @@ - + @@ -420,7 +420,7 @@ - + @@ -432,7 +432,7 @@ - + @@ -446,7 +446,7 @@ - + @@ -455,7 +455,7 @@ - + @@ -466,7 +466,7 @@ - + @@ -478,52 +478,52 @@ - + - + - + - + - + - + - + - + - + @@ -532,46 +532,46 @@ - + - + - + - + - + - + - + @@ -579,27 +579,27 @@ - + - + - + - + - + @@ -607,7 +607,7 @@ - + @@ -616,7 +616,7 @@ - + @@ -625,7 +625,7 @@ - + @@ -633,7 +633,7 @@ - + @@ -641,32 +641,32 @@ - + - + - + - + - + @@ -675,48 +675,48 @@ - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml b/mesalib/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml index 0b6947cc5..8c33fbf89 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_draw_buffers_blend.xml @@ -8,24 +8,24 @@ - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml b/mesalib/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml index 986654848..120bda13d 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_draw_elements_base_vertex.xml @@ -8,7 +8,7 @@ - + @@ -16,8 +16,7 @@ - + @@ -27,8 +26,7 @@ - + @@ -37,8 +35,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_draw_indirect.xml b/mesalib/src/mapi/glapi/gen/ARB_draw_indirect.xml index 7de03cd35..3b29d6b86 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_draw_indirect.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_draw_indirect.xml @@ -8,12 +8,12 @@ - + - + @@ -24,14 +24,14 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_draw_instanced.xml b/mesalib/src/mapi/glapi/gen/ARB_draw_instanced.xml index 7ee7629c7..b1c822144 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_draw_instanced.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_draw_instanced.xml @@ -8,14 +8,14 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_framebuffer_object.xml b/mesalib/src/mapi/glapi/gen/ARB_framebuffer_object.xml index 999a8ef13..1573e7e96 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_framebuffer_object.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_framebuffer_object.xml @@ -140,33 +140,31 @@ - + - + - + - + - + @@ -174,7 +172,7 @@ - + @@ -183,46 +181,44 @@ - + - + - + - + - + - + - + @@ -231,8 +227,7 @@ - + @@ -241,7 +236,7 @@ - + @@ -251,7 +246,7 @@ - + @@ -260,8 +255,7 @@ - + @@ -269,7 +263,7 @@ - + @@ -277,7 +271,7 @@ - + @@ -291,7 +285,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_geometry_shader4.xml b/mesalib/src/mapi/glapi/gen/ARB_geometry_shader4.xml index e62047c9b..280e7a075 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_geometry_shader4.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_geometry_shader4.xml @@ -45,7 +45,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_get_program_binary.xml b/mesalib/src/mapi/glapi/gen/ARB_get_program_binary.xml index e84d0678e..25e0a37c8 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_get_program_binary.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_get_program_binary.xml @@ -11,7 +11,7 @@ - + @@ -19,14 +19,14 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml b/mesalib/src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml index 4f860ef8c..fd1ad117e 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml @@ -5,25 +5,25 @@ - + - + - + - + @@ -31,94 +31,94 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_internalformat_query.xml b/mesalib/src/mapi/glapi/gen/ARB_internalformat_query.xml index 70a2a3109..16d14b1b7 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_internalformat_query.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_internalformat_query.xml @@ -8,8 +8,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_invalidate_subdata.xml b/mesalib/src/mapi/glapi/gen/ARB_invalidate_subdata.xml index 31b515cdb..052816ad7 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_invalidate_subdata.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_invalidate_subdata.xml @@ -3,7 +3,7 @@ - + @@ -14,22 +14,22 @@ - + - + - + - + @@ -39,7 +39,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_map_buffer_range.xml b/mesalib/src/mapi/glapi/gen/ARB_map_buffer_range.xml index d87450446..cf7b21148 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_map_buffer_range.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_map_buffer_range.xml @@ -15,7 +15,7 @@ - + @@ -23,7 +23,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_multi_bind.xml b/mesalib/src/mapi/glapi/gen/ARB_multi_bind.xml index 4f2f2a259..f42eaa28e 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_multi_bind.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_multi_bind.xml @@ -7,14 +7,14 @@ - + - + @@ -23,25 +23,25 @@ - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_program_interface_query.xml b/mesalib/src/mapi/glapi/gen/ARB_program_interface_query.xml index 59eb59c64..c3162f5ed 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_program_interface_query.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_program_interface_query.xml @@ -56,21 +56,21 @@ - + - + - + @@ -79,7 +79,7 @@ - + @@ -90,14 +90,14 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_robustness.xml b/mesalib/src/mapi/glapi/gen/ARB_robustness.xml index 65843149c..9b2f2f0a7 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_robustness.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_robustness.xml @@ -20,26 +20,26 @@ - + - + - + - + @@ -48,19 +48,19 @@ - + - + - + @@ -68,12 +68,12 @@ - + - + @@ -82,7 +82,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -103,7 +103,7 @@ - + @@ -111,7 +111,7 @@ - + @@ -122,7 +122,7 @@ - + @@ -131,7 +131,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -151,28 +151,28 @@ - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_sampler_objects.xml b/mesalib/src/mapi/glapi/gen/ARB_sampler_objects.xml index 9173dee5c..bc69e97bd 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_sampler_objects.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_sampler_objects.xml @@ -7,81 +7,81 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_separate_shader_objects.xml b/mesalib/src/mapi/glapi/gen/ARB_separate_shader_objects.xml index 96ae2b9cb..c9f481d8b 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_separate_shader_objects.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_separate_shader_objects.xml @@ -15,69 +15,69 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -85,25 +85,25 @@ - + - + - + - + @@ -111,25 +111,25 @@ - + - + - + - + @@ -137,170 +137,170 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -308,88 +308,88 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_shader_atomic_counters.xml b/mesalib/src/mapi/glapi/gen/ARB_shader_atomic_counters.xml index f3b74e9c2..0b0b60fa7 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_shader_atomic_counters.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_shader_atomic_counters.xml @@ -35,7 +35,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_shader_image_load_store.xml b/mesalib/src/mapi/glapi/gen/ARB_shader_image_load_store.xml index 7ccfca41d..178e930f1 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_shader_image_load_store.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_shader_image_load_store.xml @@ -70,7 +70,7 @@ - + @@ -80,7 +80,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_sync.xml b/mesalib/src/mapi/glapi/gen/ARB_sync.xml index 58f1639c4..d8a1c34e0 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_sync.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_sync.xml @@ -39,40 +39,40 @@ --> - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_texture_buffer_range.xml b/mesalib/src/mapi/glapi/gen/ARB_texture_buffer_range.xml index 2176c08ef..36bcc4932 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_texture_buffer_range.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_texture_buffer_range.xml @@ -9,7 +9,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_texture_multisample.xml b/mesalib/src/mapi/glapi/gen/ARB_texture_multisample.xml index 1f65a8bcf..595e1c7ea 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_texture_multisample.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_texture_multisample.xml @@ -34,7 +34,7 @@ - + @@ -43,7 +43,7 @@ - + @@ -53,13 +53,13 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml b/mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml index 1d63e7ce3..7df394241 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_texture_storage.xml @@ -10,14 +10,14 @@ - + - + @@ -25,7 +25,7 @@ - + @@ -34,7 +34,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -51,7 +51,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_texture_storage_multisample.xml b/mesalib/src/mapi/glapi/gen/ARB_texture_storage_multisample.xml index 0f9d323d4..6ed8f1a01 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_texture_storage_multisample.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_texture_storage_multisample.xml @@ -7,7 +7,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_texture_view.xml b/mesalib/src/mapi/glapi/gen/ARB_texture_view.xml index 3e6b8c904..4215fc5bd 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_texture_view.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_texture_view.xml @@ -7,7 +7,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_uniform_buffer_object.xml b/mesalib/src/mapi/glapi/gen/ARB_uniform_buffer_object.xml index 11aacb033..cf86bbb2f 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_uniform_buffer_object.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_uniform_buffer_object.xml @@ -39,14 +39,14 @@ - + - + @@ -54,7 +54,7 @@ - + @@ -62,20 +62,20 @@ - + - + - + @@ -86,7 +86,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_vertex_array_object.xml b/mesalib/src/mapi/glapi/gen/ARB_vertex_array_object.xml index f2277d2bc..4a392dbb4 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_vertex_array_object.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_vertex_array_object.xml @@ -10,21 +10,21 @@ - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml b/mesalib/src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml index fc49f84b5..211642fc3 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_vertex_attrib_64bit.xml @@ -5,25 +5,25 @@ - + - + - + - + @@ -31,27 +31,27 @@ - + - + - + - + - + @@ -59,7 +59,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml b/mesalib/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml index 7e6268877..ba9ca57bb 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_vertex_attrib_binding.xml @@ -7,14 +7,14 @@ - + - + @@ -22,26 +22,26 @@ - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_vertex_type_2_10_10_10_rev.xml b/mesalib/src/mapi/glapi/gen/ARB_vertex_type_2_10_10_10_rev.xml index 6c6090c1c..92ec6e167 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_vertex_type_2_10_10_10_rev.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_vertex_type_2_10_10_10_rev.xml @@ -7,244 +7,214 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/ARB_viewport_array.xml b/mesalib/src/mapi/glapi/gen/ARB_viewport_array.xml index e1c6c2d81..b20cf612c 100644 --- a/mesalib/src/mapi/glapi/gen/ARB_viewport_array.xml +++ b/mesalib/src/mapi/glapi/gen/ARB_viewport_array.xml @@ -21,54 +21,54 @@ - + - + - + - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/EXT_framebuffer_object.xml b/mesalib/src/mapi/glapi/gen/EXT_framebuffer_object.xml index 2cf75bc67..9ae029152 100644 --- a/mesalib/src/mapi/glapi/gen/EXT_framebuffer_object.xml +++ b/mesalib/src/mapi/glapi/gen/EXT_framebuffer_object.xml @@ -78,7 +78,7 @@ - + @@ -112,7 +112,7 @@ - + @@ -186,7 +186,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/EXT_gpu_shader4.xml b/mesalib/src/mapi/glapi/gen/EXT_gpu_shader4.xml index d204c3fc7..b1f7eae26 100644 --- a/mesalib/src/mapi/glapi/gen/EXT_gpu_shader4.xml +++ b/mesalib/src/mapi/glapi/gen/EXT_gpu_shader4.xml @@ -44,25 +44,25 @@ - + - + - + - + @@ -70,25 +70,25 @@ - + - + - + - + @@ -101,17 +101,17 @@ - + - + - + @@ -121,17 +121,17 @@ - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/EXT_provoking_vertex.xml b/mesalib/src/mapi/glapi/gen/EXT_provoking_vertex.xml index eb872098d..3d1ae771e 100644 --- a/mesalib/src/mapi/glapi/gen/EXT_provoking_vertex.xml +++ b/mesalib/src/mapi/glapi/gen/EXT_provoking_vertex.xml @@ -26,7 +26,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/EXT_separate_shader_objects.xml b/mesalib/src/mapi/glapi/gen/EXT_separate_shader_objects.xml index c6163a193..1fa699fbc 100644 --- a/mesalib/src/mapi/glapi/gen/EXT_separate_shader_objects.xml +++ b/mesalib/src/mapi/glapi/gen/EXT_separate_shader_objects.xml @@ -8,16 +8,16 @@ - + - + - + @@ -31,65 +31,65 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -97,25 +97,25 @@ - + - + - + - + @@ -123,25 +123,25 @@ - + - + - + - + @@ -149,145 +149,145 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/EXT_texture_integer.xml b/mesalib/src/mapi/glapi/gen/EXT_texture_integer.xml index aca21f4b1..5f9ea2963 100644 --- a/mesalib/src/mapi/glapi/gen/EXT_texture_integer.xml +++ b/mesalib/src/mapi/glapi/gen/EXT_texture_integer.xml @@ -55,14 +55,14 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/EXT_transform_feedback.xml b/mesalib/src/mapi/glapi/gen/EXT_transform_feedback.xml index 65259fc1f..2aa26ad72 100644 --- a/mesalib/src/mapi/glapi/gen/EXT_transform_feedback.xml +++ b/mesalib/src/mapi/glapi/gen/EXT_transform_feedback.xml @@ -32,7 +32,7 @@ - + @@ -82,33 +82,33 @@ - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/GL3x.xml b/mesalib/src/mapi/glapi/gen/GL3x.xml index 5078f7b6d..7919d6577 100644 --- a/mesalib/src/mapi/glapi/gen/GL3x.xml +++ b/mesalib/src/mapi/glapi/gen/GL3x.xml @@ -119,38 +119,38 @@ - + - + - + - + - + - + @@ -158,7 +158,7 @@ - + @@ -166,29 +166,29 @@ - + - + - + - + - + @@ -196,26 +196,26 @@ - + - + - + - + - + @@ -223,20 +223,20 @@ - + - + - + @@ -248,17 +248,17 @@ - + - + - + @@ -266,13 +266,13 @@ - + - + @@ -330,7 +330,7 @@ - + @@ -350,7 +350,7 @@ - + @@ -370,51 +370,51 @@ - + - + - + - + - + - + - + - + - + @@ -422,25 +422,25 @@ - + - + - + - + @@ -448,25 +448,25 @@ - + - + - + - + @@ -557,13 +557,13 @@ - + - + @@ -595,19 +595,19 @@ - + - + - + @@ -625,7 +625,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/GL4x.xml b/mesalib/src/mapi/glapi/gen/GL4x.xml index 848316e9e..94ddfb729 100644 --- a/mesalib/src/mapi/glapi/gen/GL4x.xml +++ b/mesalib/src/mapi/glapi/gen/GL4x.xml @@ -9,17 +9,17 @@ - + - + - + @@ -27,12 +27,12 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/INTEL_performance_query.xml b/mesalib/src/mapi/glapi/gen/INTEL_performance_query.xml index 25cd1817f..9573cb1bd 100644 --- a/mesalib/src/mapi/glapi/gen/INTEL_performance_query.xml +++ b/mesalib/src/mapi/glapi/gen/INTEL_performance_query.xml @@ -5,21 +5,21 @@ - + - + - + - + @@ -29,7 +29,7 @@ - + @@ -43,24 +43,24 @@ - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/KHR_debug.xml b/mesalib/src/mapi/glapi/gen/KHR_debug.xml index 48f7fa762..77956d61e 100644 --- a/mesalib/src/mapi/glapi/gen/KHR_debug.xml +++ b/mesalib/src/mapi/glapi/gen/KHR_debug.xml @@ -73,7 +73,7 @@ - + @@ -82,7 +82,7 @@ - + @@ -91,12 +91,12 @@ - + - + @@ -108,23 +108,23 @@ - + - + - + - + @@ -132,13 +132,13 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/Makefile.am b/mesalib/src/mapi/glapi/gen/Makefile.am index c8d417468..34602579c 100644 --- a/mesalib/src/mapi/glapi/gen/Makefile.am +++ b/mesalib/src/mapi/glapi/gen/Makefile.am @@ -61,6 +61,7 @@ EXTRA_DIST= \ $(MESA_GLAPI_DIR)/glapi_x86-64.S \ $(MESA_GLAPI_DIR)/glapi_sparc.S \ $(COMMON_GLX) \ + apiexec.py \ gl_apitemp.py \ gl_enums.py \ gl_genexec.py \ @@ -75,6 +76,7 @@ EXTRA_DIST= \ glX_proto_size.py \ glX_server_table.py \ remap_helper.py \ + static_data.py \ SConscript \ gl_API.dtd @@ -140,6 +142,7 @@ API_XML = \ ARB_map_buffer_range.xml \ ARB_multi_bind.xml \ ARB_pipeline_statistics_query.xml \ + ARB_program_interface_query.xml \ ARB_robustness.xml \ ARB_sample_shading.xml \ ARB_sampler_objects.xml \ @@ -197,6 +200,7 @@ COMMON = $(API_XML) \ gl_XML.py \ glX_XML.py \ license.py \ + static_data.py \ typeexpr.py COMMON_GLX = $(COMMON) glX_API.xml glX_XML.py glX_proto_common.py @@ -264,7 +268,7 @@ $(MESA_GLAPI_DIR)/glapi_sparc.S: gl_SPARC_asm.py $(COMMON) $(MESA_DIR)/main/enums.c: gl_enums.py $(COMMON) $(PYTHON_GEN) $< -f $(srcdir)/gl_and_es_API.xml > $@ -$(MESA_DIR)/main/api_exec.c: gl_genexec.py $(COMMON) +$(MESA_DIR)/main/api_exec.c: gl_genexec.py apiexec.py $(COMMON) $(PYTHON_GEN) $< -f $(srcdir)/gl_and_es_API.xml > $@ $(MESA_DIR)/main/dispatch.h: gl_table.py $(COMMON) @@ -287,7 +291,7 @@ $(MESA_GLX_DIR)/indirect_init.c: glX_proto_send.py $(COMMON_GLX) $(MESA_GLX_DIR)/indirect_size.h $(XORG_GLX_DIR)/indirect_size.h: glX_proto_size.py $(COMMON_GLX) $(PYTHON_GEN) $< -f $(srcdir)/gl_API.xml -m size_h --only-set \ - -h _INDIRECT_SIZE_H_ \ + --header-tag _INDIRECT_SIZE_H_ \ | $(INDENT) $(INDENT_FLAGS) > $@ $(MESA_GLX_DIR)/indirect_size.c: glX_proto_size.py $(COMMON_GLX) diff --git a/mesalib/src/mapi/glapi/gen/NV_primitive_restart.xml b/mesalib/src/mapi/glapi/gen/NV_primitive_restart.xml index 39edafe31..232665236 100644 --- a/mesalib/src/mapi/glapi/gen/NV_primitive_restart.xml +++ b/mesalib/src/mapi/glapi/gen/NV_primitive_restart.xml @@ -11,9 +11,7 @@ - - + diff --git a/mesalib/src/mapi/glapi/gen/NV_texture_barrier.xml b/mesalib/src/mapi/glapi/gen/NV_texture_barrier.xml index 52b1a3c08..b4c361cc3 100644 --- a/mesalib/src/mapi/glapi/gen/NV_texture_barrier.xml +++ b/mesalib/src/mapi/glapi/gen/NV_texture_barrier.xml @@ -7,7 +7,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/NV_vdpau_interop.xml b/mesalib/src/mapi/glapi/gen/NV_vdpau_interop.xml index 0b19e1a85..ceef7bdc9 100644 --- a/mesalib/src/mapi/glapi/gen/NV_vdpau_interop.xml +++ b/mesalib/src/mapi/glapi/gen/NV_vdpau_interop.xml @@ -5,14 +5,14 @@ - + - + - + @@ -20,7 +20,7 @@ - + @@ -28,16 +28,16 @@ - + - + - + @@ -45,17 +45,17 @@ - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/OES_EGL_image.xml b/mesalib/src/mapi/glapi/gen/OES_EGL_image.xml index a995cad6c..c483e91f1 100644 --- a/mesalib/src/mapi/glapi/gen/OES_EGL_image.xml +++ b/mesalib/src/mapi/glapi/gen/OES_EGL_image.xml @@ -5,14 +5,12 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/OES_fixed_point.xml b/mesalib/src/mapi/glapi/gen/OES_fixed_point.xml index d62d6e2ec..edd0acdba 100644 --- a/mesalib/src/mapi/glapi/gen/OES_fixed_point.xml +++ b/mesalib/src/mapi/glapi/gen/OES_fixed_point.xml @@ -13,52 +13,45 @@ - + - + - + - + - + - + - + - + @@ -67,63 +60,53 @@ - + - + - + - + - + - + - + - + - + - + @@ -131,15 +114,13 @@ - + - + @@ -148,149 +129,129 @@ - + - + - + - + - + - + - + - + - + - + - - + - + - + - + - + - + - + - + - - + - + diff --git a/mesalib/src/mapi/glapi/gen/OES_single_precision.xml b/mesalib/src/mapi/glapi/gen/OES_single_precision.xml index 8346b64ee..c6795042e 100644 --- a/mesalib/src/mapi/glapi/gen/OES_single_precision.xml +++ b/mesalib/src/mapi/glapi/gen/OES_single_precision.xml @@ -6,31 +6,27 @@ - + - + - + - - + @@ -39,8 +35,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/apiexec.py b/mesalib/src/mapi/glapi/gen/apiexec.py new file mode 100644 index 000000000..535de8a43 --- /dev/null +++ b/mesalib/src/mapi/glapi/gen/apiexec.py @@ -0,0 +1,240 @@ +# Copyright (C) 2015 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +class exec_info(): + """Information relating GL APIs to a function. + + Each of the four attributes of this class, compatibility, core, es1, and + es2, specify the minimum API version where a function can possibly exist + in Mesa. The version is specified as an integer of (real GL version * + 10). For example, glCreateProgram was added in OpenGL 2.0, so + compatibility=20 and core=31. + + If the attribute is None, then it cannot be supported by that + API. For example, glNewList was removed from core profiles, so + compatibility=10 and core=None. + + Each of the attributes that is not None must have a valid value. The + valid ranges are: + + compatiblity: [10, 30] + core: [31, ) + es1: [10, 11] + es2: [20, ) + + These ranges are enforced by the constructor. + """ + def __init__(self, compatibility=None, core=None, es1=None, es2=None): + if compatibility is not None: + assert isinstance(compatibility, int) + assert compatibility >= 10 + assert compatibility <= 30 + + if core is not None: + assert isinstance(core, int) + assert core >= 31 + + if es1 is not None: + assert isinstance(es1, int) + assert es1 == 10 or es1 == 11 + + if es2 is not None: + assert isinstance(es2, int) + assert es2 >= 20 + + self.compatibility = compatibility + self.core = core + self.es1 = es1 + self.es2 = es2 + +functions = { + # OpenGL 3.1 / GL_ARB_texture_buffer_object. Mesa only exposes this + # extension with core profile. + "TexBuffer": exec_info(core=31), + + # OpenGL 3.2 / GL_ARB_geometry_shader4. Mesa does not support + # GL_ARB_geometry_shader4, so OpenGL 3.2 is required. + "FramebufferTexture": exec_info(core=32), + + # OpenGL 4.0 / GL_ARB_gpu_shader_fp64. The extension spec says: + # + # "OpenGL 3.2 and GLSL 1.50 are required." + "Uniform1d": exec_info(core=32), + "Uniform2d": exec_info(core=32), + "Uniform3d": exec_info(core=32), + "Uniform4d": exec_info(core=32), + "Uniform1dv": exec_info(core=32), + "Uniform2dv": exec_info(core=32), + "Uniform3dv": exec_info(core=32), + "Uniform4dv": exec_info(core=32), + "UniformMatrix2dv": exec_info(core=32), + "UniformMatrix3dv": exec_info(core=32), + "UniformMatrix4dv": exec_info(core=32), + "UniformMatrix2x3dv": exec_info(core=32), + "UniformMatrix2x4dv": exec_info(core=32), + "UniformMatrix3x2dv": exec_info(core=32), + "UniformMatrix3x4dv": exec_info(core=32), + "UniformMatrix4x2dv": exec_info(core=32), + "UniformMatrix4x3dv": exec_info(core=32), + "GetUniformdv": exec_info(core=32), + + # OpenGL 4.1 / GL_ARB_vertex_attrib_64bit. The extension spec says: + # + # "OpenGL 3.0 and GLSL 1.30 are required. + # + # ARB_gpu_shader_fp64 (or equivalent functionality) is required." + # + # For Mesa this effectively means OpenGL 3.2 is required. It seems + # unlikely that Mesa will ever get support for any of the NV extensions + # that add "equivalent functionality." + "VertexAttribL1d": exec_info(core=32), + "VertexAttribL2d": exec_info(core=32), + "VertexAttribL3d": exec_info(core=32), + "VertexAttribL4d": exec_info(core=32), + "VertexAttribL1dv": exec_info(core=32), + "VertexAttribL2dv": exec_info(core=32), + "VertexAttribL3dv": exec_info(core=32), + "VertexAttribL4dv": exec_info(core=32), + "VertexAttribLPointer": exec_info(core=32), + "GetVertexAttribLdv": exec_info(core=32), + + # OpenGL 4.1 / GL_ARB_viewport_array. The extension spec says: + # + # "OpenGL 3.2 or the EXT_geometry_shader4 or ARB_geometry_shader4 + # extensions are required." + # + # Mesa does not support either of the geometry shader extensions, so + # OpenGL 3.2 is required. + "ViewportArrayv": exec_info(core=32), + "ViewportIndexedf": exec_info(core=32), + "ViewportIndexedfv": exec_info(core=32), + "ScissorArrayv": exec_info(core=32), + "ScissorIndexed": exec_info(core=32), + "ScissorIndexedv": exec_info(core=32), + "DepthRangeArrayv": exec_info(core=32), + "DepthRangeIndexed": exec_info(core=32), + # GetFloati_v also GL_ARB_shader_atomic_counters + # GetDoublei_v also GL_ARB_shader_atomic_counters + + # OpenGL 4.3 / GL_ARB_texture_buffer_range. Mesa can expose the extension + # with OpenGL 3.1. + "TexBufferRange": exec_info(core=31), + + # OpenGL 4.5 / GL_ARB_direct_state_access. Mesa can expose the extension + # with core profile. + "CreateTransformFeedbacks": exec_info(core=31), + "TransformFeedbackBufferBase": exec_info(core=31), + "TransformFeedbackBufferRange": exec_info(core=31), + "GetTransformFeedbackiv": exec_info(core=31), + "GetTransformFeedbacki_v": exec_info(core=31), + "GetTransformFeedbacki64_v": exec_info(core=31), + "CreateBuffers": exec_info(core=31), + "NamedBufferStorage": exec_info(core=31), + "NamedBufferData": exec_info(core=31), + "NamedBufferSubData": exec_info(core=31), + "CopyNamedBufferSubData": exec_info(core=31), + "ClearNamedBufferData": exec_info(core=31), + "ClearNamedBufferSubData": exec_info(core=31), + "MapNamedBuffer": exec_info(core=31), + "MapNamedBufferRange": exec_info(core=31), + "UnmapNamedBuffer": exec_info(core=31), + "FlushMappedNamedBufferRange": exec_info(core=31), + "GetNamedBufferParameteriv": exec_info(core=31), + "GetNamedBufferParameteri64v": exec_info(core=31), + "GetNamedBufferPointerv": exec_info(core=31), + "GetNamedBufferSubData": exec_info(core=31), + "CreateFramebuffers": exec_info(core=31), + "NamedFramebufferRenderbuffer": exec_info(core=31), + "NamedFramebufferParameteri": exec_info(core=31), + "NamedFramebufferTexture": exec_info(core=31), + "NamedFramebufferTextureLayer": exec_info(core=31), + "NamedFramebufferDrawBuffer": exec_info(core=31), + "NamedFramebufferDrawBuffers": exec_info(core=31), + "NamedFramebufferReadBuffer": exec_info(core=31), + "InvalidateNamedFramebufferData": exec_info(core=31), + "InvalidateNamedFramebufferSubData": exec_info(core=31), + "ClearNamedFramebufferiv": exec_info(core=31), + "ClearNamedFramebufferuiv": exec_info(core=31), + "ClearNamedFramebufferfv": exec_info(core=31), + "ClearNamedFramebufferfi": exec_info(core=31), + "BlitNamedFramebuffer": exec_info(core=31), + "CheckNamedFramebufferStatus": exec_info(core=31), + "GetNamedFramebufferParameteriv": exec_info(core=31), + "GetNamedFramebufferAttachmentParameteriv": exec_info(core=31), + "CreateRenderbuffers": exec_info(core=31), + "NamedRenderbufferStorage": exec_info(core=31), + "NamedRenderbufferStorageMultisample": exec_info(core=31), + "GetNamedRenderbufferParameteriv": exec_info(core=31), + "CreateTextures": exec_info(core=31), + "TextureBuffer": exec_info(core=31), + "TextureBufferRange": exec_info(core=31), + "TextureStorage1D": exec_info(core=31), + "TextureStorage2D": exec_info(core=31), + "TextureStorage3D": exec_info(core=31), + "TextureStorage2DMultisample": exec_info(core=31), + "TextureStorage3DMultisample": exec_info(core=31), + "TextureSubImage1D": exec_info(core=31), + "TextureSubImage2D": exec_info(core=31), + "TextureSubImage3D": exec_info(core=31), + "CompressedTextureSubImage1D": exec_info(core=31), + "CompressedTextureSubImage2D": exec_info(core=31), + "CompressedTextureSubImage3D": exec_info(core=31), + "CopyTextureSubImage1D": exec_info(core=31), + "CopyTextureSubImage2D": exec_info(core=31), + "CopyTextureSubImage3D": exec_info(core=31), + "TextureParameterf": exec_info(core=31), + "TextureParameterfv": exec_info(core=31), + "TextureParameteri": exec_info(core=31), + "TextureParameterIiv": exec_info(core=31), + "TextureParameterIuiv": exec_info(core=31), + "TextureParameteriv": exec_info(core=31), + "GenerateTextureMipmap": exec_info(core=31), + "BindTextureUnit": exec_info(core=31), + "GetTextureImage": exec_info(core=31), + "GetCompressedTextureImage": exec_info(core=31), + "GetTextureLevelParameterfv": exec_info(core=31), + "GetTextureLevelParameteriv": exec_info(core=31), + "GetTextureParameterfv": exec_info(core=31), + "GetTextureParameterIiv": exec_info(core=31), + "GetTextureParameterIuiv": exec_info(core=31), + "GetTextureParameteriv": exec_info(core=31), + "CreateVertexArrays": exec_info(core=31), + "DisableVertexArrayAttrib": exec_info(core=31), + "EnableVertexArrayAttrib": exec_info(core=31), + "VertexArrayElementBuffer": exec_info(core=31), + "VertexArrayVertexBuffer": exec_info(core=31), + "VertexArrayVertexBuffers": exec_info(core=31), + "VertexArrayAttribFormat": exec_info(core=31), + "VertexArrayAttribIFormat": exec_info(core=31), + "VertexArrayAttribLFormat": exec_info(core=31), + "VertexArrayAttribBinding": exec_info(core=31), + "VertexArrayBindingDivisor": exec_info(core=31), + "GetVertexArrayiv": exec_info(core=31), + "GetVertexArrayIndexediv": exec_info(core=31), + "GetVertexArrayIndexed64iv": exec_info(core=31), + "CreateSamplers": exec_info(core=31), + "CreateProgramPipelines": exec_info(core=31), + "CreateQueries": exec_info(core=31), + "GetQueryBufferObjectiv": exec_info(core=31), + "GetQueryBufferObjectuiv": exec_info(core=31), + "GetQueryBufferObjecti64v": exec_info(core=31), + "GetQueryBufferObjectui64v": exec_info(core=31), +} diff --git a/mesalib/src/mapi/glapi/gen/es_EXT.xml b/mesalib/src/mapi/glapi/gen/es_EXT.xml index 3a2adeb04..642e3b319 100644 --- a/mesalib/src/mapi/glapi/gen/es_EXT.xml +++ b/mesalib/src/mapi/glapi/gen/es_EXT.xml @@ -11,7 +11,7 @@ + es1="1.0"> @@ -24,8 +24,7 @@ - + @@ -40,8 +39,7 @@ - + @@ -72,8 +70,7 @@ - + @@ -81,13 +78,11 @@ - + - + @@ -95,13 +90,11 @@ - + - + @@ -109,13 +102,11 @@ - + - + @@ -123,8 +114,7 @@ - + @@ -177,40 +167,35 @@ - + - + + alias="CheckFramebufferStatus" es1="1.0"> - + + es1="1.0"> + alias="FramebufferRenderbuffer" es1="1.0"> @@ -218,7 +203,7 @@ + es1="1.0"> @@ -226,26 +211,22 @@ - + - + - + + alias="GetFramebufferAttachmentParameteriv" es1="1.0"> @@ -253,27 +234,24 @@ + alias="GetRenderbufferParameteriv" es1="1.0"> - + - + + es1="1.0"> @@ -308,25 +286,23 @@ + exec="skip"> - + + exec="skip"> - + @@ -342,8 +318,7 @@ - + @@ -358,8 +333,7 @@ - + @@ -388,43 +362,37 @@ - + - + - + - + - + - + @@ -460,21 +428,19 @@ + es1="1.0" es2="2.0"> - + - + @@ -506,7 +472,7 @@ + es2="2.0"> @@ -519,8 +485,7 @@ + alias="CompressedTexSubImage3D" es2="2.0"> @@ -534,8 +499,7 @@ - + @@ -548,7 +512,7 @@ + es2="2.0"> @@ -557,8 +521,7 @@ - + @@ -571,8 +534,7 @@ - + @@ -630,8 +592,7 @@ - + @@ -639,8 +600,7 @@ - + @@ -666,8 +626,7 @@ - + @@ -689,25 +648,21 @@ - + - + - + - + @@ -782,8 +737,7 @@ - + @@ -791,8 +745,7 @@ - + @@ -821,7 +774,7 @@ + es1="1.0" es2="2.0"> @@ -830,7 +783,7 @@ + es1="1.0" es2="2.0"> @@ -839,8 +792,7 @@ - + diff --git a/mesalib/src/mapi/glapi/gen/glX_proto_recv.py b/mesalib/src/mapi/glapi/gen/glX_proto_recv.py index d076409c2..da468dc58 100644 --- a/mesalib/src/mapi/glapi/gen/glX_proto_recv.py +++ b/mesalib/src/mapi/glapi/gen/glX_proto_recv.py @@ -25,8 +25,10 @@ # Authors: # Ian Romanick +import argparse +import string + import gl_XML, glX_XML, glX_proto_common, license -import sys, getopt, string class PrintGlxDispatch_h(gl_XML.gl_print_base): @@ -524,31 +526,39 @@ class PrintGlxDispatchFunctions(glX_proto_common.glx_print_proto): return -if __name__ == '__main__': - file_name = "gl_API.xml" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:m:s") - except Exception,e: - show_usage() - - mode = "dispatch_c" - do_swap = 0 - for (arg,val) in args: - if arg == "-f": - file_name = val - elif arg == "-m": - mode = val - elif arg == "-s": - do_swap = 1 - - if mode == "dispatch_c": - printer = PrintGlxDispatchFunctions(do_swap) - elif mode == "dispatch_h": +def _parser(): + """Parse any arguments passed and return a namespace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', + dest='filename', + default='gl_API.xml', + help='an xml file describing an OpenGL API') + parser.add_argument('-m', + dest='mode', + default='dispatch_c', + choices=['dispatch_c', 'dispatch_h'], + help='what file to generate') + parser.add_argument('-s', + dest='swap', + action='store_true', + help='emit swap in GlXDispatchFunctions') + return parser.parse_args() + + +def main(): + """Main function.""" + args = _parser() + + if args._mode == "dispatch_c": + printer = PrintGlxDispatchFunctions(args.swap) + elif args._mode == "dispatch_h": printer = PrintGlxDispatch_h() - else: - show_usage() - api = gl_XML.parse_GL_API( file_name, glX_proto_common.glx_proto_item_factory() ) + api = gl_XML.parse_GL_API( + args.filename, glX_proto_common.glx_proto_item_factory()) + + printer.Print(api) - printer.Print( api ) + +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/glX_proto_send.py b/mesalib/src/mapi/glapi/gen/glX_proto_send.py index b93989f75..2b3303078 100644 --- a/mesalib/src/mapi/glapi/gen/glX_proto_send.py +++ b/mesalib/src/mapi/glapi/gen/glX_proto_send.py @@ -2,6 +2,7 @@ # (C) Copyright IBM Corporation 2004, 2005 # All Rights Reserved. +# Copyright (c) 2015 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), @@ -26,8 +27,10 @@ # Ian Romanick # Jeremy Kolb +import argparse + import gl_XML, glX_XML, glX_proto_common, license -import sys, getopt, copy, string +import copy, string def convertStringForXCB(str): tmp = "" @@ -1085,42 +1088,41 @@ extern _X_HIDDEN NOINLINE FASTCALL GLubyte * __glXSetupVendorRequest( print '#endif' -def show_usage(): - print "Usage: %s [-f input_file_name] [-m output_mode] [-d]" % sys.argv[0] - print " -m output_mode Output mode can be one of 'proto', 'init_c' or 'init_h'." - print " -d Enable extra debug information in the generated code." - sys.exit(1) - - -if __name__ == '__main__': - file_name = "gl_API.xml" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:m:d") - except Exception,e: - show_usage() - - debug = 0 - mode = "proto" - for (arg,val) in args: - if arg == "-f": - file_name = val - elif arg == "-m": - mode = val - elif arg == "-d": - debug = 1 - - if mode == "proto": +def _parser(): + """Parse input and returned a parsed namespace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', + default='gl_API.xml', + dest='filename', + help='An XML file describing an API') + parser.add_argument('-m', + required=True, + dest='mode', + choices=frozenset(['proto', 'init_c', 'init_h']), + help='which file to generate') + parser.add_argument('-d', + action='store_true', + dest='debug', + help='turn debug mode on.') + return parser.parse_args() + + +def main(): + """Main function.""" + args = _parser() + + if args.mode == "proto": printer = PrintGlxProtoStubs() - elif mode == "init_c": + elif args.mode == "init_c": printer = PrintGlxProtoInit_c() - elif mode == "init_h": + elif args.mode == "init_h": printer = PrintGlxProtoInit_h() - else: - show_usage() - - printer.debug = debug - api = gl_XML.parse_GL_API( file_name, glX_XML.glx_item_factory() ) + printer.debug = args.debug + api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer.Print( api ) + + +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/glX_proto_size.py b/mesalib/src/mapi/glapi/gen/glX_proto_size.py index 4737fbf71..75fc26f5d 100644 --- a/mesalib/src/mapi/glapi/gen/glX_proto_size.py +++ b/mesalib/src/mapi/glapi/gen/glX_proto_size.py @@ -25,9 +25,11 @@ # Authors: # Ian Romanick +import argparse +import sys, string + import gl_XML, glX_XML import license -import sys, getopt, copy, string class glx_enum_function(object): @@ -650,54 +652,57 @@ class PrintGlxReqSize_c(PrintGlxReqSize_common): return alias -def show_usage(): - print "Usage: %s [-f input_file_name] -m output_mode [--only-get | --only-set] [--get-alias-set]" % sys.argv[0] - print " -m output_mode Output mode can be one of 'size_c' or 'size_h'." - print " --only-get Only emit 'get'-type functions." - print " --only-set Only emit 'set'-type functions." - print "" - print "By default, both 'get' and 'set'-type functions are emitted." - sys.exit(1) - - -if __name__ == '__main__': - file_name = "gl_API.xml" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:m:h:", ["only-get", "only-set", "header-tag"]) - except Exception,e: - show_usage() - - mode = None - header_tag = None - which_functions = PrintGlxSizeStubs_common.do_get | PrintGlxSizeStubs_common.do_set - - for (arg,val) in args: - if arg == "-f": - file_name = val - elif arg == "-m": - mode = val - elif arg == "--only-get": - which_functions = PrintGlxSizeStubs_common.do_get - elif arg == "--only-set": - which_functions = PrintGlxSizeStubs_common.do_set - elif (arg == '-h') or (arg == "--header-tag"): - header_tag = val - - if mode == "size_c": - printer = PrintGlxSizeStubs_c( which_functions ) - elif mode == "size_h": - printer = PrintGlxSizeStubs_h( which_functions ) - if header_tag: - printer.header_tag = header_tag - elif mode == "reqsize_c": +def _parser(): + """Parse arguments and return a namespace.""" + parser = argparse.ArgumentParser() + parser.set_defaults(which_functions=(PrintGlxSizeStubs_common.do_get | + PrintGlxSizeStubs_common.do_set)) + parser.add_argument('-f', + dest='filename', + default='gl_API.xml', + help='an XML file describing an OpenGL API.') + parser.add_argument('-m', + dest='mode', + choices=['size_c', 'size_h', 'reqsize_c', 'reqsize_h'], + help='Which file to generate') + getset = parser.add_mutually_exclusive_group() + getset.add_argument('--only-get', + dest='which_functions', + action='store_const', + const=PrintGlxSizeStubs_common.do_get, + help='only emit "get-type" functions') + getset.add_argument('--only-set', + dest='which_functions', + action='store_const', + const=PrintGlxSizeStubs_common.do_set, + help='only emit "set-type" functions') + parser.add_argument('--header-tag', + dest='header_tag', + action='store', + default=None, + help='set header tag value') + return parser.parse_args() + + +def main(): + """Main function.""" + args = _parser() + + if args.mode == "size_c": + printer = PrintGlxSizeStubs_c(args.which_functions) + elif args.mode == "size_h": + printer = PrintGlxSizeStubs_h(args.which_functions) + if args.header_tag is not None: + printer.header_tag = args.header_tag + elif args.mode == "reqsize_c": printer = PrintGlxReqSize_c() - elif mode == "reqsize_h": + elif args.mode == "reqsize_h": printer = PrintGlxReqSize_h() - else: - show_usage() - api = gl_XML.parse_GL_API( file_name, glX_XML.glx_item_factory() ) + api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) + + printer.Print(api) - printer.Print( api ) +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/glX_server_table.py b/mesalib/src/mapi/glapi/gen/glX_server_table.py index 47aa11116..2d21f4e4e 100644 --- a/mesalib/src/mapi/glapi/gen/glX_server_table.py +++ b/mesalib/src/mapi/glapi/gen/glX_server_table.py @@ -25,8 +25,9 @@ # Authors: # Ian Romanick +import argparse + import gl_XML, glX_XML, glX_proto_common, license -import sys, getopt def log2(value): @@ -383,28 +384,19 @@ class PrintGlxDispatchTables(glX_proto_common.glx_print_proto): return -if __name__ == '__main__': - file_name = "gl_API.xml" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:m") - except Exception,e: - show_usage() - - mode = "table_c" - for (arg,val) in args: - if arg == "-f": - file_name = val - elif arg == "-m": - mode = val +def _parser(): + """Parse arguments and return namespace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', + dest='filename', + default='gl_API.xml', + help='An XML file describing an API.') + return parser.parse_args() - if mode == "table_c": - printer = PrintGlxDispatchTables() - else: - show_usage() - - - api = gl_XML.parse_GL_API( file_name, glX_XML.glx_item_factory() ) +if __name__ == '__main__': + args = _parser() + printer = PrintGlxDispatchTables() + api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) - printer.Print( api ) + printer.Print(api) diff --git a/mesalib/src/mapi/glapi/gen/gl_API.dtd b/mesalib/src/mapi/glapi/gen/gl_API.dtd index ab321fad0..bdc62f1c8 100644 --- a/mesalib/src/mapi/glapi/gen/gl_API.dtd +++ b/mesalib/src/mapi/glapi/gen/gl_API.dtd @@ -33,8 +33,6 @@ value NMTOKEN #REQUIRED> - + - + - + - + - + - + - + - + - + @@ -1164,129 +1164,120 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - @@ -1294,38 +1285,36 @@ - + - + - + - + - + - @@ -1333,494 +1322,462 @@ - + - + - + - + - + - - + - + - + - + - - + - + - + - + - + - + - + - + - + - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + - + - + - + - + - + - + - - + - + - + - + - + - + - + - - + - + - + - + - + - + - + - @@ -1828,146 +1785,134 @@ - + - + - + - + - + - + - + - - + - + - + - + - + - + - + - - + - + - + - + - + - + - + - @@ -1975,199 +1920,195 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2175,40 +2116,40 @@ - + - + - + - + - + - + @@ -2220,7 +2161,7 @@ - + @@ -2233,129 +2174,129 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2363,12 +2304,12 @@ - + - + @@ -2376,22 +2317,22 @@ - + - + - + - + @@ -2399,50 +2340,50 @@ - + - + - + - + - + - + - + - + - + - + @@ -2452,7 +2393,7 @@ - + @@ -2462,7 +2403,7 @@ - + @@ -2476,7 +2417,7 @@ - + @@ -2490,21 +2431,21 @@ - + - + - + @@ -2514,7 +2455,7 @@ - + @@ -2524,64 +2465,59 @@ - + - + - - + - + - + - - + - + - + - + @@ -2590,106 +2526,105 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2698,7 +2633,7 @@ - + @@ -2709,7 +2644,7 @@ - + @@ -2718,155 +2653,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2875,21 +2810,21 @@ - + - + - + @@ -2897,7 +2832,7 @@ - + @@ -2905,25 +2840,25 @@ - + - + - + - + @@ -2933,36 +2868,36 @@ - + - + - + - + - + - + - + @@ -2972,15 +2907,15 @@ - + - + - + @@ -2988,7 +2923,7 @@ - + @@ -2996,35 +2931,35 @@ - + - + - + - + - + @@ -3207,13 +3142,12 @@ - + - + @@ -3221,22 +3155,19 @@ - + - + - + @@ -3244,45 +3175,45 @@ - + - + - + - + - + - + - + @@ -3290,7 +3221,7 @@ - + @@ -3298,13 +3229,13 @@ - + - + @@ -3315,7 +3246,7 @@ - + @@ -3327,7 +3258,7 @@ - + @@ -3337,7 +3268,7 @@ - + @@ -3349,7 +3280,7 @@ - + @@ -3361,7 +3292,7 @@ - + @@ -3375,7 +3306,7 @@ - + @@ -3383,52 +3314,51 @@ - + - + - + - + - + - + - + - + - + @@ -3781,7 +3711,7 @@ - + @@ -3789,13 +3719,12 @@ - + - + @@ -3805,7 +3734,7 @@ - + @@ -3815,21 +3744,21 @@ - + - + - + @@ -3838,7 +3767,7 @@ - + @@ -3846,21 +3775,21 @@ - + - + - + @@ -3870,7 +3799,7 @@ - + @@ -3879,7 +3808,7 @@ - + @@ -3889,7 +3818,7 @@ - + @@ -3900,35 +3829,35 @@ - + - + - + - + - + @@ -3937,7 +3866,7 @@ - + @@ -3947,7 +3876,7 @@ - + @@ -3955,21 +3884,21 @@ - + - + - + @@ -3979,7 +3908,7 @@ - + @@ -3991,7 +3920,7 @@ - + @@ -4000,21 +3929,21 @@ - + - + - + @@ -4023,21 +3952,21 @@ - + - + - + @@ -4045,24 +3974,24 @@ - + - + - + - + @@ -4076,7 +4005,7 @@ - + @@ -4092,7 +4021,7 @@ - + @@ -4319,33 +4248,28 @@ - + - + - + - + - + @@ -4356,41 +4280,35 @@ - + - + - + - + - + - + @@ -4409,44 +4327,38 @@ - + - + - + - + - + - + @@ -4466,38 +4378,33 @@ - + - + - + - + - + @@ -4505,8 +4412,7 @@ - + @@ -4527,8 +4433,7 @@ - + @@ -4536,15 +4441,13 @@ - + - + @@ -4552,45 +4455,39 @@ - + - + - + - + - + - + - + @@ -4603,8 +4500,7 @@ - + @@ -4616,7 +4512,7 @@ - + @@ -4627,7 +4523,7 @@ - + @@ -4642,8 +4538,7 @@ - + @@ -4656,7 +4551,7 @@ - + @@ -4667,7 +4562,7 @@ - + @@ -4790,7 +4685,7 @@ - + @@ -4806,24 +4701,23 @@ - + - + - + - + @@ -4839,52 +4733,48 @@ - + - + - + - + - + - + - + - + @@ -4901,73 +4791,62 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -4975,93 +4854,93 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -5132,13 +5011,13 @@ - + - + @@ -5146,8 +5025,7 @@ - + @@ -5155,35 +5033,33 @@ - + - + - + - + - + @@ -5191,69 +5067,69 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -5356,20 +5232,19 @@ - + - + - + @@ -5377,7 +5252,7 @@ - + @@ -5385,72 +5260,70 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -5461,7 +5334,7 @@ - + @@ -5472,7 +5345,7 @@ - + @@ -5480,21 +5353,21 @@ - + - + - + @@ -5502,14 +5375,14 @@ - + - + @@ -5517,7 +5390,7 @@ - + @@ -5525,29 +5398,28 @@ - + - + - + - + @@ -5555,7 +5427,7 @@ - + @@ -5563,7 +5435,7 @@ - + @@ -5571,8 +5443,7 @@ - + @@ -5580,24 +5451,24 @@ - + - + - + - + @@ -5605,30 +5476,30 @@ - + - + - + - + - + @@ -5637,25 +5508,25 @@ - + - + - + - + @@ -5664,71 +5535,71 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -5736,16 +5607,16 @@ - + - + - + @@ -5758,22 +5629,22 @@ - + - + - + - + @@ -5787,24 +5658,24 @@ - + - + - + - + @@ -5819,68 +5690,68 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -5896,41 +5767,40 @@ - + - + - + - + - + - + - + @@ -5971,42 +5841,42 @@ - + - + - + - + - + - + @@ -6081,13 +5951,13 @@ - - + @@ -6127,14 +5997,14 @@ - - + @@ -6177,7 +6047,7 @@ - @@ -6185,7 +6055,7 @@ - + @@ -6231,7 +6101,7 @@ - @@ -6240,7 +6110,7 @@ - + @@ -6672,7 +6542,7 @@ - + @@ -6738,7 +6608,7 @@ - + @@ -7108,13 +6978,13 @@ - + - + @@ -7143,14 +7013,14 @@ - - + @@ -7181,7 +7051,7 @@ - @@ -7189,7 +7059,7 @@ - + @@ -7222,7 +7092,7 @@ - @@ -7231,7 +7101,7 @@ - + @@ -7332,7 +7202,7 @@ - + @@ -7340,31 +7210,31 @@ - + - + - + - + - @@ -7374,7 +7244,7 @@ - @@ -7382,7 +7252,7 @@ - @@ -7392,7 +7262,7 @@ - @@ -7400,7 +7270,7 @@ - @@ -7410,7 +7280,7 @@ - @@ -7418,7 +7288,7 @@ - @@ -7428,8 +7298,7 @@ - + @@ -7448,32 +7317,28 @@ the ARB_vertex_program protocol to unused padding. --> - + - + - + - + @@ -7481,14 +7346,14 @@ - + - + @@ -7774,24 +7639,24 @@ - + - + - + - + @@ -7808,12 +7673,12 @@ - + - + @@ -7952,21 +7817,21 @@ - + - + - + @@ -7974,7 +7839,7 @@ - + @@ -8189,17 +8054,17 @@ - + - + - + @@ -8219,25 +8084,24 @@ - + - + - + - + @@ -8268,15 +8132,13 @@ - + - + @@ -8360,7 +8222,7 @@ - + @@ -8420,7 +8282,7 @@ - + @@ -8669,7 +8531,7 @@ - + @@ -8678,21 +8540,21 @@ - + - + - + @@ -8701,38 +8563,38 @@ - + - + - + - + - + - + @@ -8804,7 +8666,7 @@ - + @@ -8813,7 +8675,7 @@ - + @@ -8823,31 +8685,31 @@ - + - + - + - + - + @@ -8855,7 +8717,7 @@ - + @@ -8864,7 +8726,7 @@ - + @@ -8872,21 +8734,21 @@ - + - + - + @@ -8896,7 +8758,7 @@ - + @@ -8968,7 +8830,7 @@ - + @@ -8977,19 +8839,19 @@ - + - + - + @@ -8997,7 +8859,7 @@ - + @@ -9005,14 +8867,14 @@ - + - + @@ -9170,15 +9032,13 @@ - + - + @@ -9209,7 +9069,7 @@ - + @@ -9224,7 +9084,7 @@ - + @@ -9236,7 +9096,7 @@ - + @@ -9244,7 +9104,7 @@ - + @@ -9252,7 +9112,7 @@ - + @@ -9261,7 +9121,7 @@ - + @@ -9589,7 +9449,7 @@ - + @@ -9598,7 +9458,7 @@ - + @@ -9800,13 +9660,13 @@ - + - + @@ -10148,13 +10008,13 @@ - + - + @@ -10236,8 +10096,7 @@ - + @@ -10248,12 +10107,11 @@ - + - + @@ -11105,7 +10963,7 @@ - + @@ -11187,7 +11045,7 @@ - + @@ -11195,12 +11053,12 @@ - + - + @@ -11208,12 +11066,12 @@ - + - + @@ -11221,12 +11079,12 @@ - + - + @@ -11234,7 +11092,7 @@ - + @@ -11248,7 +11106,7 @@ - + @@ -11257,7 +11115,7 @@ - + @@ -11354,12 +11212,12 @@ - + - + @@ -11656,8 +11514,7 @@ - + @@ -11675,8 +11532,7 @@ - + @@ -11694,8 +11550,7 @@ of these functions. --> - + @@ -11703,8 +11558,7 @@ - + @@ -11712,24 +11566,21 @@ - + - + - + @@ -11737,24 +11588,21 @@ - + - + - + @@ -11772,8 +11620,7 @@ - + @@ -11811,8 +11658,7 @@ - + @@ -11820,8 +11666,7 @@ - + @@ -11829,15 +11674,13 @@ - + - + @@ -11845,8 +11688,7 @@ - + @@ -11855,32 +11697,32 @@ - - + - - + - @@ -11888,13 +11730,13 @@ - + - @@ -11903,60 +11745,53 @@ - + - + - + - + - + - + - + - + @@ -11964,39 +11799,38 @@ - + - - + - - + - @@ -12004,13 +11838,13 @@ - + - @@ -12019,13 +11853,13 @@ - + - @@ -12034,97 +11868,97 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -12193,22 +12027,22 @@ - + - + - + - + @@ -12327,45 +12161,45 @@ redudndant garbage. There are a lot of enums with the value 0x00000001. --> - + - + - + - + - + - + - + - + @@ -12376,7 +12210,7 @@ - + @@ -12390,7 +12224,7 @@ - + @@ -12407,7 +12241,7 @@ - + @@ -12417,7 +12251,7 @@ - + @@ -12430,7 +12264,7 @@ - + @@ -12446,8 +12280,7 @@ - + @@ -12547,8 +12380,7 @@ - + @@ -12588,7 +12420,7 @@ - @@ -12600,7 +12432,7 @@ - @@ -12612,8 +12444,7 @@ - + @@ -12621,8 +12452,7 @@ - + @@ -12630,8 +12460,7 @@ - + @@ -12639,8 +12468,7 @@ - + @@ -12684,7 +12512,7 @@ - + @@ -12705,7 +12533,7 @@ - + @@ -12789,14 +12617,12 @@ - + - + @@ -12875,7 +12701,7 @@ - + @@ -12885,7 +12711,7 @@ - + @@ -12905,14 +12731,13 @@ - + - + @@ -12922,16 +12747,14 @@ - + - + @@ -12943,12 +12766,12 @@ - + - + @@ -12956,7 +12779,7 @@ - + @@ -12984,12 +12807,12 @@ - + - + diff --git a/mesalib/src/mapi/glapi/gen/gl_SPARC_asm.py b/mesalib/src/mapi/glapi/gen/gl_SPARC_asm.py index 23e23295b..fa6217e1b 100644 --- a/mesalib/src/mapi/glapi/gen/gl_SPARC_asm.py +++ b/mesalib/src/mapi/glapi/gen/gl_SPARC_asm.py @@ -25,9 +25,10 @@ # Authors: # Ian Romanick +import argparse + import license import gl_XML, glX_XML -import sys, getopt class PrintGenericStubs(gl_XML.gl_print_base): def __init__(self): @@ -244,30 +245,24 @@ class PrintGenericStubs(gl_XML.gl_print_base): return -def show_usage(): - print "Usage: %s [-f input_file_name] [-m output_mode]" % sys.argv[0] - sys.exit(1) +def _parser(): + """Parse arguments and return a namespace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', + dest='filename', + default='gl_API.xml', + help='An XML description of an API.') + return parser.parse_args() -if __name__ == '__main__': - file_name = "gl_API.xml" - mode = "generic" - try: - (args, trail) = getopt.getopt(sys.argv[1:], "m:f:") - except Exception,e: - show_usage() +def main(): + """Main function.""" + args = _parser() + printer = PrintGenericStubs() - for (arg,val) in args: - if arg == '-m': - mode = val - elif arg == "-f": - file_name = val + api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) + printer.Print(api) - if mode == "generic": - printer = PrintGenericStubs() - else: - print "ERROR: Invalid mode \"%s\" specified." % mode - show_usage() - api = gl_XML.parse_GL_API(file_name, glX_XML.glx_item_factory()) - printer.Print(api) +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/gl_XML.py b/mesalib/src/mapi/glapi/gen/gl_XML.py index 1a2bc2b91..67aba81a7 100644 --- a/mesalib/src/mapi/glapi/gen/gl_XML.py +++ b/mesalib/src/mapi/glapi/gen/gl_XML.py @@ -30,6 +30,7 @@ import xml.etree.ElementTree as ET import re, sys, string import os.path import typeexpr +import static_data def parse_GL_API( file_name, factory = None ): @@ -625,7 +626,7 @@ class gl_function( gl_item ): # Decimal('1.1') }. self.api_map = {} - self.assign_offset = 0 + self.assign_offset = False self.static_entry_points = [] @@ -649,7 +650,7 @@ class gl_function( gl_item ): name = element.get( "name" ) alias = element.get( "alias" ) - if is_attr_true(element, "static_dispatch", "true"): + if name in static_data.functions: self.static_entry_points.append(name) self.entry_points.append( name ) @@ -684,16 +685,11 @@ class gl_function( gl_item ): # Only try to set the offset when a non-alias entry-point # is being processed. - offset = element.get( "offset" ) - if offset: - try: - o = int( offset ) - self.offset = o - except Exception, e: - self.offset = -1 - if offset == "assign": - self.assign_offset = 1 - + if name in static_data.offsets: + self.offset = static_data.offsets[name] + else: + self.offset = -1 + self.assign_offset = self.exec_flavor != "skip" or name in static_data.unused_functions if not self.name: self.name = true_name diff --git a/mesalib/src/mapi/glapi/gen/gl_and_es_API.xml b/mesalib/src/mapi/glapi/gen/gl_and_es_API.xml index d158a6b31..fc1528410 100644 --- a/mesalib/src/mapi/glapi/gen/gl_and_es_API.xml +++ b/mesalib/src/mapi/glapi/gen/gl_and_es_API.xml @@ -18,45 +18,45 @@ - + - + - + - + - + - + - + - + @@ -65,53 +65,53 @@ - + - + - + - + - + - + - + - + - + - + @@ -119,13 +119,13 @@ - + - + @@ -134,59 +134,59 @@ - + - + - + - + - + - + - + - + - + - + @@ -195,7 +195,7 @@ - + @@ -207,68 +207,68 @@ - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/mesalib/src/mapi/glapi/gen/gl_apitemp.py b/mesalib/src/mapi/glapi/gen/gl_apitemp.py index 4157032c5..5e985a2ec 100644 --- a/mesalib/src/mapi/glapi/gen/gl_apitemp.py +++ b/mesalib/src/mapi/glapi/gen/gl_apitemp.py @@ -25,9 +25,10 @@ # Authors: # Ian Romanick +import argparse + import gl_XML, glX_XML import license -import sys, getopt class PrintGlOffsets(gl_XML.gl_print_base): def __init__(self, es=False): @@ -301,27 +302,30 @@ _glapi_proc UNUSED_TABLE_NAME[] = {""" return -def show_usage(): - print "Usage: %s [-f input_file_name] [-c]" % sys.argv[0] - print "-c Enable compatibility with OpenGL ES." - sys.exit(1) - -if __name__ == '__main__': - file_name = "gl_API.xml" +def _parser(): + """Parser arguments and return a namespace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', + metavar='', + dest='filename', + default="gl_API.xml", + help="An XML file describing the API.") + parser.add_argument('-c', + action='store_true', + dest='es', + help="Enable OpenGL ES compatibility") + return parser.parse_args() - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:c") - except Exception,e: - show_usage() - es = False - for (arg,val) in args: - if arg == "-f": - file_name = val - elif arg == "-c": - es = True +def main(): + """Main function.""" + args = _parser() - api = gl_XML.parse_GL_API(file_name, glX_XML.glx_item_factory()) + api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) - printer = PrintGlOffsets(es) + printer = PrintGlOffsets(args.es) printer.Print(api) + + +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/gl_enums.py b/mesalib/src/mapi/glapi/gen/gl_enums.py index f45782df8..955f27d08 100644 --- a/mesalib/src/mapi/glapi/gen/gl_enums.py +++ b/mesalib/src/mapi/glapi/gen/gl_enums.py @@ -1,8 +1,8 @@ #!/usr/bin/python2 # -*- Mode: Python; py-indent-offset: 8 -*- -# (C) Copyright Zack Rusin 2005 -# All Rights Reserved. +# (C) Copyright Zack Rusin 2005. All Rights Reserved. +# Copyright (C) 2015 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), @@ -26,6 +26,8 @@ # Authors: # Zack Rusin +import argparse + import license import gl_XML import sys, getopt @@ -201,21 +203,21 @@ _mesa_lookup_prim_by_nr(GLuint nr) enum.append( [name, priority] ) -def show_usage(): - print "Usage: %s [-f input_file_name]" % sys.argv[0] - sys.exit(1) +def _parser(): + parser = argparse.ArgumentParser() + parser.add_argument('-f', '--input_file', + required=True, + help="Choose an xml file to parse.") + return parser.parse_args() -if __name__ == '__main__': - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:") - except Exception,e: - show_usage() - api_list = [] - for (arg,val) in args: - if arg == "-f": - api = gl_XML.parse_GL_API( val ) - api_list.append(api); +def main(): + args = _parser() + api_list = [gl_XML.parse_GL_API(args.input_file)] printer = PrintGlEnums() - printer.Print( api_list ) + printer.Print(api_list) + + +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/gl_genexec.py b/mesalib/src/mapi/glapi/gen/gl_genexec.py index 4e76fe3c2..26d8e7bfb 100644 --- a/mesalib/src/mapi/glapi/gen/gl_genexec.py +++ b/mesalib/src/mapi/glapi/gen/gl_genexec.py @@ -25,10 +25,12 @@ # _mesa_initialize_exec_table(). It is responsible for populating all # entries in the "exec" dispatch table that aren't dynamic. +import argparse import collections import license import gl_XML -import sys, getopt +import sys +import apiexec exec_flavor_map = { @@ -175,18 +177,49 @@ class PrintCode(gl_XML.gl_print_base): raise Exception( 'Unrecognized exec flavor {0!r}'.format(f.exec_flavor)) condition_parts = [] - if f.desktop: - if f.deprecated: + if f.name in apiexec.functions: + ex = apiexec.functions[f.name] + unconditional_count = 0 + + if ex.compatibility is not None: condition_parts.append('ctx->API == API_OPENGL_COMPAT') - else: - condition_parts.append('_mesa_is_desktop_gl(ctx)') - if 'es1' in f.api_map: - condition_parts.append('ctx->API == API_OPENGLES') - if 'es2' in f.api_map: - if f.api_map['es2'] > 2.0: - condition_parts.append('(ctx->API == API_OPENGLES2 && ctx->Version >= {0})'.format(int(f.api_map['es2'] * 10))) - else: - condition_parts.append('ctx->API == API_OPENGLES2') + unconditional_count += 1 + + if ex.core is not None: + condition_parts.append('ctx->API == API_OPENGL_CORE') + unconditional_count += 1 + + if ex.es1 is not None: + condition_parts.append('ctx->API == API_OPENGLES') + unconditional_count += 1 + + if ex.es2 is not None: + if ex.es2 > 20: + condition_parts.append('(ctx->API == API_OPENGLES2 && ctx->Version >= {0})'.format(ex.es2)) + else: + condition_parts.append('ctx->API == API_OPENGLES2') + unconditional_count += 1 + + # If the function is unconditionally available in all four + # APIs, then it is always available. Replace the complex + # tautology condition with "true" and let GCC do the right + # thing. + if unconditional_count == 4: + condition_parts = ['true'] + else: + if f.desktop: + if f.deprecated: + condition_parts.append('ctx->API == API_OPENGL_COMPAT') + else: + condition_parts.append('_mesa_is_desktop_gl(ctx)') + if 'es1' in f.api_map: + condition_parts.append('ctx->API == API_OPENGLES') + if 'es2' in f.api_map: + if f.api_map['es2'] > 2.0: + condition_parts.append('(ctx->API == API_OPENGLES2 && ctx->Version >= {0})'.format(int(f.api_map['es2'] * 10))) + else: + condition_parts.append('ctx->API == API_OPENGLES2') + if not condition_parts: # This function does not exist in any API. continue @@ -207,24 +240,23 @@ class PrintCode(gl_XML.gl_print_base): print ' }' -def show_usage(): - print "Usage: %s [-f input_file_name]" % sys.argv[0] - sys.exit(1) - +def _parser(): + """Parse arguments and return namespace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', + dest='filename', + default='gl_and_es_API.xml', + help='an xml file describing an API') + return parser.parse_args() -if __name__ == '__main__': - file_name = "gl_and_es_API.xml" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "m:f:") - except Exception,e: - show_usage() - - for (arg,val) in args: - if arg == "-f": - file_name = val +def main(): + """Main function.""" + args = _parser() printer = PrintCode() - - api = gl_XML.parse_GL_API(file_name) + api = gl_XML.parse_GL_API(args.filename) printer.Print(api) + + +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/gl_gentable.py b/mesalib/src/mapi/glapi/gen/gl_gentable.py index 06a5ebf04..1b3eb7247 100644 --- a/mesalib/src/mapi/glapi/gen/gl_gentable.py +++ b/mesalib/src/mapi/glapi/gen/gl_gentable.py @@ -2,6 +2,7 @@ # (C) Copyright IBM Corporation 2004, 2005 # (C) Copyright Apple Inc. 2011 +# Copyright (C) 2015 Intel Corporation # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a @@ -29,9 +30,10 @@ # Based on code ogiginally by: # Ian Romanick +import argparse + import license import gl_XML, glX_XML -import sys, getopt header = """/* GLXEXT is the define used in the xserver when the GLX extension is being * built. Hijack this to determine whether this file is being built for the @@ -186,23 +188,27 @@ class PrintCode(gl_XML.gl_print_base): print body_template % vars return -def show_usage(): - print "Usage: %s [-f input_file_name]" % sys.argv[0] - sys.exit(1) -if __name__ == '__main__': - file_name = "gl_API.xml" +def _parser(): + """Parse arguments and return a namespace object.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', + dest='filename', + default='gl_API.xml', + help='An XML file description of an API') + + return parser.parse_args() - try: - (args, trail) = getopt.getopt(sys.argv[1:], "m:f:") - except Exception,e: - show_usage() - for (arg,val) in args: - if arg == "-f": - file_name = val +def main(): + """Main function.""" + args = _parser() printer = PrintCode() - api = gl_XML.parse_GL_API(file_name, glX_XML.glx_item_factory()) + api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/gl_procs.py b/mesalib/src/mapi/glapi/gen/gl_procs.py index b1fffc4ca..685e2fac3 100644 --- a/mesalib/src/mapi/glapi/gen/gl_procs.py +++ b/mesalib/src/mapi/glapi/gen/gl_procs.py @@ -25,9 +25,12 @@ # Authors: # Ian Romanick +import argparse + import license -import gl_XML, glX_XML -import sys, getopt +import gl_XML +import glX_XML + class PrintGlProcs(gl_XML.gl_print_base): def __init__(self, es=False): @@ -39,7 +42,6 @@ class PrintGlProcs(gl_XML.gl_print_base): """Copyright (C) 1999-2001 Brian Paul All Rights Reserved. (C) Copyright IBM Corporation 2004, 2006""", "BRIAN PAUL, IBM") - def printRealHeader(self): print """ /* This file is only included by glapi.c and is used for @@ -161,26 +163,28 @@ typedef struct { return -def show_usage(): - print "Usage: %s [-f input_file_name] [-c]" % sys.argv[0] - print "-c Enable compatibility with OpenGL ES." - sys.exit(1) +def _parser(): + """Parse arguments and return a namepsace.""" + + parser = argparse.ArgumentParser() + parser.add_argument('-f', '--filename', + default='gl_API.xml', + metavar="input_file_name", + dest='file_name', + help="Path to an XML description of OpenGL API.") + parser.add_argument('-c', '--es-version', + dest='es', + action="store_true", + help="filter functions for es") + return parser.parse_args() + + +def main(): + """Main function.""" + args = _parser() + api = gl_XML.parse_GL_API(args.file_name, glX_XML.glx_item_factory()) + PrintGlProcs(args.es).Print(api) + if __name__ == '__main__': - file_name = "gl_API.xml" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:c") - except Exception,e: - show_usage() - - es = False - for (arg,val) in args: - if arg == "-f": - file_name = val - elif arg == "-c": - es = True - - api = gl_XML.parse_GL_API(file_name, glX_XML.glx_item_factory()) - printer = PrintGlProcs(es) - printer.Print(api) + main() diff --git a/mesalib/src/mapi/glapi/gen/gl_table.py b/mesalib/src/mapi/glapi/gen/gl_table.py index fd384689f..3f0290230 100644 --- a/mesalib/src/mapi/glapi/gen/gl_table.py +++ b/mesalib/src/mapi/glapi/gen/gl_table.py @@ -2,6 +2,7 @@ # (C) Copyright IBM Corporation 2004 # All Rights Reserved. +# Copyright (c) 2014 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), @@ -25,9 +26,11 @@ # Authors: # Ian Romanick +import argparse + import gl_XML import license -import sys, getopt + class PrintGlTable(gl_XML.gl_print_base): def __init__(self, es=False): @@ -39,21 +42,20 @@ class PrintGlTable(gl_XML.gl_print_base): self.license = license.bsd_license_template % ( \ """Copyright (C) 1999-2003 Brian Paul All Rights Reserved. (C) Copyright IBM Corporation 2004""", "BRIAN PAUL, IBM") - self.ifdef_emitted = False; + self.ifdef_emitted = False return - def printBody(self, api): for f in api.functionIterateByOffset(): if not f.is_abi() and not self.ifdef_emitted: print '#if !defined HAVE_SHARED_GLAPI' self.ifdef_emitted = True arg_string = f.get_parameter_string() - print ' %s (GLAPIENTRYP %s)(%s); /* %d */' % (f.return_type, f.name, arg_string, f.offset) + print ' %s (GLAPIENTRYP %s)(%s); /* %d */' % ( + f.return_type, f.name, arg_string, f.offset) print '#endif /* !defined HAVE_SHARED_GLAPI */' - def printRealHeader(self): print '#ifndef GLAPIENTRYP' print '# ifndef GLAPIENTRY' @@ -68,7 +70,6 @@ class PrintGlTable(gl_XML.gl_print_base): print '{' return - def printRealFooter(self): print '};' return @@ -81,7 +82,8 @@ class PrintRemapTable(gl_XML.gl_print_base): self.es = es self.header_tag = '_DISPATCH_H_' self.name = "gl_table.py (from Mesa)" - self.license = license.bsd_license_template % ("(C) Copyright IBM Corporation 2005", "IBM") + self.license = license.bsd_license_template % ( + "(C) Copyright IBM Corporation 2005", "IBM") return @@ -100,6 +102,7 @@ class PrintRemapTable(gl_XML.gl_print_base): """ return + def printBody(self, api): print '#define CALL_by_offset(disp, cast, offset, parameters) \\' print ' (*(cast (GET_by_offset(disp, offset)))) parameters' @@ -124,10 +127,10 @@ class PrintRemapTable(gl_XML.gl_print_base): count = 0 for f in api.functionIterateByOffset(): if not f.is_abi(): - functions.append( [f, count] ) + functions.append([f, count]) count += 1 else: - abi_functions.append( [f, -1] ) + abi_functions.append([f, -1]) if self.es: # remember functions with aliases @@ -165,7 +168,7 @@ class PrintRemapTable(gl_XML.gl_print_base): print '' for f, index in abi_functions + functions: - arg_string = gl_XML.create_parameter_string( f.parameters, 0 ) + arg_string = gl_XML.create_parameter_string(f.parameters, 0) print 'typedef %s (GLAPIENTRYP _glptr_%s)(%s);' % (f.return_type, f.name, arg_string) print '#define CALL_%s(disp, parameters) \\' % (f.name) @@ -199,40 +202,44 @@ class PrintRemapTable(gl_XML.gl_print_base): return -def show_usage(): - print "Usage: %s [-f input_file_name] [-m mode] [-c ver]" % sys.argv[0] - print " -m mode Mode can be 'table' or 'remap_table'." - print " -c ver Version can be 'es1' or 'es2'." - sys.exit(1) +def _parser(): + """Parse arguments and return a namespace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', '--filename', + default='gl_API.xml', + metavar="input_file_name", + dest='file_name', + help="Path to an XML description of OpenGL API.") + parser.add_argument('-m', '--mode', + choices=['table', 'remap_table'], + default='table', + metavar="mode", + help="Generate either a table or a remap_table") + parser.add_argument('-c', '--es-version', + choices=[None, 'es1', 'es2'], + default=None, + metavar="ver", + dest='es', + help="filter functions for es") + return parser.parse_args() + + +def main(): + """Main function.""" + args = _parser() + + api = gl_XML.parse_GL_API(args.file_name) + + if args.mode == "table": + printer = PrintGlTable(args.es) + elif args.mode == "remap_table": + printer = PrintRemapTable(args.es) + + if args.es is not None: + api.filter_functions_by_api(args.es) + + printer.Print(api) + if __name__ == '__main__': - file_name = "gl_API.xml" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:m:c:") - except Exception,e: - show_usage() - - mode = "table" - es = None - for (arg,val) in args: - if arg == "-f": - file_name = val - elif arg == "-m": - mode = val - elif arg == "-c": - es = val - - if mode == "table": - printer = PrintGlTable(es) - elif mode == "remap_table": - printer = PrintRemapTable(es) - else: - show_usage() - - api = gl_XML.parse_GL_API( file_name ) - - if es is not None: - api.filter_functions_by_api(es) - - printer.Print( api ) + main() diff --git a/mesalib/src/mapi/glapi/gen/gl_x86-64_asm.py b/mesalib/src/mapi/glapi/gen/gl_x86-64_asm.py index 7afc2b108..cf42371f8 100644 --- a/mesalib/src/mapi/glapi/gen/gl_x86-64_asm.py +++ b/mesalib/src/mapi/glapi/gen/gl_x86-64_asm.py @@ -25,9 +25,11 @@ # Authors: # Ian Romanick +import argparse +import copy + import license import gl_XML, glX_XML -import sys, getopt, copy def should_use_push(registers): for [reg, offset] in registers: @@ -289,30 +291,25 @@ class PrintGenericStubs(gl_XML.gl_print_base): return -def show_usage(): - print "Usage: %s [-f input_file_name] [-m output_mode]" % sys.argv[0] - sys.exit(1) -if __name__ == '__main__': - file_name = "gl_API.xml" - mode = "generic" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "m:f:") - except Exception,e: - show_usage() - - for (arg,val) in args: - if arg == '-m': - mode = val - elif arg == "-f": - file_name = val - - if mode == "generic": - printer = PrintGenericStubs() - else: - print "ERROR: Invalid mode \"%s\" specified." % mode - show_usage() +def _parser(): + """Parse arguments and return a namespace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', + default='gl_API.xml', + dest='filename', + help='An XML file describing an API') + return parser.parse_args() + + +def main(): + """Main file.""" + args = _parser() + printer = PrintGenericStubs() + api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) - api = gl_XML.parse_GL_API(file_name, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/gl_x86_asm.py b/mesalib/src/mapi/glapi/gen/gl_x86_asm.py index f855dbaaa..c0c7941ce 100644 --- a/mesalib/src/mapi/glapi/gen/gl_x86_asm.py +++ b/mesalib/src/mapi/glapi/gen/gl_x86_asm.py @@ -25,9 +25,10 @@ # Authors: # Ian Romanick +import argparse + import license import gl_XML, glX_XML -import sys, getopt class PrintGenericStubs(gl_XML.gl_print_base): @@ -217,30 +218,22 @@ class PrintGenericStubs(gl_XML.gl_print_base): return -def show_usage(): - print "Usage: %s [-f input_file_name] [-m output_mode]" % sys.argv[0] - sys.exit(1) +def _parser(): + parser = argparse.ArgumentParser() + parser.add_argument('-f', + dest='filename', + default='gl_API.xml', + help='An XML file describing an API.') + return parser.parse_args() -if __name__ == '__main__': - file_name = "gl_API.xml" - mode = "generic" - - try: - (args, trail) = getopt.getopt(sys.argv[1:], "m:f:") - except Exception,e: - show_usage() - - for (arg,val) in args: - if arg == '-m': - mode = val - elif arg == "-f": - file_name = val - - if mode == "generic": - printer = PrintGenericStubs() - else: - print "ERROR: Invalid mode \"%s\" specified." % mode - show_usage() - - api = gl_XML.parse_GL_API(file_name, glX_XML.glx_item_factory()) + +def main(): + args = _parser() + printer = PrintGenericStubs() + + api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/remap_helper.py b/mesalib/src/mapi/glapi/gen/remap_helper.py index e1a13d0b3..94ae1936d 100644 --- a/mesalib/src/mapi/glapi/gen/remap_helper.py +++ b/mesalib/src/mapi/glapi/gen/remap_helper.py @@ -24,9 +24,11 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE. -import gl_XML +import argparse + import license -import sys, getopt, string +import gl_XML + def get_function_spec(func): sig = "" @@ -54,6 +56,7 @@ def get_function_spec(func): return spec + class PrintGlRemap(gl_XML.gl_print_base): def __init__(self): gl_XML.gl_print_base.__init__(self) @@ -163,30 +166,34 @@ class PrintGlRemap(gl_XML.gl_print_base): return -def show_usage(): - print "Usage: %s [-f input_file_name] [-c ver]" % sys.argv[0] - print " -c ver Version can be 'es1' or 'es2'." - sys.exit(1) +def _parser(): + """Parse input options and return a namsepace.""" + parser = argparse.ArgumentParser() + parser.add_argument('-f', '--filename', + default="gl_API.xml", + metavar="input_file_name", + dest='file_name', + help="An xml description file.") + parser.add_argument('-c', '--es-version', + choices=[None, 'es1', 'es2'], + default=None, + metavar='ver', + dest='es', + help='A GLES version to support') + return parser.parse_args() -if __name__ == '__main__': - file_name = "gl_API.xml" - try: - (args, trail) = getopt.getopt(sys.argv[1:], "f:c:") - except Exception,e: - show_usage() +def main(): + """Main function.""" + args = _parser() - es = None - for (arg,val) in args: - if arg == "-f": - file_name = val - elif arg == "-c": - es = val + api = gl_XML.parse_GL_API(args.file_name) + if args.es is not None: + api.filter_functions_by_api(args.es) - api = gl_XML.parse_GL_API( file_name ) + printer = PrintGlRemap() + printer.Print(api) - if es is not None: - api.filter_functions_by_api(es) - printer = PrintGlRemap() - printer.Print( api ) +if __name__ == '__main__': + main() diff --git a/mesalib/src/mapi/glapi/gen/static_data.py b/mesalib/src/mapi/glapi/gen/static_data.py new file mode 100644 index 000000000..142c503b0 --- /dev/null +++ b/mesalib/src/mapi/glapi/gen/static_data.py @@ -0,0 +1,1729 @@ +#!/usr/bin/env python + +# Copyright (C) 2015 Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice (including the next +# paragraph) shall be included in all copies or substantial portions of the +# Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +"""Table of functions that have ABI-mandated offsets in the dispatch table. + +This list will never change.""" +offsets = { + "NewList": 0, + "EndList": 1, + "CallList": 2, + "CallLists": 3, + "DeleteLists": 4, + "GenLists": 5, + "ListBase": 6, + "Begin": 7, + "Bitmap": 8, + "Color3b": 9, + "Color3bv": 10, + "Color3d": 11, + "Color3dv": 12, + "Color3f": 13, + "Color3fv": 14, + "Color3i": 15, + "Color3iv": 16, + "Color3s": 17, + "Color3sv": 18, + "Color3ub": 19, + "Color3ubv": 20, + "Color3ui": 21, + "Color3uiv": 22, + "Color3us": 23, + "Color3usv": 24, + "Color4b": 25, + "Color4bv": 26, + "Color4d": 27, + "Color4dv": 28, + "Color4f": 29, + "Color4fv": 30, + "Color4i": 31, + "Color4iv": 32, + "Color4s": 33, + "Color4sv": 34, + "Color4ub": 35, + "Color4ubv": 36, + "Color4ui": 37, + "Color4uiv": 38, + "Color4us": 39, + "Color4usv": 40, + "EdgeFlag": 41, + "EdgeFlagv": 42, + "End": 43, + "Indexd": 44, + "Indexdv": 45, + "Indexf": 46, + "Indexfv": 47, + "Indexi": 48, + "Indexiv": 49, + "Indexs": 50, + "Indexsv": 51, + "Normal3b": 52, + "Normal3bv": 53, + "Normal3d": 54, + "Normal3dv": 55, + "Normal3f": 56, + "Normal3fv": 57, + "Normal3i": 58, + "Normal3iv": 59, + "Normal3s": 60, + "Normal3sv": 61, + "RasterPos2d": 62, + "RasterPos2dv": 63, + "RasterPos2f": 64, + "RasterPos2fv": 65, + "RasterPos2i": 66, + "RasterPos2iv": 67, + "RasterPos2s": 68, + "RasterPos2sv": 69, + "RasterPos3d": 70, + "RasterPos3dv": 71, + "RasterPos3f": 72, + "RasterPos3fv": 73, + "RasterPos3i": 74, + "RasterPos3iv": 75, + "RasterPos3s": 76, + "RasterPos3sv": 77, + "RasterPos4d": 78, + "RasterPos4dv": 79, + "RasterPos4f": 80, + "RasterPos4fv": 81, + "RasterPos4i": 82, + "RasterPos4iv": 83, + "RasterPos4s": 84, + "RasterPos4sv": 85, + "Rectd": 86, + "Rectdv": 87, + "Rectf": 88, + "Rectfv": 89, + "Recti": 90, + "Rectiv": 91, + "Rects": 92, + "Rectsv": 93, + "TexCoord1d": 94, + "TexCoord1dv": 95, + "TexCoord1f": 96, + "TexCoord1fv": 97, + "TexCoord1i": 98, + "TexCoord1iv": 99, + "TexCoord1s": 100, + "TexCoord1sv": 101, + "TexCoord2d": 102, + "TexCoord2dv": 103, + "TexCoord2f": 104, + "TexCoord2fv": 105, + "TexCoord2i": 106, + "TexCoord2iv": 107, + "TexCoord2s": 108, + "TexCoord2sv": 109, + "TexCoord3d": 110, + "TexCoord3dv": 111, + "TexCoord3f": 112, + "TexCoord3fv": 113, + "TexCoord3i": 114, + "TexCoord3iv": 115, + "TexCoord3s": 116, + "TexCoord3sv": 117, + "TexCoord4d": 118, + "TexCoord4dv": 119, + "TexCoord4f": 120, + "TexCoord4fv": 121, + "TexCoord4i": 122, + "TexCoord4iv": 123, + "TexCoord4s": 124, + "TexCoord4sv": 125, + "Vertex2d": 126, + "Vertex2dv": 127, + "Vertex2f": 128, + "Vertex2fv": 129, + "Vertex2i": 130, + "Vertex2iv": 131, + "Vertex2s": 132, + "Vertex2sv": 133, + "Vertex3d": 134, + "Vertex3dv": 135, + "Vertex3f": 136, + "Vertex3fv": 137, + "Vertex3i": 138, + "Vertex3iv": 139, + "Vertex3s": 140, + "Vertex3sv": 141, + "Vertex4d": 142, + "Vertex4dv": 143, + "Vertex4f": 144, + "Vertex4fv": 145, + "Vertex4i": 146, + "Vertex4iv": 147, + "Vertex4s": 148, + "Vertex4sv": 149, + "ClipPlane": 150, + "ColorMaterial": 151, + "CullFace": 152, + "Fogf": 153, + "Fogfv": 154, + "Fogi": 155, + "Fogiv": 156, + "FrontFace": 157, + "Hint": 158, + "Lightf": 159, + "Lightfv": 160, + "Lighti": 161, + "Lightiv": 162, + "LightModelf": 163, + "LightModelfv": 164, + "LightModeli": 165, + "LightModeliv": 166, + "LineStipple": 167, + "LineWidth": 168, + "Materialf": 169, + "Materialfv": 170, + "Materiali": 171, + "Materialiv": 172, + "PointSize": 173, + "PolygonMode": 174, + "PolygonStipple": 175, + "Scissor": 176, + "ShadeModel": 177, + "TexParameterf": 178, + "TexParameterfv": 179, + "TexParameteri": 180, + "TexParameteriv": 181, + "TexImage1D": 182, + "TexImage2D": 183, + "TexEnvf": 184, + "TexEnvfv": 185, + "TexEnvi": 186, + "TexEnviv": 187, + "TexGend": 188, + "TexGendv": 189, + "TexGenf": 190, + "TexGenfv": 191, + "TexGeni": 192, + "TexGeniv": 193, + "FeedbackBuffer": 194, + "SelectBuffer": 195, + "RenderMode": 196, + "InitNames": 197, + "LoadName": 198, + "PassThrough": 199, + "PopName": 200, + "PushName": 201, + "DrawBuffer": 202, + "Clear": 203, + "ClearAccum": 204, + "ClearIndex": 205, + "ClearColor": 206, + "ClearStencil": 207, + "ClearDepth": 208, + "StencilMask": 209, + "ColorMask": 210, + "DepthMask": 211, + "IndexMask": 212, + "Accum": 213, + "Disable": 214, + "Enable": 215, + "Finish": 216, + "Flush": 217, + "PopAttrib": 218, + "PushAttrib": 219, + "Map1d": 220, + "Map1f": 221, + "Map2d": 222, + "Map2f": 223, + "MapGrid1d": 224, + "MapGrid1f": 225, + "MapGrid2d": 226, + "MapGrid2f": 227, + "EvalCoord1d": 228, + "EvalCoord1dv": 229, + "EvalCoord1f": 230, + "EvalCoord1fv": 231, + "EvalCoord2d": 232, + "EvalCoord2dv": 233, + "EvalCoord2f": 234, + "EvalCoord2fv": 235, + "EvalMesh1": 236, + "EvalPoint1": 237, + "EvalMesh2": 238, + "EvalPoint2": 239, + "AlphaFunc": 240, + "BlendFunc": 241, + "LogicOp": 242, + "StencilFunc": 243, + "StencilOp": 244, + "DepthFunc": 245, + "PixelZoom": 246, + "PixelTransferf": 247, + "PixelTransferi": 248, + "PixelStoref": 249, + "PixelStorei": 250, + "PixelMapfv": 251, + "PixelMapuiv": 252, + "PixelMapusv": 253, + "ReadBuffer": 254, + "CopyPixels": 255, + "ReadPixels": 256, + "DrawPixels": 257, + "GetBooleanv": 258, + "GetClipPlane": 259, + "GetDoublev": 260, + "GetError": 261, + "GetFloatv": 262, + "GetIntegerv": 263, + "GetLightfv": 264, + "GetLightiv": 265, + "GetMapdv": 266, + "GetMapfv": 267, + "GetMapiv": 268, + "GetMaterialfv": 269, + "GetMaterialiv": 270, + "GetPixelMapfv": 271, + "GetPixelMapuiv": 272, + "GetPixelMapusv": 273, + "GetPolygonStipple": 274, + "GetString": 275, + "GetTexEnvfv": 276, + "GetTexEnviv": 277, + "GetTexGendv": 278, + "GetTexGenfv": 279, + "GetTexGeniv": 280, + "GetTexImage": 281, + "GetTexParameterfv": 282, + "GetTexParameteriv": 283, + "GetTexLevelParameterfv": 284, + "GetTexLevelParameteriv": 285, + "IsEnabled": 286, + "IsList": 287, + "DepthRange": 288, + "Frustum": 289, + "LoadIdentity": 290, + "LoadMatrixf": 291, + "LoadMatrixd": 292, + "MatrixMode": 293, + "MultMatrixf": 294, + "MultMatrixd": 295, + "Ortho": 296, + "PopMatrix": 297, + "PushMatrix": 298, + "Rotated": 299, + "Rotatef": 300, + "Scaled": 301, + "Scalef": 302, + "Translated": 303, + "Translatef": 304, + "Viewport": 305, + "ArrayElement": 306, + "ColorPointer": 308, + "DisableClientState": 309, + "DrawArrays": 310, + "DrawElements": 311, + "EdgeFlagPointer": 312, + "EnableClientState": 313, + "GetPointerv": 329, + "IndexPointer": 314, + "InterleavedArrays": 317, + "NormalPointer": 318, + "TexCoordPointer": 320, + "VertexPointer": 321, + "PolygonOffset": 319, + "CopyTexImage1D": 323, + "CopyTexImage2D": 324, + "CopyTexSubImage1D": 325, + "CopyTexSubImage2D": 326, + "TexSubImage1D": 332, + "TexSubImage2D": 333, + "AreTexturesResident": 322, + "BindTexture": 307, + "DeleteTextures": 327, + "GenTextures": 328, + "IsTexture": 330, + "PrioritizeTextures": 331, + "Indexub": 315, + "Indexubv": 316, + "PopClientAttrib": 334, + "PushClientAttrib": 335, + "BlendColor": 336, + "BlendEquation": 337, + "DrawRangeElements": 338, + "ColorTable": 339, + "ColorTableParameterfv": 340, + "ColorTableParameteriv": 341, + "CopyColorTable": 342, + "GetColorTable": 343, + "GetColorTableParameterfv": 344, + "GetColorTableParameteriv": 345, + "ColorSubTable": 346, + "CopyColorSubTable": 347, + "ConvolutionFilter1D": 348, + "ConvolutionFilter2D": 349, + "ConvolutionParameterf": 350, + "ConvolutionParameterfv": 351, + "ConvolutionParameteri": 352, + "ConvolutionParameteriv": 353, + "CopyConvolutionFilter1D": 354, + "CopyConvolutionFilter2D": 355, + "GetConvolutionFilter": 356, + "GetConvolutionParameterfv": 357, + "GetConvolutionParameteriv": 358, + "GetSeparableFilter": 359, + "SeparableFilter2D": 360, + "GetHistogram": 361, + "GetHistogramParameterfv": 362, + "GetHistogramParameteriv": 363, + "GetMinmax": 364, + "GetMinmaxParameterfv": 365, + "GetMinmaxParameteriv": 366, + "Histogram": 367, + "Minmax": 368, + "ResetHistogram": 369, + "ResetMinmax": 370, + "TexImage3D": 371, + "TexSubImage3D": 372, + "CopyTexSubImage3D": 373, + "ActiveTexture": 374, + "ClientActiveTexture": 375, + "MultiTexCoord1d": 376, + "MultiTexCoord1dv": 377, + "MultiTexCoord1fARB": 378, + "MultiTexCoord1fvARB": 379, + "MultiTexCoord1i": 380, + "MultiTexCoord1iv": 381, + "MultiTexCoord1s": 382, + "MultiTexCoord1sv": 383, + "MultiTexCoord2d": 384, + "MultiTexCoord2dv": 385, + "MultiTexCoord2fARB": 386, + "MultiTexCoord2fvARB": 387, + "MultiTexCoord2i": 388, + "MultiTexCoord2iv": 389, + "MultiTexCoord2s": 390, + "MultiTexCoord2sv": 391, + "MultiTexCoord3d": 392, + "MultiTexCoord3dv": 393, + "MultiTexCoord3fARB": 394, + "MultiTexCoord3fvARB": 395, + "MultiTexCoord3i": 396, + "MultiTexCoord3iv": 397, + "MultiTexCoord3s": 398, + "MultiTexCoord3sv": 399, + "MultiTexCoord4d": 400, + "MultiTexCoord4dv": 401, + "MultiTexCoord4fARB": 402, + "MultiTexCoord4fvARB": 403, + "MultiTexCoord4i": 404, + "MultiTexCoord4iv": 405, + "MultiTexCoord4s": 406, + "MultiTexCoord4sv": 407 +} + +functions = [ + "Accum", + "ActiveTexture", + "ActiveTextureARB", + "AlphaFunc", + "AlphaFuncx", + "AreTexturesResident", + "AreTexturesResidentEXT", + "ArrayElement", + "ArrayElementEXT", + "AttachObjectARB", + "AttachShader", + "Begin", + "BeginConditionalRender", + "BeginConditionalRenderNV", + "BeginQuery", + "BeginQueryARB", + "BeginQueryIndexed", + "BeginTransformFeedback", + "BindAttribLocation", + "BindAttribLocationARB", + "BindBuffer", + "BindBufferARB", + "BindBufferBase", + "BindBufferRange", + "BindBuffersBase", + "BindBuffersRange", + "BindFragDataLocation", + "BindFragDataLocationEXT", + "BindFragDataLocationIndexed", + "BindFramebuffer", + "BindFramebufferEXT", + "BindImageTexture", + "BindImageTextures", + "BindProgramARB", + "BindRenderbuffer", + "BindRenderbufferEXT", + "BindSampler", + "BindSamplers", + "BindTexture", + "BindTextureEXT", + "BindTextures", + "BindTransformFeedback", + "BindVertexArray", + "BindVertexBuffer", + "BindVertexBuffers", + "Bitmap", + "BlendColor", + "BlendColorEXT", + "BlendEquation", + "BlendEquationEXT", + "BlendEquationiARB", + "BlendEquationSeparate", + "BlendEquationSeparateiARB", + "BlendFunc", + "BlendFunciARB", + "BlendFuncSeparate", + "BlendFuncSeparateEXT", + "BlendFuncSeparateiARB", + "BlitFramebuffer", + "BufferData", + "BufferDataARB", + "BufferStorage", + "BufferSubData", + "BufferSubDataARB", + "CallList", + "CallLists", + "CheckFramebufferStatus", + "CheckFramebufferStatusEXT", + "ClampColor", + "ClampColorARB", + "Clear", + "ClearAccum", + "ClearBufferData", + "ClearBufferfi", + "ClearBufferfv", + "ClearBufferiv", + "ClearBufferSubData", + "ClearBufferuiv", + "ClearColor", + "ClearColorIiEXT", + "ClearColorIuiEXT", + "ClearColorx", + "ClearDepth", + "ClearDepthf", + "ClearDepthx", + "ClearIndex", + "ClearStencil", + "ClearTexImage", + "ClearTexSubImage", + "ClientActiveTexture", + "ClientActiveTextureARB", + "ClientWaitSync", + "ClipPlane", + "ClipPlanef", + "ClipPlanex", + "Color3b", + "Color3bv", + "Color3d", + "Color3dv", + "Color3f", + "Color3fv", + "Color3i", + "Color3iv", + "Color3s", + "Color3sv", + "Color3ub", + "Color3ubv", + "Color3ui", + "Color3uiv", + "Color3us", + "Color3usv", + "Color4b", + "Color4bv", + "Color4d", + "Color4dv", + "Color4f", + "Color4fv", + "Color4i", + "Color4iv", + "Color4s", + "Color4sv", + "Color4ub", + "Color4ubv", + "Color4ui", + "Color4uiv", + "Color4us", + "Color4usv", + "Color4x", + "ColorMask", + "ColorMaski", + "ColorMaskIndexedEXT", + "ColorMaterial", + "ColorP3ui", + "ColorP3uiv", + "ColorP4ui", + "ColorP4uiv", + "ColorPointer", + "ColorPointerEXT", + "ColorSubTable", + "ColorTable", + "ColorTableParameterfv", + "ColorTableParameteriv", + "CompileShader", + "CompileShaderARB", + "CompressedTexImage1D", + "CompressedTexImage1DARB", + "CompressedTexImage2D", + "CompressedTexImage2DARB", + "CompressedTexImage3D", + "CompressedTexImage3DARB", + "CompressedTexSubImage1D", + "CompressedTexSubImage1DARB", + "CompressedTexSubImage2D", + "CompressedTexSubImage2DARB", + "CompressedTexSubImage3D", + "CompressedTexSubImage3DARB", + "ConvolutionFilter1D", + "ConvolutionFilter2D", + "ConvolutionParameterf", + "ConvolutionParameterfv", + "ConvolutionParameteri", + "ConvolutionParameteriv", + "CopyBufferSubData", + "CopyColorSubTable", + "CopyColorTable", + "CopyConvolutionFilter1D", + "CopyConvolutionFilter2D", + "CopyImageSubData", + "CopyPixels", + "CopyTexImage1D", + "CopyTexImage2D", + "CopyTexSubImage1D", + "CopyTexSubImage2D", + "CopyTexSubImage3D", + "CopyTexSubImage3DEXT", + "CreateProgram", + "CreateProgramObjectARB", + "CreateShader", + "CreateShaderObjectARB", + "CullFace", + "DebugMessageCallback", + "DebugMessageCallbackARB", + "DebugMessageControl", + "DebugMessageControlARB", + "DebugMessageInsert", + "DebugMessageInsertARB", + "DeleteBuffers", + "DeleteBuffersARB", + "DeleteFramebuffers", + "DeleteFramebuffersEXT", + "DeleteLists", + "DeleteObjectARB", + "DeleteProgram", + "DeleteProgramsARB", + "DeleteQueries", + "DeleteQueriesARB", + "DeleteRenderbuffers", + "DeleteRenderbuffersEXT", + "DeleteSamplers", + "DeleteShader", + "DeleteSync", + "DeleteTextures", + "DeleteTexturesEXT", + "DeleteTransformFeedbacks", + "DeleteVertexArrays", + "DepthFunc", + "DepthMask", + "DepthRange", + "DepthRangeArrayv", + "DepthRangef", + "DepthRangeIndexed", + "DepthRangex", + "DetachObjectARB", + "DetachShader", + "Disable", + "DisableClientState", + "Disablei", + "DisableIndexedEXT", + "DisableVertexAttribArray", + "DisableVertexAttribArrayARB", + "DispatchCompute", + "DispatchComputeIndirect", + "DrawArrays", + "DrawArraysEXT", + "DrawArraysIndirect", + "DrawArraysInstanced", + "DrawArraysInstancedARB", + "DrawArraysInstancedBaseInstance", + "DrawArraysInstancedEXT", + "DrawBuffer", + "DrawBuffers", + "DrawBuffersARB", + "DrawBuffersATI", + "DrawElements", + "DrawElementsBaseVertex", + "DrawElementsIndirect", + "DrawElementsInstanced", + "DrawElementsInstancedARB", + "DrawElementsInstancedBaseInstance", + "DrawElementsInstancedBaseVertex", + "DrawElementsInstancedBaseVertexBaseInstance", + "DrawElementsInstancedEXT", + "DrawPixels", + "DrawRangeElements", + "DrawRangeElementsBaseVertex", + "DrawRangeElementsEXT", + "DrawTransformFeedback", + "DrawTransformFeedbackInstanced", + "DrawTransformFeedbackStream", + "DrawTransformFeedbackStreamInstanced", + "EdgeFlag", + "EdgeFlagPointer", + "EdgeFlagPointerEXT", + "EdgeFlagv", + "Enable", + "EnableClientState", + "Enablei", + "EnableIndexedEXT", + "EnableVertexAttribArray", + "EnableVertexAttribArrayARB", + "End", + "EndConditionalRender", + "EndConditionalRenderNV", + "EndList", + "EndQuery", + "EndQueryARB", + "EndQueryIndexed", + "EndTransformFeedback", + "EvalCoord1d", + "EvalCoord1dv", + "EvalCoord1f", + "EvalCoord1fv", + "EvalCoord2d", + "EvalCoord2dv", + "EvalCoord2f", + "EvalCoord2fv", + "EvalMesh1", + "EvalMesh2", + "EvalPoint1", + "EvalPoint2", + "FeedbackBuffer", + "FenceSync", + "Finish", + "Flush", + "FlushMappedBufferRange", + "FogCoordd", + "FogCoorddEXT", + "FogCoorddv", + "FogCoorddvEXT", + "FogCoordf", + "FogCoordfEXT", + "FogCoordfv", + "FogCoordfvEXT", + "FogCoordPointer", + "FogCoordPointerEXT", + "Fogf", + "Fogfv", + "Fogi", + "Fogiv", + "Fogx", + "Fogxv", + "FramebufferRenderbuffer", + "FramebufferRenderbufferEXT", + "FramebufferTexture", + "FramebufferTexture1D", + "FramebufferTexture1DEXT", + "FramebufferTexture2D", + "FramebufferTexture2DEXT", + "FramebufferTexture3D", + "FramebufferTexture3DEXT", + "FramebufferTextureARB", + "FramebufferTextureLayer", + "FramebufferTextureLayerARB", + "FramebufferTextureLayerEXT", + "FrontFace", + "Frustum", + "Frustumf", + "Frustumx", + "GenBuffers", + "GenBuffersARB", + "GenerateMipmap", + "GenerateMipmapEXT", + "GenFramebuffers", + "GenFramebuffersEXT", + "GenLists", + "GenProgramsARB", + "GenQueries", + "GenQueriesARB", + "GenRenderbuffers", + "GenRenderbuffersEXT", + "GenSamplers", + "GenTextures", + "GenTexturesEXT", + "GenTransformFeedbacks", + "GenVertexArrays", + "GetActiveAtomicCounterBufferiv", + "GetActiveAttrib", + "GetActiveAttribARB", + "GetActiveUniform", + "GetActiveUniformARB", + "GetActiveUniformBlockiv", + "GetActiveUniformBlockName", + "GetActiveUniformName", + "GetActiveUniformsiv", + "GetAttachedObjectsARB", + "GetAttachedShaders", + "GetAttribLocation", + "GetAttribLocationARB", + "GetBooleanIndexedvEXT", + "GetBooleani_v", + "GetBooleanv", + "GetBufferParameteri64v", + "GetBufferParameteriv", + "GetBufferParameterivARB", + "GetBufferPointerv", + "GetBufferPointervARB", + "GetBufferSubData", + "GetBufferSubDataARB", + "GetClipPlane", + "GetClipPlanef", + "GetClipPlanex", + "GetColorTable", + "GetColorTableParameterfv", + "GetColorTableParameteriv", + "GetCompressedTexImage", + "GetCompressedTexImageARB", + "GetConvolutionFilter", + "GetConvolutionParameterfv", + "GetConvolutionParameteriv", + "GetDebugMessageLog", + "GetDebugMessageLogARB", + "GetDoublei_v", + "GetDoublev", + "GetError", + "GetFixedv", + "GetFloati_v", + "GetFloatv", + "GetFragDataIndex", + "GetFragDataLocation", + "GetFragDataLocationEXT", + "GetFramebufferAttachmentParameteriv", + "GetFramebufferAttachmentParameterivEXT", + "GetGraphicsResetStatusARB", + "GetHandleARB", + "GetHistogram", + "GetHistogramParameterfv", + "GetHistogramParameteriv", + "GetInfoLogARB", + "GetInteger64i_v", + "GetInteger64v", + "GetIntegerIndexedvEXT", + "GetIntegeri_v", + "GetIntegerv", + "GetLightfv", + "GetLightiv", + "GetLightxv", + "GetMapdv", + "GetMapfv", + "GetMapiv", + "GetMaterialfv", + "GetMaterialiv", + "GetMaterialxv", + "GetMinmax", + "GetMinmaxParameterfv", + "GetMinmaxParameteriv", + "GetMultisamplefv", + "GetnColorTableARB", + "GetnCompressedTexImageARB", + "GetnConvolutionFilterARB", + "GetnHistogramARB", + "GetnMapdvARB", + "GetnMapfvARB", + "GetnMapivARB", + "GetnMinmaxARB", + "GetnPixelMapfvARB", + "GetnPixelMapuivARB", + "GetnPixelMapusvARB", + "GetnPolygonStippleARB", + "GetnSeparableFilterARB", + "GetnTexImageARB", + "GetnUniformdvARB", + "GetnUniformfvARB", + "GetnUniformivARB", + "GetnUniformuivARB", + "GetObjectLabel", + "GetObjectParameterfvARB", + "GetObjectParameterivARB", + "GetObjectPtrLabel", + "GetPixelMapfv", + "GetPixelMapuiv", + "GetPixelMapusv", + "GetPointerv", + "GetPointervEXT", + "GetPolygonStipple", + "GetProgramBinary", + "GetProgramEnvParameterdvARB", + "GetProgramEnvParameterfvARB", + "GetProgramInfoLog", + "GetProgramiv", + "GetProgramivARB", + "GetProgramLocalParameterdvARB", + "GetProgramLocalParameterfvARB", + "GetProgramStringARB", + "GetQueryIndexediv", + "GetQueryiv", + "GetQueryivARB", + "GetQueryObjectiv", + "GetQueryObjectivARB", + "GetQueryObjectuiv", + "GetQueryObjectuivARB", + "GetRenderbufferParameteriv", + "GetRenderbufferParameterivEXT", + "GetSamplerParameterfv", + "GetSamplerParameterIiv", + "GetSamplerParameterIuiv", + "GetSamplerParameteriv", + "GetSeparableFilter", + "GetShaderInfoLog", + "GetShaderiv", + "GetShaderPrecisionFormat", + "GetShaderSource", + "GetShaderSourceARB", + "GetString", + "GetStringi", + "GetSynciv", + "GetTexEnvfv", + "GetTexEnviv", + "GetTexEnvxv", + "GetTexGendv", + "GetTexGenfv", + "GetTexGeniv", + "GetTexImage", + "GetTexLevelParameterfv", + "GetTexLevelParameteriv", + "GetTexParameterfv", + "GetTexParameterIiv", + "GetTexParameterIivEXT", + "GetTexParameterIuiv", + "GetTexParameterIuivEXT", + "GetTexParameteriv", + "GetTexParameterxv", + "GetTransformFeedbackVarying", + "GetUniformBlockIndex", + "GetUniformfv", + "GetUniformfvARB", + "GetUniformIndices", + "GetUniformiv", + "GetUniformivARB", + "GetUniformLocation", + "GetUniformLocationARB", + "GetUniformuiv", + "GetUniformuivEXT", + "GetVertexAttribdv", + "GetVertexAttribdvARB", + "GetVertexAttribfv", + "GetVertexAttribfvARB", + "GetVertexAttribIiv", + "GetVertexAttribIivEXT", + "GetVertexAttribIuiv", + "GetVertexAttribIuivEXT", + "GetVertexAttribiv", + "GetVertexAttribivARB", + "GetVertexAttribPointerv", + "GetVertexAttribPointervARB", + "Hint", + "Histogram", + "Indexd", + "Indexdv", + "Indexf", + "Indexfv", + "Indexi", + "Indexiv", + "IndexMask", + "IndexPointer", + "IndexPointerEXT", + "Indexs", + "Indexsv", + "Indexub", + "Indexubv", + "InitNames", + "InterleavedArrays", + "InvalidateBufferData", + "InvalidateBufferSubData", + "InvalidateFramebuffer", + "InvalidateSubFramebuffer", + "InvalidateTexImage", + "InvalidateTexSubImage", + "IsBuffer", + "IsBufferARB", + "IsEnabled", + "IsEnabledi", + "IsEnabledIndexedEXT", + "IsFramebuffer", + "IsFramebufferEXT", + "IsList", + "IsProgram", + "IsProgramARB", + "IsQuery", + "IsQueryARB", + "IsRenderbuffer", + "IsRenderbufferEXT", + "IsSampler", + "IsShader", + "IsSync", + "IsTexture", + "IsTextureEXT", + "IsTransformFeedback", + "IsVertexArray", + "Lightf", + "Lightfv", + "Lighti", + "Lightiv", + "LightModelf", + "LightModelfv", + "LightModeli", + "LightModeliv", + "LightModelx", + "LightModelxv", + "Lightx", + "Lightxv", + "LineStipple", + "LineWidth", + "LineWidthx", + "LinkProgram", + "LinkProgramARB", + "ListBase", + "LoadIdentity", + "LoadMatrixd", + "LoadMatrixf", + "LoadMatrixx", + "LoadName", + "LoadTransposeMatrixd", + "LoadTransposeMatrixdARB", + "LoadTransposeMatrixf", + "LoadTransposeMatrixfARB", + "LockArraysEXT", + "LogicOp", + "Map1d", + "Map1f", + "Map2d", + "Map2f", + "MapBuffer", + "MapBufferARB", + "MapBufferRange", + "MapGrid1d", + "MapGrid1f", + "MapGrid2d", + "MapGrid2f", + "Materialf", + "Materialfv", + "Materiali", + "Materialiv", + "Materialx", + "Materialxv", + "MatrixMode", + "MemoryBarrier", + "Minmax", + "MinSampleShading", + "MinSampleShadingARB", + "MultiDrawArrays", + "MultiDrawArraysEXT", + "MultiDrawArraysIndirect", + "MultiDrawElements", + "MultiDrawElementsBaseVertex", + "MultiDrawElementsEXT", + "MultiDrawElementsIndirect", + "MultiTexCoord1d", + "MultiTexCoord1dARB", + "MultiTexCoord1dv", + "MultiTexCoord1dvARB", + "MultiTexCoord1f", + "MultiTexCoord1fARB", + "MultiTexCoord1fv", + "MultiTexCoord1fvARB", + "MultiTexCoord1i", + "MultiTexCoord1iARB", + "MultiTexCoord1iv", + "MultiTexCoord1ivARB", + "MultiTexCoord1s", + "MultiTexCoord1sARB", + "MultiTexCoord1sv", + "MultiTexCoord1svARB", + "MultiTexCoord2d", + "MultiTexCoord2dARB", + "MultiTexCoord2dv", + "MultiTexCoord2dvARB", + "MultiTexCoord2f", + "MultiTexCoord2fARB", + "MultiTexCoord2fv", + "MultiTexCoord2fvARB", + "MultiTexCoord2i", + "MultiTexCoord2iARB", + "MultiTexCoord2iv", + "MultiTexCoord2ivARB", + "MultiTexCoord2s", + "MultiTexCoord2sARB", + "MultiTexCoord2sv", + "MultiTexCoord2svARB", + "MultiTexCoord3d", + "MultiTexCoord3dARB", + "MultiTexCoord3dv", + "MultiTexCoord3dvARB", + "MultiTexCoord3f", + "MultiTexCoord3fARB", + "MultiTexCoord3fv", + "MultiTexCoord3fvARB", + "MultiTexCoord3i", + "MultiTexCoord3iARB", + "MultiTexCoord3iv", + "MultiTexCoord3ivARB", + "MultiTexCoord3s", + "MultiTexCoord3sARB", + "MultiTexCoord3sv", + "MultiTexCoord3svARB", + "MultiTexCoord4d", + "MultiTexCoord4dARB", + "MultiTexCoord4dv", + "MultiTexCoord4dvARB", + "MultiTexCoord4f", + "MultiTexCoord4fARB", + "MultiTexCoord4fv", + "MultiTexCoord4fvARB", + "MultiTexCoord4i", + "MultiTexCoord4iARB", + "MultiTexCoord4iv", + "MultiTexCoord4ivARB", + "MultiTexCoord4s", + "MultiTexCoord4sARB", + "MultiTexCoord4sv", + "MultiTexCoord4svARB", + "MultiTexCoord4x", + "MultiTexCoordP1ui", + "MultiTexCoordP1uiv", + "MultiTexCoordP2ui", + "MultiTexCoordP2uiv", + "MultiTexCoordP3ui", + "MultiTexCoordP3uiv", + "MultiTexCoordP4ui", + "MultiTexCoordP4uiv", + "MultMatrixd", + "MultMatrixf", + "MultMatrixx", + "MultTransposeMatrixd", + "MultTransposeMatrixdARB", + "MultTransposeMatrixf", + "MultTransposeMatrixfARB", + "NewList", + "Normal3b", + "Normal3bv", + "Normal3d", + "Normal3dv", + "Normal3f", + "Normal3fv", + "Normal3i", + "Normal3iv", + "Normal3s", + "Normal3sv", + "Normal3x", + "NormalP3ui", + "NormalP3uiv", + "NormalPointer", + "NormalPointerEXT", + "ObjectLabel", + "ObjectPtrLabel", + "Ortho", + "Orthof", + "Orthox", + "PassThrough", + "PauseTransformFeedback", + "PixelMapfv", + "PixelMapuiv", + "PixelMapusv", + "PixelStoref", + "PixelStorei", + "PixelTransferf", + "PixelTransferi", + "PixelZoom", + "PointParameterf", + "PointParameterfARB", + "PointParameterfEXT", + "PointParameterfv", + "PointParameterfvARB", + "PointParameterfvEXT", + "PointParameteri", + "PointParameteriv", + "PointParameterx", + "PointParameterxv", + "PointSize", + "PointSizePointerOES", + "PointSizex", + "PolygonMode", + "PolygonOffset", + "PolygonOffsetx", + "PolygonStipple", + "PopAttrib", + "PopClientAttrib", + "PopDebugGroup", + "PopMatrix", + "PopName", + "PrimitiveRestartIndex", + "PrimitiveRestartIndexNV", + "PrimitiveRestartNV", + "PrioritizeTextures", + "PrioritizeTexturesEXT", + "ProgramBinary", + "ProgramEnvParameter4dARB", + "ProgramEnvParameter4dvARB", + "ProgramEnvParameter4fARB", + "ProgramEnvParameter4fvARB", + "ProgramLocalParameter4dARB", + "ProgramLocalParameter4dvARB", + "ProgramLocalParameter4fARB", + "ProgramLocalParameter4fvARB", + "ProgramParameteri", + "ProgramParameteriARB", + "ProgramStringARB", + "ProvokingVertex", + "ProvokingVertexEXT", + "PushAttrib", + "PushClientAttrib", + "PushDebugGroup", + "PushMatrix", + "PushName", + "RasterPos2d", + "RasterPos2dv", + "RasterPos2f", + "RasterPos2fv", + "RasterPos2i", + "RasterPos2iv", + "RasterPos2s", + "RasterPos2sv", + "RasterPos3d", + "RasterPos3dv", + "RasterPos3f", + "RasterPos3fv", + "RasterPos3i", + "RasterPos3iv", + "RasterPos3s", + "RasterPos3sv", + "RasterPos4d", + "RasterPos4dv", + "RasterPos4f", + "RasterPos4fv", + "RasterPos4i", + "RasterPos4iv", + "RasterPos4s", + "RasterPos4sv", + "ReadBuffer", + "ReadnPixelsARB", + "ReadPixels", + "Rectd", + "Rectdv", + "Rectf", + "Rectfv", + "Recti", + "Rectiv", + "Rects", + "Rectsv", + "ReleaseShaderCompiler", + "RenderbufferStorage", + "RenderbufferStorageEXT", + "RenderbufferStorageMultisample", + "RenderbufferStorageMultisampleEXT", + "RenderMode", + "ResetHistogram", + "ResetMinmax", + "ResumeTransformFeedback", + "Rotated", + "Rotatef", + "Rotatex", + "SampleCoverage", + "SampleCoverageARB", + "SampleCoveragex", + "SampleMaski", + "SamplerParameterf", + "SamplerParameterfv", + "SamplerParameteri", + "SamplerParameterIiv", + "SamplerParameterIuiv", + "SamplerParameteriv", + "Scaled", + "Scalef", + "Scalex", + "Scissor", + "ScissorArrayv", + "ScissorIndexed", + "ScissorIndexedv", + "SecondaryColor3b", + "SecondaryColor3bEXT", + "SecondaryColor3bv", + "SecondaryColor3bvEXT", + "SecondaryColor3d", + "SecondaryColor3dEXT", + "SecondaryColor3dv", + "SecondaryColor3dvEXT", + "SecondaryColor3f", + "SecondaryColor3fEXT", + "SecondaryColor3fv", + "SecondaryColor3fvEXT", + "SecondaryColor3i", + "SecondaryColor3iEXT", + "SecondaryColor3iv", + "SecondaryColor3ivEXT", + "SecondaryColor3s", + "SecondaryColor3sEXT", + "SecondaryColor3sv", + "SecondaryColor3svEXT", + "SecondaryColor3ub", + "SecondaryColor3ubEXT", + "SecondaryColor3ubv", + "SecondaryColor3ubvEXT", + "SecondaryColor3ui", + "SecondaryColor3uiEXT", + "SecondaryColor3uiv", + "SecondaryColor3uivEXT", + "SecondaryColor3us", + "SecondaryColor3usEXT", + "SecondaryColor3usv", + "SecondaryColor3usvEXT", + "SecondaryColorP3ui", + "SecondaryColorP3uiv", + "SecondaryColorPointer", + "SecondaryColorPointerEXT", + "SelectBuffer", + "SeparableFilter2D", + "ShadeModel", + "ShaderBinary", + "ShaderSource", + "ShaderSourceARB", + "StencilFunc", + "StencilFuncSeparate", + "StencilMask", + "StencilMaskSeparate", + "StencilOp", + "StencilOpSeparate", + "TexBuffer", + "TexBufferARB", + "TexBufferRange", + "TexCoord1d", + "TexCoord1dv", + "TexCoord1f", + "TexCoord1fv", + "TexCoord1i", + "TexCoord1iv", + "TexCoord1s", + "TexCoord1sv", + "TexCoord2d", + "TexCoord2dv", + "TexCoord2f", + "TexCoord2fv", + "TexCoord2i", + "TexCoord2iv", + "TexCoord2s", + "TexCoord2sv", + "TexCoord3d", + "TexCoord3dv", + "TexCoord3f", + "TexCoord3fv", + "TexCoord3i", + "TexCoord3iv", + "TexCoord3s", + "TexCoord3sv", + "TexCoord4d", + "TexCoord4dv", + "TexCoord4f", + "TexCoord4fv", + "TexCoord4i", + "TexCoord4iv", + "TexCoord4s", + "TexCoord4sv", + "TexCoordP1ui", + "TexCoordP1uiv", + "TexCoordP2ui", + "TexCoordP2uiv", + "TexCoordP3ui", + "TexCoordP3uiv", + "TexCoordP4ui", + "TexCoordP4uiv", + "TexCoordPointer", + "TexCoordPointerEXT", + "TexEnvf", + "TexEnvfv", + "TexEnvi", + "TexEnviv", + "TexEnvx", + "TexEnvxv", + "TexGend", + "TexGendv", + "TexGenf", + "TexGenfv", + "TexGeni", + "TexGeniv", + "TexImage1D", + "TexImage2D", + "TexImage2DMultisample", + "TexImage3D", + "TexImage3DEXT", + "TexImage3DMultisample", + "TexParameterf", + "TexParameterfv", + "TexParameteri", + "TexParameterIiv", + "TexParameterIivEXT", + "TexParameterIuiv", + "TexParameterIuivEXT", + "TexParameteriv", + "TexParameterx", + "TexParameterxv", + "TexStorage1D", + "TexStorage2D", + "TexStorage2DMultisample", + "TexStorage3D", + "TexStorage3DMultisample", + "TexSubImage1D", + "TexSubImage2D", + "TexSubImage3D", + "TexSubImage3DEXT", + "TextureBarrierNV", + "TextureStorage1DEXT", + "TextureStorage2DEXT", + "TextureStorage3DEXT", + "TextureView", + "TransformFeedbackVaryings", + "Translated", + "Translatef", + "Translatex", + "Uniform1f", + "Uniform1fARB", + "Uniform1fv", + "Uniform1fvARB", + "Uniform1i", + "Uniform1iARB", + "Uniform1iv", + "Uniform1ivARB", + "Uniform1ui", + "Uniform1uiEXT", + "Uniform1uiv", + "Uniform1uivEXT", + "Uniform2f", + "Uniform2fARB", + "Uniform2fv", + "Uniform2fvARB", + "Uniform2i", + "Uniform2iARB", + "Uniform2iv", + "Uniform2ivARB", + "Uniform2ui", + "Uniform2uiEXT", + "Uniform2uiv", + "Uniform2uivEXT", + "Uniform3f", + "Uniform3fARB", + "Uniform3fv", + "Uniform3fvARB", + "Uniform3i", + "Uniform3iARB", + "Uniform3iv", + "Uniform3ivARB", + "Uniform3ui", + "Uniform3uiEXT", + "Uniform3uiv", + "Uniform3uivEXT", + "Uniform4f", + "Uniform4fARB", + "Uniform4fv", + "Uniform4fvARB", + "Uniform4i", + "Uniform4iARB", + "Uniform4iv", + "Uniform4ivARB", + "Uniform4ui", + "Uniform4uiEXT", + "Uniform4uiv", + "Uniform4uivEXT", + "UniformBlockBinding", + "UniformMatrix2fv", + "UniformMatrix2fvARB", + "UniformMatrix2x3fv", + "UniformMatrix2x4fv", + "UniformMatrix3fv", + "UniformMatrix3fvARB", + "UniformMatrix3x2fv", + "UniformMatrix3x4fv", + "UniformMatrix4fv", + "UniformMatrix4fvARB", + "UniformMatrix4x2fv", + "UniformMatrix4x3fv", + "UnlockArraysEXT", + "UnmapBuffer", + "UnmapBufferARB", + "UseProgram", + "UseProgramObjectARB", + "ValidateProgram", + "ValidateProgramARB", + "Vertex2d", + "Vertex2dv", + "Vertex2f", + "Vertex2fv", + "Vertex2i", + "Vertex2iv", + "Vertex2s", + "Vertex2sv", + "Vertex3d", + "Vertex3dv", + "Vertex3f", + "Vertex3fv", + "Vertex3i", + "Vertex3iv", + "Vertex3s", + "Vertex3sv", + "Vertex4d", + "Vertex4dv", + "Vertex4f", + "Vertex4fv", + "Vertex4i", + "Vertex4iv", + "Vertex4s", + "Vertex4sv", + "VertexAttrib1d", + "VertexAttrib1dARB", + "VertexAttrib1dv", + "VertexAttrib1dvARB", + "VertexAttrib1f", + "VertexAttrib1fARB", + "VertexAttrib1fv", + "VertexAttrib1fvARB", + "VertexAttrib1s", + "VertexAttrib1sARB", + "VertexAttrib1sv", + "VertexAttrib1svARB", + "VertexAttrib2d", + "VertexAttrib2dARB", + "VertexAttrib2dv", + "VertexAttrib2dvARB", + "VertexAttrib2f", + "VertexAttrib2fARB", + "VertexAttrib2fv", + "VertexAttrib2fvARB", + "VertexAttrib2s", + "VertexAttrib2sARB", + "VertexAttrib2sv", + "VertexAttrib2svARB", + "VertexAttrib3d", + "VertexAttrib3dARB", + "VertexAttrib3dv", + "VertexAttrib3dvARB", + "VertexAttrib3f", + "VertexAttrib3fARB", + "VertexAttrib3fv", + "VertexAttrib3fvARB", + "VertexAttrib3s", + "VertexAttrib3sARB", + "VertexAttrib3sv", + "VertexAttrib3svARB", + "VertexAttrib4bv", + "VertexAttrib4bvARB", + "VertexAttrib4d", + "VertexAttrib4dARB", + "VertexAttrib4dv", + "VertexAttrib4dvARB", + "VertexAttrib4f", + "VertexAttrib4fARB", + "VertexAttrib4fv", + "VertexAttrib4fvARB", + "VertexAttrib4iv", + "VertexAttrib4ivARB", + "VertexAttrib4Nbv", + "VertexAttrib4NbvARB", + "VertexAttrib4Niv", + "VertexAttrib4NivARB", + "VertexAttrib4Nsv", + "VertexAttrib4NsvARB", + "VertexAttrib4Nub", + "VertexAttrib4NubARB", + "VertexAttrib4Nubv", + "VertexAttrib4NubvARB", + "VertexAttrib4Nuiv", + "VertexAttrib4NuivARB", + "VertexAttrib4Nusv", + "VertexAttrib4NusvARB", + "VertexAttrib4s", + "VertexAttrib4sARB", + "VertexAttrib4sv", + "VertexAttrib4svARB", + "VertexAttrib4ubv", + "VertexAttrib4ubvARB", + "VertexAttrib4uiv", + "VertexAttrib4uivARB", + "VertexAttrib4usv", + "VertexAttrib4usvARB", + "VertexAttribBinding", + "VertexAttribDivisor", + "VertexAttribDivisorARB", + "VertexAttribFormat", + "VertexAttribI1i", + "VertexAttribI1iEXT", + "VertexAttribI1iv", + "VertexAttribI1ivEXT", + "VertexAttribI1ui", + "VertexAttribI1uiEXT", + "VertexAttribI1uiv", + "VertexAttribI1uivEXT", + "VertexAttribI2i", + "VertexAttribI2iEXT", + "VertexAttribI2iv", + "VertexAttribI2ivEXT", + "VertexAttribI2ui", + "VertexAttribI2uiEXT", + "VertexAttribI2uiv", + "VertexAttribI2uivEXT", + "VertexAttribI3i", + "VertexAttribI3iEXT", + "VertexAttribI3iv", + "VertexAttribI3ivEXT", + "VertexAttribI3ui", + "VertexAttribI3uiEXT", + "VertexAttribI3uiv", + "VertexAttribI3uivEXT", + "VertexAttribI4bv", + "VertexAttribI4bvEXT", + "VertexAttribI4i", + "VertexAttribI4iEXT", + "VertexAttribI4iv", + "VertexAttribI4ivEXT", + "VertexAttribI4sv", + "VertexAttribI4svEXT", + "VertexAttribI4ubv", + "VertexAttribI4ubvEXT", + "VertexAttribI4ui", + "VertexAttribI4uiEXT", + "VertexAttribI4uiv", + "VertexAttribI4uivEXT", + "VertexAttribI4usv", + "VertexAttribI4usvEXT", + "VertexAttribIFormat", + "VertexAttribIPointer", + "VertexAttribIPointerEXT", + "VertexAttribLFormat", + "VertexAttribP1ui", + "VertexAttribP1uiv", + "VertexAttribP2ui", + "VertexAttribP2uiv", + "VertexAttribP3ui", + "VertexAttribP3uiv", + "VertexAttribP4ui", + "VertexAttribP4uiv", + "VertexAttribPointer", + "VertexAttribPointerARB", + "VertexBindingDivisor", + "VertexP2ui", + "VertexP2uiv", + "VertexP3ui", + "VertexP3uiv", + "VertexP4ui", + "VertexP4uiv", + "VertexPointer", + "VertexPointerEXT", + "Viewport", + "ViewportArrayv", + "ViewportIndexedf", + "ViewportIndexedfv", + "WaitSync", + "WindowPos2d", + "WindowPos2dARB", + "WindowPos2dv", + "WindowPos2dvARB", + "WindowPos2f", + "WindowPos2fARB", + "WindowPos2fv", + "WindowPos2fvARB", + "WindowPos2i", + "WindowPos2iARB", + "WindowPos2iv", + "WindowPos2ivARB", + "WindowPos2s", + "WindowPos2sARB", + "WindowPos2sv", + "WindowPos2svARB", + "WindowPos3d", + "WindowPos3dARB", + "WindowPos3dv", + "WindowPos3dvARB", + "WindowPos3f", + "WindowPos3fARB", + "WindowPos3fv", + "WindowPos3fvARB", + "WindowPos3i", + "WindowPos3iARB", + "WindowPos3iv", + "WindowPos3ivARB", + "WindowPos3s", + "WindowPos3sARB", + "WindowPos3sv", + "WindowPos3svARB", +] + +"""Functions that need dispatch slots but are not used + +Some of these functions may have GLX protocol support (for +indirect-rendering). Other were used in previous versions of Mesa. They keep +slots in the dispatch table so that newer versions of libGL can still be used +with older drivers.""" +unused_functions = [ + # SGIS_multisample + "SampleMaskSGIS", + "SamplePatternSGIS", + + # NV_vertex_program + "AreProgramsResidentNV", + "ExecuteProgramNV", + "GetProgramParameterdvNV", + "GetProgramParameterfvNV", + "GetProgramivNV", + "GetProgramStringNV", + "GetTrackMatrixivNV", + "GetVertexAttribdvNV", + "GetVertexAttribfvNV", + "GetVertexAttribivNV", + "LoadProgramNV", + "ProgramParameters4dvNV", + "ProgramParameters4fvNV", + "RequestResidentProgramsNV", + "TrackMatrixNV", + "VertexAttribPointerNV", + + # MESA_resize_buffers + "ResizeBuffersMESA", + + # ATI_envmap_bumpmap + "TexBumpParameterfvATI", + "TexBumpParameterivATI", + "GetTexBumpParameterfvATI", + "GetTexBumpParameterivATI", + + # NV_fragment_program + "ProgramNamedParameter4fNV", + "ProgramNamedParameter4dNV", + "ProgramNamedParameter4fvNV", + "ProgramNamedParameter4dvNV", + "GetProgramNamedParameterfvNV", + "GetProgramNamedParameterdvNV", + + # APPLE_flush_buffer_range + "BufferParameteriAPPLE", + "FlushMappedBufferRangeAPPLE", + + # EXT_separate_shader_objects + "UseShaderProgramEXT", + "ActiveProgramEXT", + "CreateShaderProgramEXT", +] -- cgit v1.2.3