Improve and fix quad randomization in vertex array test
authorAri Suonpaa <ari.suonpaa@siru.fi>
Fri, 3 Dec 2021 09:21:46 +0000 (11:21 +0200)
committerAri Suonpaa <ari.suonpaa@siru.fi>
Fri, 10 Dec 2021 05:41:49 +0000 (07:41 +0200)
commit3c77369e163ea8cb7e1021c417ee285ee24ccad2
tree8a38da379cf2ac942a7f7e7a18f43a5cfbac5455
parenta5c09ca368601b2c2c1dbca8be382cd9d3690396
Improve and fix quad randomization in vertex array test

Minimum quad size for fixed point format was larger
than the maximum value range, causing only extremely
large quads to be used. Also the quad randomization
relied on a loop with fixed number of attempts to
produce proper quads. Now the randomization ranges
are selected so that the quads can be accepted without
multiple attempts.

VK-GL-CTS Issue: 3376

Affects:

dEQP-GLES3.functional.vertex_arrays.*

Components: OpenGL ES
Change-Id: I648f2218aa9b661969c7b78c2f81b5e120ae9275
modules/glshared/glsVertexArrayTests.cpp
modules/glshared/glsVertexArrayTests.hpp