Add SPIR-V unused variable tests
authorRicardo Garcia <rgarcia@igalia.com>
Thu, 9 May 2019 08:01:37 +0000 (10:01 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 23 May 2019 13:28:14 +0000 (09:28 -0400)
commitebe297a36f2ab2b1622c2243938944c7292e58cd
tree0c572e28294627ac013ee5b06e5572c64233202e
parent2733a3a50ce975c026f8cf1b5e6116ce6c659e77
Add SPIR-V unused variable tests

These tests check everything works when a shader contains references to
variables that have a binding which is not present in the pipeline
layout. For the test to be legal, the variable cannot be used from the
entry point. The tests have two variants: either the variable is simply
unused or the variable is used by a function that is not part of the
entry point call tree.

New tests:
dEQP-VK.spirv_assembly.instruction.*.unused_variables.*

Components: Vulkan
VK-GL-CTS issue: 1038

Change-Id: Ib54c79da4d164e494c0004f0cb1503783e38bc70
android/cts/master/vk-master.txt
external/vulkancts/modules/vulkan/shaderexecutor/vktShaderExecutor.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmComputeShaderTestUtil.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmComputeShaderTestUtil.hpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmGraphicsShaderTestUtil.hpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmInstructionTests.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmUtils.cpp
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmUtils.hpp
external/vulkancts/mustpass/master/vk-default-no-waivers.txt
external/vulkancts/mustpass/master/vk-default.txt