mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 23:29:02 +00:00
Test IMAGE1D_BUFFER in more scenario (#1806)
* cl_copy_images * cl_get_info * cl_fill_image * cl_read_write_image * kernel_image_methods * IMAGE1D_BUFFER cannot be created with (USE_|ALLOC_|COPY_)_HOST_PTR * do not allow mipmap with 1D buffer * adjust M to be within maximum_sizes and max_pixels * remove unused variables * make sure M will never be 0 * fix region[0] after refactoring removing mipmap * fix formatting * format with clang-format-11 * fix image1d_buffer creation with gEnablePitch * add missing case in switch * use align_malloc when CL version is at least 2.0 * use CL_DEVICE_NUMERIC_VERSION and align_free * fix free of pitch buffer * fix formatting * fix formatting * fix data->is_aligned
This commit is contained in:
@@ -45,6 +45,21 @@ int test_3D(cl_device_id device, cl_context context, cl_command_queue queue, int
|
||||
{
|
||||
return test_image_set( device, context, queue, k3D );
|
||||
}
|
||||
int test_1Dbuffer(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements)
|
||||
{
|
||||
return test_image_set(device, context, queue, k1DBuffer);
|
||||
}
|
||||
int test_1DTo1Dbuffer(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements)
|
||||
{
|
||||
return test_image_set(device, context, queue, k1DTo1DBuffer);
|
||||
}
|
||||
int test_1DbufferTo1D(cl_device_id device, cl_context context,
|
||||
cl_command_queue queue, int num_elements)
|
||||
{
|
||||
return test_image_set(device, context, queue, k1DBufferTo1D);
|
||||
}
|
||||
int test_1Darray(cl_device_id device, cl_context context, cl_command_queue queue, int num_elements)
|
||||
{
|
||||
return test_image_set( device, context, queue, k1DArray );
|
||||
@@ -79,17 +94,11 @@ int test_3Dto2Darray(cl_device_id device, cl_context context, cl_command_queue q
|
||||
}
|
||||
|
||||
test_definition test_list[] = {
|
||||
ADD_TEST( 1D ),
|
||||
ADD_TEST( 2D ),
|
||||
ADD_TEST( 3D ),
|
||||
ADD_TEST( 1Darray ),
|
||||
ADD_TEST( 2Darray ),
|
||||
ADD_TEST( 2Dto3D ),
|
||||
ADD_TEST( 3Dto2D ),
|
||||
ADD_TEST( 2Darrayto2D ),
|
||||
ADD_TEST( 2Dto2Darray ),
|
||||
ADD_TEST( 2Darrayto3D ),
|
||||
ADD_TEST( 3Dto2Darray ),
|
||||
ADD_TEST(1D), ADD_TEST(2D), ADD_TEST(3D),
|
||||
ADD_TEST(1Darray), ADD_TEST(2Darray), ADD_TEST(2Dto3D),
|
||||
ADD_TEST(3Dto2D), ADD_TEST(2Darrayto2D), ADD_TEST(2Dto2Darray),
|
||||
ADD_TEST(2Darrayto3D), ADD_TEST(3Dto2Darray), ADD_TEST(1Dbuffer),
|
||||
ADD_TEST(1DTo1Dbuffer), ADD_TEST(1DbufferTo1D),
|
||||
};
|
||||
|
||||
const int test_num = ARRAY_SIZE( test_list );
|
||||
|
||||
Reference in New Issue
Block a user