Place OpVariable at the beginning of the block
authorAlexander Galazin <alexander.galazin@arm.com>
Mon, 15 Oct 2018 15:36:38 +0000 (17:36 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Tue, 16 Oct 2018 09:17:13 +0000 (05:17 -0400)
commit1b62ab92e806b4f8d49fdea316bec9e6e700f6a6
tree710378ded69d370fee3bc5d5ee481a0d34187c26
parent97b83dbb00a57ec874616ba0c155fd92710fb050
Place OpVariable at the beginning of the block

SPIR-V requires that all OpVariable instructions in a function
must be in the first block in the function.

VK-GL-CTS issue: 1382

Components: Vulkan, Framework

Affects:
dEQP-VK.spirv_assembly.instruction.compute.loop_control.*
dEQP-VK.spirv_assembly.instruction.compute.8bit_storage.*
dEQP-VK.spirv_assembly.instruction.compute.16bit_storage.*
dEQP-VK.spirv_assembly.instruction.compute.pointer_parameter.*

Change-Id: Ib012eec83ccd130a7d6d586e3fdb529b908c21b3
(cherry picked from commit 7273686be36aeb14f7f86077782c4141a74931e3)
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsm16bitStorageTests.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsm8bitStorageTests.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmLoopDepInfTests.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmLoopDepLenTests.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmPointerParameterTests.cpp