Single random float generator for precision tests
authorGraeme Leese <gleese@broadcom.com>
Thu, 20 Jun 2019 16:22:37 +0000 (17:22 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 26 Mar 2020 08:32:13 +0000 (04:32 -0400)
commitb5b58e6ac8a040681ffb1f19d5c3019c3f240055
treed7b3cc808674753617aa70fa2a26f98ff73d9947
parent1e533f62a51374652227037d3bd0da1fdabe26ad
Single random float generator for precision tests

Essentially the same random generator was written out three times, once
for double, once for float and once for fp16. The FloatFormat class
already takes care of the precision requirements, etc. so the same
function can be used for all three.

Components: Vulkan
Affects: dEQP-VK.glsl.builtin.precision*

Change-Id: I4c29eac8f8f71ddf20c2f7e12afc314eba71442d
external/vulkancts/modules/vulkan/shaderexecutor/vktShaderBuiltinPrecisionTests.cpp