Truncate random coordinates in late fragment tests
authorSteve Hill <hills@broadcom.com>
Fri, 11 Jan 2019 10:12:46 +0000 (10:12 +0000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 17 Jan 2019 08:43:47 +0000 (03:43 -0500)
commit23cd4f5ca34e492e98bc9c8c7f4417c723ea6b79
treeb2a0334494de3f7c0314addd061fb2356d090118
parentbdbb2b8f84df1b328ea4b986a8584e15a542e019
Truncate random coordinates in late fragment tests

The late-fragment tests generate random triangles.  Unfortunately,
the reference rasteriser does not respect the sub-pixel precision
of the physical device (it assumes 8 bits) which means that on
some platforms the reference rasterisation does not agree with
implementation.

This patch rounds the random coordinates to the reported
sub-pixel precision.  It was decided that in the short term this
was a less invasive change than modifying the reference rasteriser.

Affects: dEQP-VK.renderpass*.subpass_dependencies.late_fragment_tests.*

Components: Vulkan

VK-GL-CTS issue: 1549

Change-Id: I50f20284d9d2cb22e73564d6f71c0a3342547b68
external/vulkancts/modules/vulkan/renderpass/vktRenderPassSubpassDependencyTests.cpp