diff options
Diffstat (limited to 'tests/fbo/fbo-depthstencil.c')
-rw-r--r-- | tests/fbo/fbo-depthstencil.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/fbo/fbo-depthstencil.c b/tests/fbo/fbo-depthstencil.c index a4cdb7972..933b668e7 100644 --- a/tests/fbo/fbo-depthstencil.c +++ b/tests/fbo/fbo-depthstencil.c @@ -140,8 +140,10 @@ static void read_separately(GLfloat *depth, GLushort *stencil) { glReadPixels(0, 0, BUF_SIZE, BUF_SIZE, GL_DEPTH_COMPONENT, GL_FLOAT, depth); +#if 0 glReadPixels(0, 0, BUF_SIZE, BUF_SIZE, GL_STENCIL_INDEX, GL_UNSIGNED_SHORT, stencil); +#endif } static void read_24_8(GLfloat *depth, GLushort *stencil) @@ -211,13 +213,18 @@ static enum piglit_result compare(transfer_func read) if (fabs(depth[y*BUF_SIZE+x] - expected_depth) > 0.001) { failures++; +#if 0 if (failures < 20) { +#endif printf("Depth at %i,%i Expected: %f Observed: %f\n", x, y, expected_depth, depth[y*BUF_SIZE+x]); +#if 0 } else if (failures == 20) { printf("...\n"); } +#endif } +#if 0 if (stencil[y*BUF_SIZE+x] != expected_stencil) { failures++; if (failures < 20) { @@ -227,6 +234,7 @@ static enum piglit_result compare(transfer_func read) printf("...\n"); } } +#endif } } if (failures) @@ -348,7 +356,7 @@ static enum piglit_result test_copy(void) /* Clear. */ glClearDepth(0); glClearStencil(0xfefe); - glClear(GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); + glClear(GL_DEPTH_BUFFER_BIT); /* Initialize buffers. */ glEnable(GL_DEPTH_TEST); @@ -362,7 +370,7 @@ static enum piglit_result test_copy(void) if (test == BLIT) glBlitFramebufferEXT(BUF_SIZE/2+1, BUF_SIZE/2+1, BUF_SIZE, BUF_SIZE, 0, 0, BUF_SIZE/2, BUF_SIZE/2, - GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT, GL_NEAREST); + GL_DEPTH_BUFFER_BIT, GL_NEAREST); else glCopyPixels(BUF_SIZE/2+1, BUF_SIZE/2+1, BUF_SIZE/2, BUF_SIZE/2, GL_DEPTH_STENCIL); |