Fulfill OpControlBarrier requirement
authorBoris Zanin <boris.zanin@mobica.com>
Wed, 17 Mar 2021 11:27:26 +0000 (12:27 +0100)
committerPeter Kohaut <peter.kohaut@arm.com>
Wed, 8 Sep 2021 17:28:28 +0000 (19:28 +0200)
commitbef303a153fd4e78d0c751ef102f3b805c25254a
tree7a61cef2a1d71e67079848add4fb7b7d88c3158f
parent95fae23679bf1717083797c4ff792666d610f5d4
Fulfill OpControlBarrier requirement

The valid usage requirement in vulkan specification 1.2.170
VUID-StandaloneSpirv-None-04641 requires: "If the Scope for
memory is Invocation, then memory semantics must be None".
New SPIRV-Tools enforces it.

Fix tests:
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_function
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_switch
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_if
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.after_divergent_if
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.in_loop

Update tests:
 * dEQP-VK.spirv_assembly.instruction.graphics.barrier.*

Components: Vulkan

Change-Id: Ie6997fdb36c0327d88a2b7b6b4826dfee690377d
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp