Fix indexing a push constant array member
authorMarcin Kańtoch <marcin.kantoch@amd.com>
Fri, 13 Sep 2019 14:42:54 +0000 (16:42 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 10 Oct 2019 13:33:10 +0000 (09:33 -0400)
commitdad37a39878ec70bc4ce1b7ed0115eace18c8984
tree3d3b6cbf66ffe5f2456c8cfbfb72aaaba6b8f1e7
parent7a12b8859a34be373acb993dbf7c8f4e274fc6be
Fix indexing a push constant array member

gl_VertexIndex is used to index a push constant array member.
Vulkan spec says: Any member of a push constant block that is
declared as an array must only be accessed with dynamically
uniform indices. But gl_VertexIndex is not dynamically uniform.

Changed the test to use dynamically uniform indexing.

Affects:
dEQP-VK.spirv_assembly.instruction.spirv1p4.entrypoint.vert_pc_entry_point

Components: Vulkan

VK-GL-CTS issue: 2000

Change-Id: I767aacfe0fde27e083f7b4a82f808cb99fb31d16
(cherry picked from commit 30b013b2ba0dfd5eabd3f7a0412135a1c8be8038)
external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/spirv1p4/entrypoint/vert_pc_entry_point.amber