Place OpVariable at the beginning of the block
authorAlexander Galazin <alexander.galazin@arm.com>
Sun, 14 Oct 2018 10:45:59 +0000 (12:45 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Sun, 14 Oct 2018 10:50:31 +0000 (06:50 -0400)
commit97b83dbb00a57ec874616ba0c155fd92710fb050
tree97a9603983329ad1af9e59c464e86ec24ed93c7b
parentf4899a10dba6659e6bddf3ec402f72a634c396eb
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

Affects:
dEQP-VK.spirv_assembly.instruction.graphics.opspecconstantop.*
dEQP-VK.spirv_assembly.instruction.graphics.variable_init.*

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