Commit 8a9deb3a authored by Brian Paul's avatar Brian Paul

s3tc-errors: test GL error checking with s3tc textures

Check for expected OpenGL errors related to texture compression.  For
example, glCompresedTexSubImage2D() offset/size values must be multiples
of four.

This test could be expanded to cover other compression formats in the future.

Also, this test contains some texture compression helper functions that could
be made into piglit utility functions.

Verified with NVIDIA's driver.  One error found in Mesa, to be fixed soon.
parent 7c8fe337
......@@ -740,6 +740,7 @@ add_plain_test(texturing, 'rg-teximage-01')
add_plain_test(texturing, 'rg-teximage-02')
add_plain_test(texturing, 'rgtc-teximage-01')
add_plain_test(texturing, 'rgtc-teximage-02')
add_concurrent_test(texturing, 's3tc-errors')
add_plain_test(texturing, 's3tc-teximage')
add_plain_test(texturing, 's3tc-texsubimage')
add_plain_test(texturing, 'sampler-cube-shadow')
......
......@@ -62,6 +62,7 @@ ENDIF (UNIX)
piglit_add_executable (s3tc-teximage s3tc-teximage.c)
piglit_add_executable (fxt1-teximage fxt1-teximage.c)
piglit_add_executable (s3tc-texsubimage s3tc-texsubimage.c)
piglit_add_executable (s3tc-errors s3tc-errors.c)
piglit_add_executable (sampler-cube-shadow sampler-cube-shadow.c)
piglit_add_executable (streaming-texture-leak streaming-texture-leak.c)
piglit_add_executable (tex-miplevel-selection tex-miplevel-selection.c)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment