Restore fuzzyCompare() sample rate
authorMark Adams <marka@nvidia.com>
Thu, 31 Aug 2017 19:47:15 +0000 (15:47 -0400)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 6 Sep 2017 10:53:50 +0000 (06:53 -0400)
commitfce8fb216326fe43430f668ca6c3805b35abb834
tree1f92c77b58da096853fd754e4c113c355f3e127f
parentce17e2807cd70cdf99830f42dd0f20f0d2837977
Restore fuzzyCompare() sample rate

Commit 57c002a31612855e744c33ac698590da0e3d02d3 changed how the stride
was calculated for sampling values in order to avoid double-counting
values. However, it also reduced the number of values sampled and
that's resulting in both GLES and Vulkan failures.

This patch restores the original stride calculation, but changes the
parameters to rnd.getInt() to ensure that 0 is never returned from it.

Components: Framework

VK-GL-CTS issue: 658

Change-Id: I4c7e6d39017bbfc38bcd155037d3b4d40ce46ca7
framework/common/tcuFuzzyImageCompare.cpp