mesa: add GL_EXT_texture_rg extension for OpenGL ES 2.x.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 18 Apr 2012 14:38:47 +0000 (16:38 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 3 Jul 2012 20:23:38 +0000 (16:23 -0400)
src/mapi/glapi/gen/es_EXT.xml
src/mesa/main/APIspec.xml
src/mesa/main/extensions.c

index b26cac54b792dc4658be1395605b4ff2e48d44ac..ad83d9142d1cbc7051b915a1d87c120516a8be08 100644 (file)
     </function>
 </category>
 
+<!-- 103. GL_EXT_texture_rg -->
+<category name="GL_EXT_texture_rg" number="103">
+    <enum name="RED_EXT"                                  value="0x1903"/>
+    <enum name="RG_EXT"                                   value="0x8227"/>
+    <enum name="R8_EXT"                                   value="0x8229"/>
+    <enum name="RG8_EXT"                                  value="0x822B"/>
+</category>
+
 </OpenGLAPI>
index f870cf7db6449edf1a509190cd11238ee0a56486..b6cf52d074a778f0bba8e64ef2a59226960c4ed8 100644 (file)
        <category name="OES_packed_depth_stencil"/>
        <category name="OES_standard_derivatives"/>
        <category name="EXT_texture_format_BGRA8888"/>
+       <category name="EXT_texture_rg"/>
        <category name="EXT_read_format_bgra"/>
 
        <category name="EXT_texture_compression_dxt1"/>
index e4fe73307ad6372998bab17e47fdf5f87cc2a61a..793cc4e24e06bcf04dc1d5a40ca45d7d20cf999e 100644 (file)
@@ -200,6 +200,7 @@ static const struct extension extension_table[] = {
    { "GL_EXT_texture_env_dot3",                    o(EXT_texture_env_dot3),                    GL,             2000 },
    { "GL_EXT_texture_filter_anisotropic",          o(EXT_texture_filter_anisotropic),          GL | ES1 | ES2, 1999 },
    { "GL_EXT_texture_format_BGRA8888",             o(dummy_true),                                   ES1 | ES2, 2005 },
+   { "GL_EXT_texture_rg",                          o(ARB_texture_rg),                                     ES2, 2011 },
    { "GL_EXT_read_format_bgra",                    o(dummy_true),                                   ES1 | ES2, 2009 },
    { "GL_EXT_texture_integer",                     o(EXT_texture_integer),                     GL,             2006 },
    { "GL_EXT_texture_lod_bias",                    o(dummy_true),                              GL | ES1,       1999 },