Fix extended dynamic state to not access out of bounds memory
authorSÅ‚awomir Cygan <slawomir.cygan@intel.com>
Wed, 10 Feb 2021 13:40:11 +0000 (14:40 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 19 Feb 2021 08:01:09 +0000 (08:01 +0000)
commitfae4b78aafbb6b6b2d048ece0896cfb01221403b
treeaaef8bbef9100b2266263ed128313d80a2909231
parentc997700f536d3dcb6d58ccde3d5560e719147ec3
Fix extended dynamic state to not access out of bounds memory

The test assumed const size (4096) of the storage backing the
vectors of vertices. It looks like the vector of 'reversed' vertices
was fully populated only when TRIANGLES topology was used,
so the test may crash on other topologies.

Components: Vulkan

VK-GL-CTS Issue: 2786

Affects: dEQP-VK.pipeline.extended_dynamic_state.*
Change-Id: Ic56d3125335d2eef0c97028d855b27eae25da24f
external/vulkancts/modules/vulkan/pipeline/vktPipelineExtendedDynamicStateTests.cpp