[Mesa-dev] [PATCH 12/26] mesa/es: Remove redundant clear bitmask validation
Ian Romanick
idr at freedesktop.org
Mon Aug 20 09:48:23 PDT 2012
On 08/19/2012 11:40 PM, Kenneth Graunke wrote:
> On 08/17/2012 08:11 PM, Ian Romanick wrote:
>> From: Ian Romanick <ian.d.romanick at intel.com>
>>
>> ---
>> src/mesa/main/APIspec.xml | 11 -----------
>> 1 files changed, 0 insertions(+), 11 deletions(-)
>>
>> diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml
>> index 53d9aa9..606e546 100644
>> --- a/src/mesa/main/APIspec.xml
>> +++ b/src/mesa/main/APIspec.xml
>> @@ -680,17 +680,6 @@
>> <return type="void"/>
>> <param name="mask" type="GLbitfield"/>
>> </proto>
>> -
>> - <desc name="mask" error="GL_INVALID_VALUE">
>> - <value name="0"/>
>> - <value name="(GL_COLOR_BUFFER_BIT)"/>
>> - <value name="(GL_DEPTH_BUFFER_BIT)"/>
>> - <value name="(GL_STENCIL_BUFFER_BIT)"/>
>> - <value name="(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)"/>
>> - <value name="(GL_COLOR_BUFFER_BIT|GL_STENCIL_BUFFER_BIT)"/>
>> - <value name="(GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT)"/>
>> - <value name="(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT)"/>
>
> Way to go, enumerating every possible combination...now that is quality
> code :)
>
>> - </desc>
>> </template>
>>
>> <template name="ClearColor">
>
> It looks like this code prevents GL_ACCUM_BUFFER_BIT from being used.
> Admittedly, seeing as that isn't defined in any GLES headers, it's
> probably OK, but I suppose it isn't *entirely* useless.
Good catch! That is a legit bug. GL_ACCUM_BUFFER_BIT isn't accepted in
ES or core contexts. I'll move this to the "other" group of patches,
and I'll add the missing checks.
More information about the mesa-dev
mailing list