---
 tests/glean/tpixelformats.cpp |   21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/tests/glean/tpixelformats.cpp b/tests/glean/tpixelformats.cpp
index 3518ed1..27881bf 100644
--- a/tests/glean/tpixelformats.cpp
+++ b/tests/glean/tpixelformats.cpp
@@ -1560,11 +1560,16 @@ PixelFormatsTest::setup(void)
 void
 PixelFormatsTest::runOne(MultiTestResult &r, Window &w)
 {
-       int testNum = 0;
+       int testNum = 0, testStride;
        (void) w;  // silence warning
 
        setup();
 
+       if (env->options.quick)
+               testStride = 13;  // a prime number
+       else
+               testStride = 1;
+
        const unsigned numEnvModes = haveCombine ? 2 : 1;
 
        for (unsigned envMode = 0; envMode < numEnvModes; envMode++) {
@@ -1613,9 +1618,17 @@ PixelFormatsTest::runOne(MultiTestResult &r, Window &w)
                                                env->log << "  IntFormat: " << 
InternalFormats[intFormat].Name << "\n";
 
 #endif
-                                               bool ok = 
TestCombination(Formats[formatIndex].Token,
-                                                                               
                                                                        
Types[typeIndex].Token,
-                                                                               
                                                                        
InternalFormats[intFormat].Token);
+                                               bool ok;
+
+                                               if (testNum % testStride == 0) {
+                                                       ok = 
TestCombination(Formats[formatIndex].Token,
+                                                                               
                 Types[typeIndex].Token,
+                                                                               
                 InternalFormats[intFormat].Token);
+                                               }
+                                               else {
+                                                       // skip
+                                                       ok = true;
+                                               }
 
                                                if (!ok) {
                                                        // error was reported 
to log, add format info here:
-- 
1.7.10.4

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

Reply via email to