[Piglit] [PATCH] add test for initial texture state

nobled nobled at dreamwidth.org
Wed May 2 09:45:18 PDT 2012


On Wed, May 2, 2012 at 11:07 AM, Brian Paul <brianp at vmware.com> wrote:
> On 05/01/2012 05:04 PM, nobled wrote:
>>
>> Current Mesa fails to produce GL_INVALID_ENUM in glGetTexLevelParameteriv
>> and segfaults when passed NULL.
>> ---
>> It's kind of pointless to pass null to a glGet* function like this,
>> but I couldn't find
>> any language in the spec about ignoring NULL pointers, which seems like
>> the
>> sane thing to do.
>
>
> I'd agree with that.
>
>
> I'm seeing failures with NVIDIA's driver:
>
> $ bin/initial-texture-state -auto
> Expected initial value of GL_TEXTURE_DEPTH to be 0, but got 1
> Unexpected GL error: GL_INVALID_OPERATION 0x502
> (Error at
> /home/brian/projects/piglit/tests/general/initial-texture-state.c:131)
> Unexpected GL error: GL_INVALID_OPERATION 0x502
> (Error at
> /home/brian/projects/piglit/tests/general/initial-texture-state.c:131)
> Unexpected GL error: GL_INVALID_OPERATION 0x502
> (Error at
> /home/brian/projects/piglit/tests/general/initial-texture-state.c:131)
> Expected initial value of GL_TEXTURE_DEPTH to be 0, but got 1
> Unexpected GL error: GL_INVALID_OPERATION 0x502
> (Error at
> /home/brian/projects/piglit/tests/general/initial-texture-state.c:131)
> Unexpected GL error: GL_INVALID_OPERATION 0x502
> (Error at
> /home/brian/projects/piglit/tests/general/initial-texture-state.c:131)
> Unexpected GL error: GL_INVALID_OPERATION 0x502
> (Error at
> /home/brian/projects/piglit/tests/general/initial-texture-state.c:131)
> PIGLIT: {'result': 'fail' }
>
> Are you sure the test is correct?
Not completely. I updated the patch in github so it gives more useful
error messages in the above failures if you want to retry:

https://github.com/nobled/piglit.git ('robust' branch)

>
> -Brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-test-for-initial-texture-state.patch
Type: application/octet-stream
Size: 8157 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20120502/4d4fffee/attachment.obj>


More information about the Piglit mailing list