---
 tests/glean/tpointatten.cpp |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/tests/glean/tpointatten.cpp b/tests/glean/tpointatten.cpp
index 08076ca..0dee922 100644
--- a/tests/glean/tpointatten.cpp
+++ b/tests/glean/tpointatten.cpp
@@ -169,11 +169,19 @@ PointAttenuationTest::testPointRendering(GLboolean smooth)
        const GLfloat epsilon = (smooth ? 1.5 : 1.0) + 0.0;
        GLfloat atten[3];
        int count = 0;
+       unsigned testNo, testStride;
 
        // Enable front buffer if you want to see the rendering
        glDrawBuffer(GL_FRONT);
        glReadBuffer(GL_FRONT);
 
+       if (env->options.quick)
+               testStride = 5;  // a prime number
+       else
+               testStride = 1;
+       testNo = 0;
+       printf("stride %u\n", testStride);
+
        if (smooth) {
                glEnable(GL_POINT_SMOOTH);
                glEnable(GL_BLEND);
@@ -198,6 +206,12 @@ PointAttenuationTest::testPointRendering(GLboolean smooth)
                                                for (float size = 1.0; size < 
MAX_SIZE; size += 8) {
                                                        glPointSize(size);
 
+                                                       testNo++;
+                                                       if (testNo % testStride 
!= 0) {
+                                                               // skip this 
test
+                                                               continue;
+                                                       }
+
                                                        // draw column of points
                                                        
glClear(GL_COLOR_BUFFER_BIT);
                                                        glBegin(GL_POINTS);
@@ -230,6 +244,8 @@ PointAttenuationTest::testPointRendering(GLboolean smooth)
                        }
                }
        }
+       printf("Tested %u\n", testNo);
+
        reportSuccess(count, smooth);
        return true;
 }
-- 
1.7.10.4

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to