From af701f8f6a7324b916c99714e73cf0c61d3fbafe Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Wed, 27 Apr 2016 17:04:37 -0400 Subject: [PATCH] Add basic Initializer/Finalizer tests. --- test/OperandCapabilities.cpp | 2 ++ test/TextToBinary.ModeSetting.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/OperandCapabilities.cpp b/test/OperandCapabilities.cpp index f8f4c7f..aa38259 100644 --- a/test/OperandCapabilities.cpp +++ b/test/OperandCapabilities.cpp @@ -158,6 +158,8 @@ INSTANTIATE_TEST_CASE_P( ExecutionModeV11, EnumCapabilityTest, Combine(Values(SPV_ENV_UNIVERSAL_1_1), ValuesIn(std::vector{ + CASE1(EXECUTION_MODE, ExecutionModeInitializer, Kernel), + CASE1(EXECUTION_MODE, ExecutionModeFinalizer, Kernel), CASE1(EXECUTION_MODE, ExecutionModeSubgroupSize, SubgroupDispatch), CASE1(EXECUTION_MODE, ExecutionModeSubgroupsPerWorkgroup, diff --git a/test/TextToBinary.ModeSetting.cpp b/test/TextToBinary.ModeSetting.cpp index 8becd6d..c08b21d 100644 --- a/test/TextToBinary.ModeSetting.cpp +++ b/test/TextToBinary.ModeSetting.cpp @@ -203,6 +203,8 @@ INSTANTIATE_TEST_CASE_P( TextToBinaryExecutionModeV11, OpExecutionModeTest, Combine(Values(SPV_ENV_UNIVERSAL_1_1), ValuesIn(std::vector>{ + {CASE(Initializer)}, + {CASE(Finalizer)}, {CASE(SubgroupSize), {12}}, {CASE(SubgroupsPerWorkgroup), {64}}})), ); #undef CASE -- 2.7.4