From 4087e89bc615206aebc7c27d45035bbf5939951b Mon Sep 17 00:00:00 2001 From: David Neto Date: Wed, 8 Mar 2017 17:16:04 -0500 Subject: [PATCH] Test asm,dis support for SPV_KHR_variable_pointers --- test/text_to_binary.extension_test.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/text_to_binary.extension_test.cpp b/test/text_to_binary.extension_test.cpp index 7614034c2..cc5ce4172 100644 --- a/test/text_to_binary.extension_test.cpp +++ b/test/text_to_binary.extension_test.cpp @@ -243,6 +243,7 @@ INSTANTIATE_TEST_CASE_P( SpvBuiltInViewIndex})}, })), ); + // SPV_AMD_gcn_shader #define PREAMBLE "%1 = OpExtInstImport \"SPV_AMD_gcn_shader\"\n" @@ -268,4 +269,23 @@ INSTANTIATE_TEST_CASE_P( })), ); #undef PREAMBLE + +// SPV_KHR_variable_pointers + +INSTANTIATE_TEST_CASE_P( + SPV_KHR_variable_pointers, 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 VariablePointers\n", + MakeInstruction(SpvOpCapability, + {SpvCapabilityVariablePointers})}, + {"OpCapability VariablePointersUniformBufferBlock\n", + MakeInstruction( + SpvOpCapability, + {SpvCapabilityVariablePointersUniformBufferBlock})}, + })), ); + } // anonymous namespace