Check if the statistics query results are linear
authorPawel Ksiezopolski <pawel.ksiezopolski@mobica.com>
Wed, 19 Jun 2019 09:07:37 +0000 (11:07 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 9 Aug 2019 12:07:22 +0000 (08:07 -0400)
commitffecd31ae52ee5db9986ac4201ee1b59c46aaaa0
tree8c124ddc7d200b33eeafd71728a41d02e2ae14ac
parentd59b53f2d42b0a820369f32ac278ee5a7be826d3
Check if the statistics query results are linear

Current tests check if query results are greater than or equal to
minimum values defined by the specification.
The task of this commit is to create additional constraint that
checks if query results do not produce some random garbage values.
In case of vertex, geometry and tesselation queries it is enough
to perform the same tests few times with varying number of
input vertices and to check if query results are linear.
Linearity of query results is estimated using Pearson correlation
coefficient.

Affects tests:
dEQP-VK.query_pool.statistics_query.*

Components: Vulkan

VK-GL-CTS issue: 876

Change-Id: Ie58b53d2a35291f565ac9c88773a4c2fa5d89656
external/vulkancts/modules/vulkan/query_pool/vktQueryPoolStatisticsTests.cpp