Add support for GL_EXT_unpack_subimage on GLES2
authorNeil Roberts <neil@linux.intel.com>
Wed, 21 Mar 2012 18:08:42 +0000 (18:08 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 27 Mar 2012 12:28:06 +0000 (08:28 -0400)
This extension just permits GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_ROWS
and GL_UNPACK_SKIP_PIXELS to be passed to glPixelStore on GLES2 so it
is trivial to implement.

src/mesa/main/APIspec.xml
src/mesa/main/extensions.c

index 29975f678b4c9626566fe192e08dea3193bb6fc0..f23857ad2f45bc51871af05a6547c599397f058e 100644 (file)
 
        <desc name="pname">
                <value name="GL_PACK_ALIGNMENT"/>
+               <desc name="param" error="GL_INVALID_VALUE">
+                       <value name="1"/>
+                       <value name="2"/>
+                       <value name="4"/>
+                       <value name="8"/>
+               </desc>
+       </desc>
+
+       <desc name="pname">
                <value name="GL_UNPACK_ALIGNMENT"/>
+               <desc name="param" error="GL_INVALID_VALUE">
+                       <value name="1"/>
+                       <value name="2"/>
+                       <value name="4"/>
+                       <value name="8"/>
+               </desc>
        </desc>
 
-       <desc name="param" error="GL_INVALID_VALUE">
-               <value name="1"/>
-               <value name="2"/>
-               <value name="4"/>
-               <value name="8"/>
+       <desc name="pname" category="EXT_unpack_subimage">
+               <value name="GL_UNPACK_ROW_LENGTH"/>
+               <value name="GL_UNPACK_SKIP_PIXELS"/>
+               <value name="GL_UNPACK_SKIP_ROWS"/>
        </desc>
+
 </template>
 
 <template name="ReadPixels" direction="get">
        <category name="EXT_multi_draw_arrays"/>
        <category name="OES_EGL_image"/>
        <category name="OES_EGL_image_external"/>
+        <category name="EXT_unpack_subimage"/>
 
        <category name="NV_draw_buffers"/>
        <function name="DrawBuffersNV" template="DrawBuffers"/>
index 716673954adbf2fd59d1e6f9eaa090a81d0552de..8c262af081f8f8c784071853df9af1a63c75cc5e 100644 (file)
@@ -213,6 +213,7 @@ static const struct extension extension_table[] = {
    { "GL_EXT_texture_type_2_10_10_10_REV",         o(dummy_true),                                         ES2, 2008 },
    { "GL_EXT_timer_query",                         o(EXT_timer_query),                         GL,             2006 },
    { "GL_EXT_transform_feedback",                  o(EXT_transform_feedback),                  GL,             2011 },
+   { "GL_EXT_unpack_subimage",                     o(dummy_true),                                         ES2, 2011 },
    { "GL_EXT_vertex_array_bgra",                   o(EXT_vertex_array_bgra),                   GL,             2008 },
    { "GL_EXT_vertex_array",                        o(dummy_true),                              GL,             1995 },