Fix RobustnessVertexAccessInstance bounds check
authorLiam Middlebrook <lmiddlebrook@nvidia.com>
Tue, 11 Sep 2018 05:42:26 +0000 (22:42 -0700)
committerLiam Middlebrook <lmiddlebrook@nvidia.com>
Wed, 12 Sep 2018 17:35:05 +0000 (10:35 -0700)
commitfed61233a802b5a8e7f6e634d0ef698e9155a94c
treea9cc224b6023a9f3f2b5c3241ea0e3c131ee9ebe
parent05c7431f2972e3cb434d8d39f805132ce392ef91
Fix RobustnessVertexAccessInstance bounds check

The bounds check preformed by
VertexAccessInstance::isValueWithinVertexBufferOrZero() needs to round
the value rather than truncating it when encoding it. When
`value * 0x3FFu` is casted to a deUint32 it's possible for the result to
be truncated instead of rounded causing unintended test failures.

Affects: dEQP-VK.robustness.vertex_access.a2b10g10r10_unorm_pack32.draw.vertex_incomplete

Components: Vulkan

VK-GL-CTS issue: 1351

Change-Id: Ib034b3e29fdbbbd4670e2bbdedad07492abf5cd4
external/vulkancts/modules/vulkan/robustness/vktRobustnessVertexAccessTests.cpp