From 83b334e54987bca0451b19d2da75a24cb6a1d8c0 Mon Sep 17 00:00:00 2001 From: David Neto Date: Thu, 26 Jan 2017 20:02:24 -0500 Subject: [PATCH] Test SPV_KHR_16bit_storage in assembler, disassembler --- test/text_to_binary.extension_test.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/text_to_binary.extension_test.cpp b/test/text_to_binary.extension_test.cpp index 18133187e..9581c14fd 100644 --- a/test/text_to_binary.extension_test.cpp +++ b/test/text_to_binary.extension_test.cpp @@ -188,4 +188,27 @@ INSTANTIATE_TEST_CASE_P( MakeInstruction(SpvOpSubgroupAllEqualKHR, {1, 2, 3})}, })), ); +// SPV_KHR_16bit_storage + +INSTANTIATE_TEST_CASE_P( + SPV_KHR_16bit_storage, ExtensionRoundTripTest, + // We'll get coverage over operand tables by trying the universal + // environments, and at least one specific environment. + Combine(Values(SPV_ENV_UNIVERSAL_1_0, SPV_ENV_UNIVERSAL_1_1, + SPV_ENV_VULKAN_1_0), + ValuesIn(std::vector{ + {"OpCapability StorageUniformBufferBlock16\n", + MakeInstruction(SpvOpCapability, + {SpvCapabilityStorageUniformBufferBlock16})}, + {"OpCapability StorageUniform16\n", + MakeInstruction(SpvOpCapability, + {SpvCapabilityStorageUniform16})}, + {"OpCapability StoragePushConstant16\n", + MakeInstruction(SpvOpCapability, + {SpvCapabilityStoragePushConstant16})}, + {"OpCapability StorageInputOutput16\n", + MakeInstruction(SpvOpCapability, + {SpvCapabilityStorageInputOutput16})}, + })), ); + } // anonymous namespace