Allow optimization for SPIR-V 1.4
authorBoris Zanin <boris.zanin@mobica.com>
Mon, 27 May 2019 11:07:02 +0000 (13:07 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 10 Oct 2019 13:27:02 +0000 (09:27 -0400)
commit59b47ef36f5d4dba8567eb7da4e5d572b6586c9d
tree1e70c2887a829053fbbce36bb80e4ccfd7a5a3b1
parent6ee4e3f2cda4a88d0b8c9c51af52ef525d895bd7
Allow optimization for SPIR-V 1.4

This commit updates function optimizeCompiledBinary with
missing optimization reciepe for SPIR-V 1.4.

Also makes supports_VK_KHR_spirv_1_4 as an optional argument of
SpirVAsmBuildOptions constructor, though defaulting it to disable
support of SPIR-V 1.4.

The change affects if run with optimization command line arguments,
i.e. --deqp-optimize-spirv=enable and --deqp-optimization-recipe=!0

Affects:
 * dEQP-VK.spirv_assembly.instruction.spirv1p4.*

Components: Framework

VK-GL-CTS issue: 1636

Change-Id: If0af53ea37521e686ca7d422cab9589cc0460dc5
(cherry picked from commit b0d7da5045419b469a45c766194da1f0e026e824)
external/vulkancts/framework/vulkan/vkPrograms.cpp
external/vulkancts/framework/vulkan/vkSpirVProgram.hpp