[Piglit] [PATCH] glsl-1.30: add basic test for testing textureOffset functionality.

sroland at vmware.com sroland at vmware.com
Mon Mar 4 18:46:02 PST 2013


From: Roland Scheidegger <sroland at vmware.com>

This is pretty rough and doesn't really test all that much (just
textureOffsetLod, but there's other texturing functions with offsets),
doesn't test different wrap modes, NPOT sizes etc., but there's no
other test using "ordinary" texture opcodes and texel offsets, so
it's a start (and in fact it exposed a bug in the mesa state tracker).
Tested with llvmpipe (pass) and softpipe (fail) which is as expected -
hopefully the math is ok...
Inspired from fs-texelFetchOffset.
---
 tests/spec/glsl-1.30/execution/CMakeLists.gl.txt |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/spec/glsl-1.30/execution/CMakeLists.gl.txt b/tests/spec/glsl-1.30/execution/CMakeLists.gl.txt
index 6737bb1..3c0b2d5 100644
--- a/tests/spec/glsl-1.30/execution/CMakeLists.gl.txt
+++ b/tests/spec/glsl-1.30/execution/CMakeLists.gl.txt
@@ -13,6 +13,7 @@ link_libraries (
 piglit_add_executable (fs-discard-exit-2 fs-discard-exit-2.c)
 piglit_add_executable (fs-texelFetch-2D fs-texelFetch-2D.c)
 piglit_add_executable (fs-texelFetchOffset-2D fs-texelFetchOffset-2D.c)
+piglit_add_executable (fs-textureOffset-2D fs-textureOffset-2D.c)
 IF (NOT MSVC)
 	piglit_add_executable (isinf-and-isnan isinf-and-isnan.c)
 ENDIF (NOT MSVC)
-- 
1.7.9.5


More information about the Piglit mailing list