[Piglit] [PATCH] add test for initial texture state
Brian Paul
brianp at vmware.com
Wed May 2 08:07:38 PDT 2012
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?
-Brian
More information about the Piglit
mailing list