[Piglit] [PATCH] sample-depth: use tri-strip and rgba visual
Ilia Mirkin
imirkin at alum.mit.edu
Tue Jul 7 21:03:40 PDT 2015
This fixes it on nvc0 (and I'm guessing nv50). It appears that NVIDIA
hw tessellates in an unexpected fashion. We also need an RGBA visual
since we check all 4 color components.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
tests/spec/arb_texture_multisample/sample-depth.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/spec/arb_texture_multisample/sample-depth.c b/tests/spec/arb_texture_multisample/sample-depth.c
index 6334833..d8e7d33 100644
--- a/tests/spec/arb_texture_multisample/sample-depth.c
+++ b/tests/spec/arb_texture_multisample/sample-depth.c
@@ -33,7 +33,7 @@
PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 30;
- config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE;
+ config.window_visual = PIGLIT_GL_VISUAL_RGBA | PIGLIT_GL_VISUAL_DOUBLE;
PIGLIT_GL_TEST_CONFIG_END
@@ -61,11 +61,11 @@ piglit_display(void)
glEnable(GL_DEPTH_TEST);
- glBegin(GL_QUADS);
+ glBegin(GL_TRIANGLE_STRIP);
glVertex3f(-1.0f, -1.0f, 1.0f);
glVertex3f( 1.0f, -1.0f, -1.0f);
- glVertex3f( 1.0f, 1.0f, 1.0f);
glVertex3f(-1.0f, 1.0f, -1.0f);
+ glVertex3f( 1.0f, 1.0f, 1.0f);
glEnd();
glDisable(GL_DEPTH_TEST);
--
2.3.6
More information about the Piglit
mailing list