[Piglit] [PATCH] Modify RASTERIZER_DISCARD test to try also drawing lines and points.
Paul Berry
stereotype441 at gmail.com
Wed Dec 21 14:14:36 PST 2011
Previously, the RASTERIZER_DISCARD test only tried drawing a filled
rectangle (which is typically implemented by drawing two triangles).
This patch modifies the test to verify that RASTERIZER_DISCARD also
properly discards lines and points.
Verified using the nVidia proprietary driver for Linux and using Mesa
i965 on Sandy Bridge.
---
.../ext_transform_feedback/discard-drawarrays.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tests/spec/ext_transform_feedback/discard-drawarrays.c b/tests/spec/ext_transform_feedback/discard-drawarrays.c
index a9ffa39..1acb136 100644
--- a/tests/spec/ext_transform_feedback/discard-drawarrays.c
+++ b/tests/spec/ext_transform_feedback/discard-drawarrays.c
@@ -58,6 +58,14 @@ piglit_display(void)
glEnable(GL_RASTERIZER_DISCARD);
glColor4f(1.0, 0.0, 0.0, 0.0);
piglit_draw_rect(-1, -1, 2, 2);
+ glBegin(GL_LINE_LOOP);
+ glVertex2f(-0.5, -0.5);
+ glVertex2f(0.5, -0.5);
+ glVertex2f(0.0, 0.5);
+ glEnd();
+ glBegin(GL_POINTS);
+ glVertex2f(0.0, 0.0);
+ glEnd();
pass = piglit_probe_rect_rgba(0, 0, piglit_width, piglit_height, green);
--
1.7.6.4
More information about the Piglit
mailing list