summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-08-15 16:39:57 +0200
committerRoland Scheidegger <sroland@vmware.com>2013-08-15 23:22:40 +0200
commit18e74552640148ad40475a7fa0da249ffaebb6f8 (patch)
treeb993fee63157dbf2ec5d5e664bd38935bde3d8d6
parent2b5bfe38049c64253ccdaaa7c0881632b25e15b8 (diff)
glean/tstencil2: adjust test to do what it says
Comment is indicating it will decr stencil to 6 by stencil fail But test was configured to incr stencil by sfail, in reality it worked because it actually passed stencil and hence would use the zpass decr. Change it to match comment, and change the other values a bit as well (to make sure errors are caught when some implementation applies both sfail and zfail (or zpass) ops, an error undetected so far in llvmpipe...) Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/glean/tstencil2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/glean/tstencil2.cpp b/tests/glean/tstencil2.cpp
index a7ff1d33e..d7eb63308 100644
--- a/tests/glean/tstencil2.cpp
+++ b/tests/glean/tstencil2.cpp
@@ -706,10 +706,10 @@ Stencil2Test::test_stencil(int method)
// incr front to 4 (by z pass), decr back to 6 (by stencil fail)
pass = set_stencil_state(method,
- GL_DECR, GL_INCR, // stencil fail
+ GL_DECR, GL_DECR, // stencil fail
GL_KEEP, GL_KEEP, // z fail
- GL_INCR, GL_DECR, // z pass
- GL_EQUAL, GL_NOTEQUAL, // stencil func
+ GL_INCR, GL_REPLACE, // z pass
+ GL_EQUAL, GL_EQUAL, // stencil func
3, ~0); // ref, mask
if (pass)
pass = render_test(4, 6);