Search a longer list of random triangles in EGL render tests
authorJames Glanville <james.glanville@imgtec.com>
Tue, 12 Jun 2018 13:50:26 +0000 (14:50 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sun, 8 Jul 2018 14:09:55 +0000 (10:09 -0400)
This set of tests contain a loop that searches a random set of
coordinates for triangles that are large enough.

The random number seed used is the test name, and it happens that
this test's seed does not generate enough large triangles in under
40 iterations (the max before abort)

This change increases the maximum number of iterations to 100.
This will have no impact on runtime/output on any tests that
already successfully run.

Affects:
dEQP-EGL.functional.render.*

Components:
dEQP

VK-GL_CTS issue:
1213

Change-Id: Ibbd8316940f7d43d343082d21ae7aa7d17d865b4

modules/egl/teglRenderTests.cpp

index e6efac5..be0fb61 100644 (file)
@@ -198,7 +198,7 @@ void randomizeDrawOp (de::Random& rnd, DrawPrimitiveOp& drawOp, const bool alpha
 
                        // avoid generating narrow triangles
                        {
-                               const int       maxAttempts     = 40;
+                               const int       maxAttempts     = 100;
                                int                     numAttempts     = 0;
                                tcu::Vec4&      p0                      = drawOp.positions[triNdx*3 + 0];
                                tcu::Vec4&      p1                      = drawOp.positions[triNdx*3 + 1];