Fix RobustnessVertexAccessInstance bounds check
authorLiam Middlebrook <lmiddlebrook@nvidia.com>
Tue, 11 Sep 2018 05:42:26 +0000 (22:42 -0700)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 13 Sep 2018 19:23:20 +0000 (15:23 -0400)
commit16b82e759f3e60493d6fd016b7c8beb8ae30b28a
tree8ef9ebe084e57c90ec55ff5474f101d001f86969
parent4a225cbfe98bff4842e41e71f44bff8d985823f6
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
(cherry picked from commit fed61233a802b5a8e7f6e634d0ef698e9155a94c)
external/vulkancts/modules/vulkan/robustness/vktRobustnessVertexAccessTests.cpp