mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 23:29:02 +00:00
[RFC] Move logic for test registration to the test harness (#2151)
And use in device_timer suite. Signed-off-by: Kévin Petit <kpet@free.fr>
This commit is contained in:
@@ -56,14 +56,14 @@ int test_composite_construct(cl_device_id deviceID, cl_context context,
|
||||
return 0;
|
||||
}
|
||||
|
||||
TEST_SPIRV_FUNC(op_composite_construct_int4)
|
||||
REGISTER_TEST(op_composite_construct_int4)
|
||||
{
|
||||
cl_int4 value = { { 123, 122, 121, 119 } };
|
||||
std::vector<cl_int4> results(256, value);
|
||||
return test_composite_construct(deviceID, context, queue, "composite_construct_int4", results);
|
||||
}
|
||||
|
||||
TEST_SPIRV_FUNC(op_composite_construct_struct)
|
||||
REGISTER_TEST(op_composite_construct_struct)
|
||||
{
|
||||
typedef AbstractStruct2<int, char> CustomType1;
|
||||
typedef AbstractStruct2<cl_int2, CustomType1> CustomType2;
|
||||
|
||||
Reference in New Issue
Block a user