glapi: add ARB_texture_rg
authorDylan Noblesmith <nobled@dreamwidth.org>
Mon, 16 Jan 2012 21:41:54 +0000 (21:41 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Mon, 26 Mar 2012 21:28:25 +0000 (21:28 +0000)
Noticed it was missing based on the lack of a descriptive enum
name from this bug's error message:

https://bugs.freedesktop.org/show_bug.cgi?id=44039

This moves two enums out of GL3x.xml. Though since this and
GL_ARB_texture_compression_rgtc are both strict subsets of GL3,
both extensions should have had all their enums in that file
to begin with, not just two of them.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mapi/glapi/gen/ARB_texture_rg.xml [new file with mode: 0644]
src/mapi/glapi/gen/GL3x.xml
src/mapi/glapi/gen/Makefile
src/mapi/glapi/gen/gl_API.xml

diff --git a/src/mapi/glapi/gen/ARB_texture_rg.xml b/src/mapi/glapi/gen/ARB_texture_rg.xml
new file mode 100644 (file)
index 0000000..40c0ebf
--- /dev/null
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
+
+<OpenGLAPI>
+
+<category name="GL_ARB_texture_rg" number="53">
+
+    <enum name="COMPRESSED_RED"            value = "0x8225"/>
+    <enum name="COMPRESSED_RG"             value = "0x8226"/>
+
+    <enum name="RG"                        value = "0x8227"/>
+    <enum name="RG_INTEGER"                value = "0x8228"/>
+
+    <enum name="R8"                        value = "0x8229"/>
+    <enum name="R16"                       value = "0x822A"/>
+
+    <enum name="RG8"                       value = "0x822B"/>
+    <enum name="RG16"                      value = "0x822C"/>
+
+    <enum name="R16F"                      value = "0x822D"/>
+    <enum name="R32F"                      value = "0x822E"/>
+
+    <enum name="RG16F"                     value = "0x822F"/>
+    <enum name="RG32F"                     value = "0x8230"/>
+
+    <enum name="R8I"                       value = "0x8231"/>
+    <enum name="R8UI"                      value = "0x8232"/>
+    <enum name="R16I"                      value = "0x8233"/>
+    <enum name="R16UI"                     value = "0x8234"/>
+    <enum name="R32I"                      value = "0x8235"/>
+    <enum name="R32UI"                     value = "0x8236"/>
+
+    <enum name="RG8I"                      value = "0x8237"/>
+    <enum name="RG8UI"                     value = "0x8238"/>
+    <enum name="RG16I"                     value = "0x8239"/>
+    <enum name="RG16UI"                    value = "0x823A"/>
+    <enum name="RG32I"                     value = "0x823B"/>
+    <enum name="RG32UI"                    value = "0x823C"/>
+
+</category>
+
+</OpenGLAPI>
index cec9c916efffc71345348cc8881f7bd5d3bffeba..f74e36007fd99f1f28a9dfe39efe1bc05ef20a2e 100644 (file)
@@ -23,8 +23,6 @@
   <enum name="CONTEXT_FLAGS"                    value="0x821E"/>
   <enum name="DEPTH_BUFFER"                     value="0x8223"/>
   <enum name="STENCIL_BUFFER"                   value="0x8224"/>
-  <enum name="COMPRESSED_RED"                   value="0x8225"/>
-  <enum name="COMPRESSED_RG"                    value="0x8226"/>
   <enum name="CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT"  value="0x0001"/>
   <enum name="RGBA32F"                          value="0x8814"/>
   <enum name="RGB32F"                           value="0x8815"/>
index 44939e354c9bd53a4b3c1c93740bd363f744dad6..3e054d7043a9279e8600ff8bbb525f03451a39a2 100644 (file)
@@ -80,6 +80,7 @@ API_XML = \
        ARB_seamless_cube_map.xml \
        ARB_sync.xml \
        ARB_texture_buffer_object.xml \
+       ARB_texture_rg.xml \
        ARB_texture_storage.xml \
        ARB_vertex_array_object.xml \
        AMD_draw_buffers_blend.xml \
index 9e7c7c2fb33aa5baa93bb41f3885856be61c1906..2da411610d254e3d90d66d0a3de6022cf85c27d1 100644 (file)
 <xi:include href="ARB_texture_buffer_object.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
 
 <!-- 52. GL_ARB_texture_compression_rgtc -->
-<!-- 53. GL_ARB_texture_rg -->
+
+<xi:include href="ARB_texture_rg.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
 
 <xi:include href="ARB_vertex_array_object.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>