mesa: fix make check for ARB_texture_gather
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 3 Oct 2013 01:10:08 +0000 (14:10 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 3 Oct 2013 08:38:48 +0000 (21:38 +1300)
Clean up inconsistency in enum decoration:
- Use the undecorated enums where possible.
- MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB remains decorated, since it
  has no undecorated equivalent in GL4.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70054
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mapi/glapi/gen/ARB_texture_gather.xml
src/mapi/glapi/gen/Makefile.am
src/mesa/main/get_hash_params.py
src/mesa/main/tests/enum_strings.cpp

index 01c7b88ff66760b17b5b5b3af50111ea43d3dea8..41714aced87f3763790e6c4763aa1b28e006d3c6 100644 (file)
@@ -5,8 +5,10 @@
 
 <category name="GL_ARB_texture_gather" number="72">
 
- <enum name="MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB" value="0x8E5E"/>
- <enum name="MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB" value="0x8E5F"/>
+ <enum name="MIN_PROGRAM_TEXTURE_GATHER_OFFSET" value="0x8E5E"/>
+ <enum name="MAX_PROGRAM_TEXTURE_GATHER_OFFSET" value="0x8E5F"/>
+
+ <!-- This exists only in the ARB extension; not in GL4 -->
  <enum name="MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB" value="0x8F9F"/>
 
 </category>
index 9b9b99505f62487b04414f0187fd7a9939a01280..6bb2f1ec7e38efa4ba5307486b712a6fba1a9cf9 100644 (file)
@@ -111,6 +111,7 @@ API_XML = \
        ARB_texture_buffer_range.xml \
        ARB_texture_compression_rgtc.xml \
        ARB_texture_float.xml \
+       ARB_texture_gather.xml \
        ARB_texture_rg.xml \
        ARB_texture_storage.xml \
        ARB_vertex_array_object.xml \
index 29cad26ff28eddb474987622aaf08d9fdc20d952..e80a23c111ab596d644af1c667a048d5d56da537 100644 (file)
@@ -718,8 +718,8 @@ descriptor=[
   [ "TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB", "LOC_CUSTOM, TYPE_INT, TEXTURE_CUBE_ARRAY_INDEX, extra_ARB_texture_cube_map_array" ],
 
 # GL_ARB_texture_gather
-  [ "MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB", "CONTEXT_INT(Const.MinProgramTextureGatherOffset), extra_ARB_texture_gather"],
-  [ "MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB", "CONTEXT_INT(Const.MaxProgramTextureGatherOffset), extra_ARB_texture_gather"],
+  [ "MIN_PROGRAM_TEXTURE_GATHER_OFFSET", "CONTEXT_INT(Const.MinProgramTextureGatherOffset), extra_ARB_texture_gather"],
+  [ "MAX_PROGRAM_TEXTURE_GATHER_OFFSET", "CONTEXT_INT(Const.MaxProgramTextureGatherOffset), extra_ARB_texture_gather"],
   [ "MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB", "CONTEXT_INT(Const.MaxProgramTextureGatherComponents), extra_ARB_texture_gather"],
 
 ]},
index 6994f79fee511b29da652a912b49c50101b3a171..8a3103b635f6cca9accb1df3b0c677e6756a78ef 100644 (file)
@@ -1789,7 +1789,7 @@ const struct enum_info everything[] = {
    { 0x8F9C, "GL_SIGNED_NORMALIZED" },
    { 0x8F9D, "GL_PRIMITIVE_RESTART" },
    { 0x8F9E, "GL_PRIMITIVE_RESTART_INDEX" },
-   { 0x8F9F, "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS" },
+   { 0x8F9F, "GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB" },
    { 0x906F, "GL_RGB10_A2UI" },
    { 0x9100, "GL_TEXTURE_2D_MULTISAMPLE" },
    { 0x9101, "GL_PROXY_TEXTURE_2D_MULTISAMPLE" },