mesa/es: Allow GL_CLIP_PLANE0+6 and GL_CLIP_PLANE0+7.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 4 Oct 2011 18:29:08 +0000 (11:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 6 Oct 2011 18:24:11 +0000 (11:24 -0700)
Fixes the ES1 conformance 'userclip' test, which broke when we increased
MAX_CLIP_PLANES to 8.  Core Mesa already validates incoming values
against MAX_CLIP_PLANES; we just need the ES wrapper to pass everything
through.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/APIspec.xml

index 5d5fc03bec78516c8f7b5e21027851cd56f4ff0c..574480e284dc7ccbb2540fef1ed54df38cea8ca4 100644 (file)
                <param name="plane" type="GLenum"/>
                <vector name="equation" type="const GLtype *" size="4"/>
        </proto>
-
-       <desc name="plane">
-               <range base="GL_CLIP_PLANE" from="0" to="5"/>
-       </desc>
 </template>
 
 <template name="CullFace">
                <value name="GL_RESCALE_NORMAL"/>
 
                <range base="GL_CLIP_PLANE" from="0" to="5"/>
+               <value name="GL_CLIP_PLANE0+6"/>
+               <value name="GL_CLIP_PLANE0+7"/>
 
                <value name="GL_FOG"/>
                <value name="GL_LIGHTING"/>
                <value name="GL_RESCALE_NORMAL"/>
 
                <range base="GL_CLIP_PLANE" from="0" to="5"/>
+               <value name="GL_CLIP_PLANE0+6"/>
+               <value name="GL_CLIP_PLANE0+7"/>
 
                <value name="GL_FOG"/>
                <value name="GL_LIGHTING"/>
                <param name="plane" type="GLenum"/>
                <vector name="equation" type="GLtype *" size="4"/>
        </proto>
-
-       <desc name="plane">
-               <range base="GL_CLIP_PLANE" from="0" to="5"/>
-       </desc>
 </template>
 
 <template name="GetError" direction="get">
                <value name="GL_RESCALE_NORMAL"/>
 
                <range base="GL_CLIP_PLANE" from="0" to="5"/>
+               <value name="GL_CLIP_PLANE0+6"/>
+               <value name="GL_CLIP_PLANE0+7"/>
 
                <value name="GL_FOG"/>
                <value name="GL_LIGHTING"/>