Fix API usage errors in geometry tests
authorIlkka Saarelainen <ilkka.saarelainen@siru.fi>
Wed, 21 Aug 2019 11:41:07 +0000 (14:41 +0300)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 5 Sep 2019 15:16:05 +0000 (11:16 -0400)
commit06eddc62b934edb7672408252b03af1877dee01c
tree8c3f66aeb0d16c0b6d62e47bd168d005f536c116
parentdb50943898abca5bf39122a62d329c864809f96e
Fix API usage errors in geometry tests

Fixes validation errors in various geometry tests.

geometry.basic.output_* tests were potentially exceeding the
maxGeometryTotalOutputComponents limit because the gl_PerVertex was
implicitly declared and therefore contained gl_Position and gl_PointSize.
Now the gl_PerVertex is declared explicitly to contain only gl_Position.

Fixes flush/invalidate mapped memory range -validation errors by using the
flushAlloc/invalidateAlloc -framework functions.

Affects:
dEQP-VK.geometry.basic.output_*
dEQP-VK.geometry.instanced.*

Components: Vulkan

VK-GL-CTS issue: 1911

Change-Id: I8e4cfd5879ba8c61be3019578b8afbc76592d82e
external/vulkancts/modules/vulkan/geometry/vktGeometryBasicGeometryShaderTests.cpp
external/vulkancts/modules/vulkan/geometry/vktGeometryInstancedRenderingTests.cpp