Fix min version for SPIRV test registration. (#1028)

Signed-off-by: John Kesapides <john.kesapides@arm.com>
This commit is contained in:
John Kesapides
2020-10-30 14:16:22 +00:00
committed by GitHub
parent af7d914514
commit e815bf3565
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}

View File

@@ -83,7 +83,7 @@ template <typename T> 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
{