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:42:10 +0000 (11:42 -0400)
commitf9bc6ee4d3d313ba4ebe57e6e8b9980f9866c7a8
treea273f51b329f8a7957e59a1ee301c832a4efc843
parent81e16fc1122be27b1b0ffaa73cb9f494745e37f0
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
(cherry picked from commit 06eddc62b934edb7672408252b03af1877dee01c)
external/vulkancts/modules/vulkan/geometry/vktGeometryBasicGeometryShaderTests.cpp
external/vulkancts/modules/vulkan/geometry/vktGeometryInstancedRenderingTests.cpp