Add barrier to access chain workgroup tests
authorMartin Freebody <martin.freebody@arm.com>
Mon, 22 Jul 2019 13:30:24 +0000 (14:30 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 9 Aug 2019 10:45:25 +0000 (06:45 -0400)
commit5e86c7b109006604d659048423f3b3121db1b4d7
tree87d92c6cb09e5cbaa645f9d451ffe363322219a6
parentc5b81ebe1f9f9072b0a8b8950ab2050b804028d6
Add barrier to access chain workgroup tests

These tests can complete with a failure to match expected
result in the last array element due to a race condition
with the parallel work-items.

The first work-item should set the last array element to 0
before a function to read the last array element is executed
on a parallel work-item.

Without the barrier it's possible on occasional test runs
to read uninitialised memory into the last array element.

Components: Vulkan

VK-GL-CTS issue: 1893

Affects:
dEQP-VK.spirv_assembly.instruction.compute.ptr_access_chain.*

Change-Id: I072299f7995b8f65e26195cfddd12f49cffcc9ff
external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/compute/ptr_access_chain/workgroup.amber
external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/compute/ptr_access_chain/workgroup_bad_stride.amber
external/vulkancts/data/vulkan/amber/spirv_assembly/instruction/compute/ptr_access_chain/workgroup_no_stride.amber