diff --git a/test_conformance/spirv_new/main.cpp b/test_conformance/spirv_new/main.cpp index 68a1e02a..5a8664b6 100644 --- a/test_conformance/spirv_new/main.cpp +++ b/test_conformance/spirv_new/main.cpp @@ -82,7 +82,7 @@ void spirvTestsRegistry::addTestClass(baseTestClass *test, const char *testName, test_definition testDef; testDef.func = test->getFunction(); testDef.name = testName; - testDef.min_version = Version(1, 2); + testDef.min_version = version; testDefinitions.push_back(testDef); } diff --git a/test_conformance/spirv_new/procs.h b/test_conformance/spirv_new/procs.h index fd697a43..31c65a3b 100644 --- a/test_conformance/spirv_new/procs.h +++ b/test_conformance/spirv_new/procs.h @@ -83,7 +83,7 @@ template T *createAndRegister(const char *name, Version version) int test_##name(cl_device_id deviceID, cl_context context, \ cl_command_queue queue, int num_elements) -#define TEST_SPIRV_FUNC(name) TEST_SPIRV_FUNC_VERSION(name, Version(2, 1)) +#define TEST_SPIRV_FUNC(name) TEST_SPIRV_FUNC_VERSION(name, Version(1, 2)) struct spec_const {