From 7327f63c34997c75cc8b4ad02cf8809c15609eaa Mon Sep 17 00:00:00 2001 From: David Neto Date: Thu, 26 Jan 2017 20:05:01 -0500 Subject: [PATCH] Test SPV_KHR_device_group in assembler, disassembler --- test/text_to_binary.extension_test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/text_to_binary.extension_test.cpp b/test/text_to_binary.extension_test.cpp index 9581c14fd..ad98c9f3c 100644 --- a/test/text_to_binary.extension_test.cpp +++ b/test/text_to_binary.extension_test.cpp @@ -211,4 +211,20 @@ INSTANTIATE_TEST_CASE_P( {SpvCapabilityStorageInputOutput16})}, })), ); +// SPV_KHR_device_group + +INSTANTIATE_TEST_CASE_P( + SPV_KHR_device_group, 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 DeviceGroup\n", + MakeInstruction(SpvOpCapability, {SpvCapabilityDeviceGroup})}, + {"OpDecorate %1 BuiltIn DeviceIndex\n", + MakeInstruction(SpvOpDecorate, {1, SpvDecorationBuiltIn, + SpvBuiltInDeviceIndex})}, + })), ); + } // anonymous namespace