Test SPV_KHR_device_group in assembler, disassembler

This commit is contained in:
David Neto 2017-01-26 20:05:01 -05:00
parent 83b334e549
commit 7327f63c34

View File

@ -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<AssemblyCase>{
{"OpCapability DeviceGroup\n",
MakeInstruction(SpvOpCapability, {SpvCapabilityDeviceGroup})},
{"OpDecorate %1 BuiltIn DeviceIndex\n",
MakeInstruction(SpvOpDecorate, {1, SpvDecorationBuiltIn,
SpvBuiltInDeviceIndex})},
})), );
} // anonymous namespace