From: David Neto Date: Fri, 27 Jan 2017 01:12:15 +0000 (-0500) Subject: Test SPV_KHR_multiview in assembler, disassembler X-Git-Tag: upstream/2018.6~941 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42037205a8ea9a0b067f5e38a3ecf6a5c1bf4ae4;p=platform%2Fupstream%2FSPIRV-Tools.git Test SPV_KHR_multiview in assembler, disassembler --- diff --git a/test/text_to_binary.extension_test.cpp b/test/text_to_binary.extension_test.cpp index ad98c9f..93fc0e5 100644 --- a/test/text_to_binary.extension_test.cpp +++ b/test/text_to_binary.extension_test.cpp @@ -227,4 +227,20 @@ INSTANTIATE_TEST_CASE_P( SpvBuiltInDeviceIndex})}, })), ); +// SPV_KHR_multiview + +INSTANTIATE_TEST_CASE_P( + SPV_KHR_multiview, 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 MultiView\n", + MakeInstruction(SpvOpCapability, {SpvCapabilityMultiView})}, + {"OpDecorate %1 BuiltIn ViewIndex\n", + MakeInstruction(SpvOpDecorate, {1, SpvDecorationBuiltIn, + SpvBuiltInViewIndex})}, + })), ); + } // anonymous namespace