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

Brian Paul brianp at vmware.com
Wed May 2 12:18:38 PDT 2012


On 05/02/2012 10:45 AM, nobled wrote:
> 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)

Here's the output w/ NVIDIA:

Expected initial value of GL_TEXTURE_DEPTH to be 0, but got 1
Unexpected GL error: GL_INVALID_OPERATION 0x502
(Error at 
/home/brian/projects2/piglit-nobled/piglit/tests/general/initial-texture-state.c:131)
Error querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE from target GL_TEXTURE_1D
Unexpected GL error: GL_INVALID_OPERATION 0x502
(Error at 
/home/brian/projects2/piglit-nobled/piglit/tests/general/initial-texture-state.c:131)
Error querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE from target GL_TEXTURE_2D
Unexpected GL error: GL_INVALID_OPERATION 0x502
(Error at 
/home/brian/projects2/piglit-nobled/piglit/tests/general/initial-texture-state.c:131)
Error querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE from target GL_TEXTURE_3D
Expected initial value of GL_TEXTURE_DEPTH to be 0, but got 1
Unexpected GL error: GL_INVALID_OPERATION 0x502
(Error at 
/home/brian/projects2/piglit-nobled/piglit/tests/general/initial-texture-state.c:131)
Error querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE from target GL_TEXTURE_1D
Unexpected GL error: GL_INVALID_OPERATION 0x502
(Error at 
/home/brian/projects2/piglit-nobled/piglit/tests/general/initial-texture-state.c:131)
Error querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE from target GL_TEXTURE_2D
Unexpected GL error: GL_INVALID_OPERATION 0x502
(Error at 
/home/brian/projects2/piglit-nobled/piglit/tests/general/initial-texture-state.c:131)
Error querying GL_TEXTURE_COMPRESSED_IMAGE_SIZE from target GL_TEXTURE_3D
PIGLIT: {'result': 'fail' }


-Brian


More information about the Piglit mailing list