Home
last modified time | relevance | path

Searched refs:imageInfo (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/external/OpenCL-CTS/test_conformance/images/clGetInfo/
Dtest_1D_2D_array.cpp18 extern int test_get_image_info_single( cl_context context, image_descriptor *imageInfo, MTdata d, c…
24 image_descriptor imageInfo = { 0 }; in test_get_image_info_1D_array() local
35 memset(&imageInfo, 0x0, sizeof(image_descriptor)); in test_get_image_info_1D_array()
36 imageInfo.format = format; in test_get_image_info_1D_array()
37 imageInfo.type = CL_MEM_OBJECT_IMAGE1D_ARRAY; in test_get_image_info_1D_array()
51 for( imageInfo.width = 1; imageInfo.width < 13; imageInfo.width++ ) in test_get_image_info_1D_array()
53 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_get_image_info_1D_array()
54 imageInfo.slicePitch = imageInfo.rowPitch; in test_get_image_info_1D_array()
55 for( imageInfo.arraySize = 2; imageInfo.arraySize < 9; imageInfo.arraySize++ ) in test_get_image_info_1D_array()
60 …u] 0x%x pitch %d)\n", (int)imageInfo.width, (int)imageInfo.arraySize, j, (unsigned int) all_host_p… in test_get_image_info_1D_array()
[all …]
Dtest_3D.cpp18 extern int test_get_image_info_single( cl_context context, image_descriptor *imageInfo, MTdata d, c…
24 image_descriptor imageInfo = { 0 }; in test_get_image_info_3D() local
36 memset(&imageInfo, 0x0, sizeof(image_descriptor)); in test_get_image_info_3D()
37 imageInfo.format = format; in test_get_image_info_3D()
38 imageInfo.type = CL_MEM_OBJECT_IMAGE3D; in test_get_image_info_3D()
39 pixelSize = get_pixel_size( imageInfo.format ); in test_get_image_info_3D()
54 for( imageInfo.width = 1; imageInfo.width < 13; imageInfo.width++ ) in test_get_image_info_3D()
56 imageInfo.rowPitch = imageInfo.width * pixelSize; in test_get_image_info_3D()
58 for( imageInfo.height = 1; imageInfo.height < 9; imageInfo.height++ ) in test_get_image_info_3D()
60 imageInfo.slicePitch = imageInfo.rowPitch * imageInfo.height; in test_get_image_info_3D()
[all …]
Dtest_2D.cpp18 int test_get_image_info_single( cl_context context, image_descriptor *imageInfo, MTdata d, cl_mem_f… in test_get_image_info_single() argument
27 generate_random_image_data( imageInfo, imageValues, d ); in test_get_image_info_single()
34 imageDesc.image_type = imageInfo->type; in test_get_image_info_single()
35 imageDesc.image_width = imageInfo->width; in test_get_image_info_single()
36 imageDesc.image_height = imageInfo->height; in test_get_image_info_single()
37 imageDesc.image_depth = imageInfo->depth; in test_get_image_info_single()
38 imageDesc.image_array_size = imageInfo->arraySize; in test_get_image_info_single()
45 imageInfo->rowPitch = imageInfo->width * get_pixel_size( imageInfo->format ); in test_get_image_info_single()
46 imageInfo->slicePitch = 0; in test_get_image_info_single()
47 switch (imageInfo->type) in test_get_image_info_single()
[all …]
/external/OpenCL-CTS/test_conformance/images/clReadWriteImage/
Dtest_read_3D.cpp19 image_descriptor *imageInfo, MTdata d, in test_read_image_3D() argument
28 generate_random_image_data( imageInfo, imageValues, d ); in test_read_image_3D()
32 … by %d...\n", gTestMipmaps?"mipmapped":"", (int)imageInfo->width, (int)imageInfo->height, (int)ima… in test_read_image_3D()
34 log_info( " with %llu mip levels\n", (unsigned long long) imageInfo->num_mip_levels ); in test_read_image_3D()
39 image = create_image_3d(context, flags, imageInfo->format, in test_read_image_3D()
40 imageInfo->width, imageInfo->height, in test_read_image_3D()
41 imageInfo->depth, 0, 0, NULL, &error); in test_read_image_3D()
44 …reate 2D image of size %d x %d x %d (%s)", (int)imageInfo->width, (int)imageInfo->height, (int)ima… in test_read_image_3D()
52 image_desc.image_width = imageInfo->width; in test_read_image_3D()
53 image_desc.image_height = imageInfo->height; in test_read_image_3D()
[all …]
Dtest_read_2D_array.cpp19 image_descriptor *imageInfo, MTdata d, in test_read_image_2D_array() argument
28 generate_random_image_data( imageInfo, imageValues, d ); in test_read_image_2D_array()
32 … by %d...\n", gTestMipmaps?"mipmapped":"", (int)imageInfo->width, (int)imageInfo->height, (int)ima… in test_read_image_2D_array()
34 log_info( " with %llu mip levels\n", (unsigned long long) imageInfo->num_mip_levels ); in test_read_image_2D_array()
40 image = create_image_2d_array(context, flags, imageInfo->format, in test_read_image_2D_array()
41 imageInfo->width, imageInfo->height, in test_read_image_2D_array()
42 imageInfo->arraySize, 0, 0, NULL, &error); in test_read_image_2D_array()
45 …2D image array of size %d x %d x %d (%s)", (int)imageInfo->width, (int)imageInfo->height, (int)ima… in test_read_image_2D_array()
53 image_desc.image_width = imageInfo->width; in test_read_image_2D_array()
54 image_desc.image_height = imageInfo->height; in test_read_image_2D_array()
[all …]
Dtest_read_1D_array.cpp19 image_descriptor *imageInfo, MTdata d, in test_read_image_1D_array() argument
28 generate_random_image_data( imageInfo, imageValues, d ); in test_read_image_1D_array()
32 …y of size %d by %d...\n", gTestMipmaps?"mipmapped":"", (int)imageInfo->width, (int)imageInfo->arra… in test_read_image_1D_array()
34 log_info( " with %llu mip levels\n", (unsigned long long) imageInfo->num_mip_levels ); in test_read_image_1D_array()
40 image = create_image_1d_array(context, flags, imageInfo->format, in test_read_image_1D_array()
41 imageInfo->width, imageInfo->arraySize, 0, in test_read_image_1D_array()
45 …Unable to create 1D image array of size %d x %d (%s)", (int)imageInfo->width, (int)imageInfo->arra… in test_read_image_1D_array()
53 image_desc.image_width = imageInfo->width; in test_read_image_1D_array()
54 image_desc.image_array_size = imageInfo->arraySize; in test_read_image_1D_array()
55 image_desc.num_mip_levels = imageInfo->num_mip_levels; in test_read_image_1D_array()
[all …]
Dtest_read_2D.cpp19 image_descriptor *imageInfo, MTdata d, in test_read_image_2D() argument
28 generate_random_image_data( imageInfo, imageValues, d ); in test_read_image_2D()
32 … %s image %d by %d...\n", gTestMipmaps?"mipmapped":"", (int)imageInfo->width, (int)imageInfo->heig… in test_read_image_2D()
34 log_info( " with %llu mip levels\n", (unsigned long long) imageInfo->num_mip_levels ); in test_read_image_2D()
41 create_image_2d(context, flags, imageInfo->format, imageInfo->width, in test_read_image_2D()
42 imageInfo->height, 0, NULL, &error); in test_read_image_2D()
45 …RROR: Unable to create 2D image of size %d x %d (%s)", (int)imageInfo->width, (int)imageInfo->heig… in test_read_image_2D()
53 image_desc.image_width = imageInfo->width; in test_read_image_2D()
54 image_desc.image_height = imageInfo->height; in test_read_image_2D()
55 image_desc.num_mip_levels = imageInfo->num_mip_levels; in test_read_image_2D()
[all …]
Dtest_read_1D.cpp19 image_descriptor *imageInfo, MTdata d, in test_read_image_1D() argument
28 generate_random_image_data( imageInfo, imageValues, d ); in test_read_image_1D()
32 … log_info( " - Creating %s 1D image %d...\n", gTestMipmaps?"mipmapped":"", (int)imageInfo->width ); in test_read_image_1D()
33 log_info( " with %llu mip levels\n", (unsigned long long) imageInfo->num_mip_levels ); in test_read_image_1D()
39 image = create_image_1d(context, flags, imageInfo->format, in test_read_image_1D()
40 imageInfo->width, 0, NULL, NULL, &error); in test_read_image_1D()
44 (int)imageInfo->width, IGetErrorString(error)); in test_read_image_1D()
52 image_desc.image_width = imageInfo->width; in test_read_image_1D()
53 image_desc.num_mip_levels = imageInfo->num_mip_levels; in test_read_image_1D()
55 image = clCreateImage(context, flags, imageInfo->format, &image_desc, NULL, in test_read_image_1D()
[all …]
/external/OpenCL-CTS/test_conformance/images/clCopyImage/
Dtest_copy_3D.cpp22 int test_copy_image_3D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MT… in test_copy_image_3D() argument
25 size_t region[] = { imageInfo->width, imageInfo->height, imageInfo->depth }; in test_copy_image_3D()
29 …size_t lod = (imageInfo->num_mip_levels > 1 )? (size_t)random_in_range( 0, imageInfo->num_mip_leve… in test_copy_image_3D()
31 region[ 0 ] = ( imageInfo->width >> lod ) ? ( imageInfo->width >> lod ) : 1; in test_copy_image_3D()
32 region[ 1 ] = ( imageInfo->height >> lod ) ? ( imageInfo->height >> lod ) : 1; in test_copy_image_3D()
33 region[ 2 ] = ( imageInfo->depth >> lod ) ? ( imageInfo->depth >> lod ) : 1; in test_copy_image_3D()
36 … return test_copy_image_generic( context, queue, imageInfo, imageInfo, origin, origin, region, d ); in test_copy_image_3D()
43 image_descriptor imageInfo = { 0 }; in test_copy_image_set_3D() local
47 imageInfo.format = format; in test_copy_image_set_3D()
48 imageInfo.type = CL_MEM_OBJECT_IMAGE3D; in test_copy_image_set_3D()
[all …]
Dtest_copy_2D_array.cpp22 …image_2D_array( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d ) in test_copy_image_2D_array() argument
25 size_t region[] = { imageInfo->width, imageInfo->height, imageInfo->arraySize }; in test_copy_image_2D_array()
27 size_t src_lod = 0, src_width_lod = imageInfo->width, src_height_lod = imageInfo->height; in test_copy_image_2D_array()
28 size_t dst_lod = 0, dst_width_lod = imageInfo->width, dst_height_lod = imageInfo->height; in test_copy_image_2D_array()
29 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_copy_image_2D_array()
34 max_mip_level = imageInfo->num_mip_levels; in test_copy_image_2D_array()
38 src_width_lod = ( imageInfo->width >> src_lod )? ( imageInfo->width >> src_lod ) : 1; in test_copy_image_2D_array()
39 dst_width_lod = ( imageInfo->width >> dst_lod )? ( imageInfo->width >> dst_lod ) : 1; in test_copy_image_2D_array()
40 src_height_lod = ( imageInfo->height >> src_lod )? ( imageInfo->height >> src_lod ) : 1; in test_copy_image_2D_array()
41 dst_height_lod = ( imageInfo->height >> dst_lod )? ( imageInfo->height >> dst_lod ) : 1; in test_copy_image_2D_array()
[all …]
Dtest_copy_1D_array.cpp21 …_size_1D_array( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d ) in test_copy_image_size_1D_array() argument
25 size_t src_lod = 0, src_width_lod = imageInfo->width, src_row_pitch_lod; in test_copy_image_size_1D_array()
26 size_t dst_lod = 0, dst_width_lod = imageInfo->width, dst_row_pitch_lod; in test_copy_image_size_1D_array()
27 size_t width_lod = imageInfo->width; in test_copy_image_size_1D_array()
32 max_mip_level = imageInfo->num_mip_levels; in test_copy_image_size_1D_array()
36 src_width_lod = ( imageInfo->width >> src_lod )? ( imageInfo->width >> src_lod ) : 1; in test_copy_image_size_1D_array()
37 dst_width_lod = ( imageInfo->width >> dst_lod )? ( imageInfo->width >> dst_lod ) : 1; in test_copy_image_size_1D_array()
39 src_row_pitch_lod = src_width_lod * get_pixel_size( imageInfo->format ); in test_copy_image_size_1D_array()
40 dst_row_pitch_lod = dst_width_lod * get_pixel_size( imageInfo->format ); in test_copy_image_size_1D_array()
46 regionSize[ 0 ] = imageInfo->width; in test_copy_image_size_1D_array()
[all …]
Dtest_copy_2D.cpp21 …_image_size_2D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d ) in test_copy_image_size_2D() argument
25 size_t src_lod = 0, src_width_lod = imageInfo->width, src_row_pitch_lod; in test_copy_image_size_2D()
26 size_t src_height_lod = imageInfo->height; in test_copy_image_size_2D()
27 size_t dst_lod = 0, dst_width_lod = imageInfo->width, dst_row_pitch_lod; in test_copy_image_size_2D()
28 size_t dst_height_lod = imageInfo->height; in test_copy_image_size_2D()
29 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_copy_image_size_2D()
34 max_mip_level = imageInfo->num_mip_levels; in test_copy_image_size_2D()
38 src_width_lod = ( imageInfo->width >> src_lod )? ( imageInfo->width >> src_lod ) : 1; in test_copy_image_size_2D()
39 dst_width_lod = ( imageInfo->width >> dst_lod )? ( imageInfo->width >> dst_lod ) : 1; in test_copy_image_size_2D()
40 src_height_lod = ( imageInfo->height >> src_lod )? ( imageInfo->height >> src_lod ) : 1; in test_copy_image_size_2D()
[all …]
Dtest_copy_1D.cpp21 …_image_size_1D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, MTdata d ) in test_copy_image_size_1D() argument
25 size_t src_lod = 0, src_width_lod = imageInfo->width, src_row_pitch_lod; in test_copy_image_size_1D()
26 size_t dst_lod = 0, dst_width_lod = imageInfo->width, dst_row_pitch_lod; in test_copy_image_size_1D()
27 size_t width_lod = imageInfo->width; in test_copy_image_size_1D()
32 max_mip_level = imageInfo->num_mip_levels; in test_copy_image_size_1D()
36 src_width_lod = ( imageInfo->width >> src_lod )? ( imageInfo->width >> src_lod ) : 1; in test_copy_image_size_1D()
37 dst_width_lod = ( imageInfo->width >> dst_lod )? ( imageInfo->width >> dst_lod ) : 1; in test_copy_image_size_1D()
39 src_row_pitch_lod = src_width_lod * get_pixel_size( imageInfo->format ); in test_copy_image_size_1D()
40 dst_row_pitch_lod = dst_width_lod * get_pixel_size( imageInfo->format ); in test_copy_image_size_1D()
46 regionSize[ 0 ] = imageInfo->width; in test_copy_image_size_1D()
[all …]
/external/OpenCL-CTS/test_conformance/images/clFillImage/
Dtest_fill_2D_array.cpp19 …t test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
23 …2D_array( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, ExplicitType ou… in test_fill_image_2D_array() argument
30 region[ 0 ] = imageInfo->width; in test_fill_image_2D_array()
31 region[ 1 ] = imageInfo->height; in test_fill_image_2D_array()
32 region[ 2 ] = imageInfo->arraySize; in test_fill_image_2D_array()
34 retCode = test_fill_image_generic( context, queue, imageInfo, origin, region, outputType, d ); in test_fill_image_2D_array()
44 …region[ 0 ] = ( imageInfo->width > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->width - 1, d … in test_fill_image_2D_array()
45 …region[ 1 ] = ( imageInfo->height > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->height - 1, … in test_fill_image_2D_array()
46 …region[ 2 ] = ( imageInfo->arraySize > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->arraySize… in test_fill_image_2D_array()
49 …origin[ 0 ] = ( imageInfo->width > region[ 0 ] ) ? (size_t)random_in_range( 0, (int)( imageInfo->w… in test_fill_image_2D_array()
[all …]
Dtest_fill_3D.cpp19 …t test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
23 int test_fill_image_3D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, Ex… in test_fill_image_3D() argument
30 region[ 0 ] = imageInfo->width; in test_fill_image_3D()
31 region[ 1 ] = imageInfo->height; in test_fill_image_3D()
32 region[ 2 ] = imageInfo->depth; in test_fill_image_3D()
34 retCode = test_fill_image_generic( context, queue, imageInfo, origin, region, outputType, d ); in test_fill_image_3D()
44 …region[ 0 ] = ( imageInfo->width > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->width - 1, d … in test_fill_image_3D()
45 …region[ 1 ] = ( imageInfo->height > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->height - 1, … in test_fill_image_3D()
46 …region[ 2 ] = ( imageInfo->depth > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->depth - 1, d … in test_fill_image_3D()
49 …origin[ 0 ] = ( imageInfo->width > region[ 0 ] ) ? (size_t)random_in_range( 0, (int)( imageInfo->w… in test_fill_image_3D()
[all …]
Dtest_fill_generic.cpp18 extern void read_image_pixel_float( void *imageData, image_descriptor *imageInfo, int x, int y, int…
25 …ext, cl_command_queue queue, BufferOwningPtr<char>& data, image_descriptor *imageInfo, int *error ) in create_image() argument
33 imageDesc.image_type = imageInfo->type; in create_image()
34 imageDesc.image_width = imageInfo->width; in create_image()
35 imageDesc.image_height = imageInfo->height; in create_image()
36 imageDesc.image_depth = imageInfo->depth; in create_image()
37 imageDesc.image_array_size = imageInfo->arraySize; in create_image()
38 imageDesc.image_row_pitch = gEnablePitch ? imageInfo->rowPitch : 0; in create_image()
39 imageDesc.image_slice_pitch = gEnablePitch ? imageInfo->slicePitch : 0; in create_image()
41 switch (imageInfo->type) in create_image()
[all …]
Dtest_fill_1D_array.cpp19 …t test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
23 …1D_array( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, ExplicitType ou… in test_fill_image_size_1D_array() argument
30 region[ 0 ] = imageInfo->width; in test_fill_image_size_1D_array()
31 region[ 1 ] = imageInfo->arraySize; in test_fill_image_size_1D_array()
34 retCode = test_fill_image_generic( context, queue, imageInfo, origin, region, outputType, d ); in test_fill_image_size_1D_array()
44 …region[ 0 ] = ( imageInfo->width > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->width - 1, d … in test_fill_image_size_1D_array()
45 …region[ 1 ] = ( imageInfo->arraySize > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->arraySize… in test_fill_image_size_1D_array()
48 …origin[ 0 ] = ( imageInfo->width > region[ 0 ] ) ? (size_t)random_in_range( 0, (int)( imageInfo->w… in test_fill_image_size_1D_array()
49 …origin[ 1 ] = ( imageInfo->arraySize > region[ 1 ] ) ? (size_t)random_in_range( 0, (int)( imageInf… in test_fill_image_size_1D_array()
52 … retCode = test_fill_image_generic( context, queue, imageInfo, origin, region, outputType, d ); in test_fill_image_size_1D_array()
[all …]
Dtest_fill_2D.cpp19 …t test_fill_image_generic( cl_context context, cl_command_queue queue, image_descriptor *imageInfo,
23 …_size_2D( cl_context context, cl_command_queue queue, image_descriptor *imageInfo, ExplicitType ou… in test_fill_image_size_2D() argument
30 region[ 0 ] = imageInfo->width; in test_fill_image_size_2D()
31 region[ 1 ] = imageInfo->height; in test_fill_image_size_2D()
34 retCode = test_fill_image_generic( context, queue, imageInfo, origin, region, outputType, d ); in test_fill_image_size_2D()
44 …region[ 0 ] = ( imageInfo->width > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->width - 1, d … in test_fill_image_size_2D()
45 …region[ 1 ] = ( imageInfo->height > 8 ) ? (size_t)random_in_range( 8, (int)imageInfo->height - 1, … in test_fill_image_size_2D()
48 …origin[ 0 ] = ( imageInfo->width > region[ 0 ] ) ? (size_t)random_in_range( 0, (int)( imageInfo->w… in test_fill_image_size_2D()
49 …origin[ 1 ] = ( imageInfo->height > region[ 1 ] ) ? (size_t)random_in_range( 0, (int)( imageInfo->… in test_fill_image_size_2D()
52 … retCode = test_fill_image_generic( context, queue, imageInfo, origin, region, outputType, d ); in test_fill_image_size_2D()
[all …]
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/
Dtest_read_3D.cpp97 image_descriptor imageInfo = { 0x0 }; in test_read_image_set_3D() local
99 imageInfo.format = format; in test_read_image_set_3D()
100 imageInfo.type = CL_MEM_OBJECT_IMAGE3D; in test_read_image_set_3D()
158 for( imageInfo.width = 1; imageInfo.width < 13; imageInfo.width++ ) in test_read_image_set_3D()
160 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_3D()
162 for( imageInfo.height = 1; imageInfo.height < 9; imageInfo.height++ ) in test_read_image_set_3D()
164 imageInfo.slicePitch = imageInfo.rowPitch * imageInfo.height; in test_read_image_set_3D()
165 for( imageInfo.depth = 2; imageInfo.depth < 9; imageInfo.depth++ ) in test_read_image_set_3D()
168imageInfo.num_mip_levels = (cl_uint) (2+rand()%(compute_max_mip_levels(imageInfo.width,imageInfo.h… in test_read_image_set_3D()
171 …log_info( " at size %d,%d,%d\n", (int)imageInfo.width, (int)imageInfo.height, (int)imageInfo.dep… in test_read_image_set_3D()
[all …]
Dtest_write_2D_array.cpp25 …n bool validate_float_write_results( float *expected, float *actual, image_descriptor *imageInfo );
26 …ool validate_half_write_results( cl_half *expected, cl_half *actual, image_descriptor *imageInfo );
75 image_descriptor *imageInfo, ExplicitType inputType, MTdata d ) in test_write_image_2D_array() argument
99 size_t pixelSize = get_pixel_size( imageInfo->format ); in test_write_image_2D_array()
114 if( imageInfo->format->image_channel_data_type == CL_HALF_FLOAT ) in test_write_image_2D_array()
120 create_random_image_data( inputType, imageInfo, imageValues, d ); in test_write_image_2D_array()
124 if( inputType == kFloat && imageInfo->format->image_channel_data_type != CL_FLOAT ) in test_write_image_2D_array()
127 if(is_sRGBA_order(imageInfo->format->image_channel_order)) in test_write_image_2D_array()
138 for( size_t z = 0; z < imageInfo->arraySize; z++ ) in test_write_image_2D_array()
140 for( size_t y = 0; y < imageInfo->height; y++ ) in test_write_image_2D_array()
[all …]
Dtest_write_3D.cpp25 …n bool validate_float_write_results( float *expected, float *actual, image_descriptor *imageInfo );
26 …ool validate_half_write_results( cl_half *expected, cl_half *actual, image_descriptor *imageInfo );
77 image_descriptor *imageInfo, ExplicitType inputType, MTdata d ) in test_write_image_3D() argument
102 size_t pixelSize = get_pixel_size( imageInfo->format ); in test_write_image_3D()
117 if( imageInfo->format->image_channel_data_type == CL_HALF_FLOAT ) in test_write_image_3D()
123 create_random_image_data( inputType, imageInfo, imageValues, d ); in test_write_image_3D()
127 if( inputType == kFloat && imageInfo->format->image_channel_data_type != CL_FLOAT ) in test_write_image_3D()
130 if(is_sRGBA_order(imageInfo->format->image_channel_order)) in test_write_image_3D()
141 for( size_t z = 0; z < imageInfo->depth; z++ ) in test_write_image_3D()
143 for( size_t y = 0; y < imageInfo->height; y++ ) in test_write_image_3D()
[all …]
/external/OpenCL-CTS/test_conformance/images/samplerlessReads/
Dtest_read_3D.cpp51 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_3D() argument
59 generate_random_image_data( imageInfo, imageValues, d ); in test_read_image_3D()
66 image_desc.image_width = imageInfo->width; in test_read_image_3D()
67 image_desc.image_height = imageInfo->height; in test_read_image_3D()
68 image_desc.image_depth = imageInfo->depth; in test_read_image_3D()
69 image_desc.image_row_pitch = ( gEnablePitch ? imageInfo->rowPitch : 0 ); in test_read_image_3D()
70 image_desc.image_slice_pitch = ( gEnablePitch ? imageInfo->slicePitch : 0 ); in test_read_image_3D()
72 …read_only_image = clCreateImage( context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, imageInfo->form… in test_read_image_3D()
76 …ch %d, %d ) (%s)", (int)imageInfo->width, (int)imageInfo->height, (int)imageInfo->depth, (int)imag… in test_read_image_3D()
84 imageInfo->format, in test_read_image_3D()
[all …]
Dtest_read_2D_array.cpp52 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_2D_array() argument
60 generate_random_image_data( imageInfo, imageValues, d ); in test_read_image_2D_array()
67 image_desc.image_width = imageInfo->width; in test_read_image_2D_array()
68 image_desc.image_height = imageInfo->height; in test_read_image_2D_array()
69 image_desc.image_array_size = imageInfo->arraySize; in test_read_image_2D_array()
70 image_desc.image_row_pitch = ( gEnablePitch ? imageInfo->rowPitch : 0 ); in test_read_image_2D_array()
71 image_desc.image_slice_pitch = ( gEnablePitch ? imageInfo->slicePitch : 0 ); in test_read_image_2D_array()
73 …read_only_image = clCreateImage( context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR, imageInfo->form… in test_read_image_2D_array()
77 … %d, %d ) (%s)", (int)imageInfo->width, (int)imageInfo->height, (int)imageInfo->arraySize, (int)im… in test_read_image_2D_array()
85 imageInfo->format, in test_read_image_2D_array()
[all …]
/external/OpenCL-CTS/test_conformance/images/kernel_image_methods/
Dtest_2D.cpp68 image_descriptor *imageInfo, MTdata d, in test_get_image_info_single() argument
82 generate_random_image_data( imageInfo, imageValues, d ); in test_get_image_info_single()
86 … log_info( " - Creating image %d by %d...\n", (int)imageInfo->width, (int)imageInfo->height ); in test_get_image_info_single()
88 if( imageInfo->depth != 0 ) in test_get_image_info_single()
89 image = create_image_3d(context, flags, imageInfo->format, in test_get_image_info_single()
90 imageInfo->width, imageInfo->height, in test_get_image_info_single()
91 imageInfo->depth, 0, 0, NULL, &error); in test_get_image_info_single()
94 create_image_2d(context, flags, imageInfo->format, imageInfo->width, in test_get_image_info_single()
95 imageInfo->height, 0, NULL, &error); in test_get_image_info_single()
98 …o create image of size %d x %d x %d (%s)", (int)imageInfo->width, (int)imageInfo->height, (int)ima… in test_get_image_info_single()
[all …]
Dtest_3D.cpp20 image_descriptor *imageInfo, MTdata d,
29 image_descriptor imageInfo = { 0 }; in test_get_image_info_3D() local
43 imageInfo.type = CL_MEM_OBJECT_IMAGE3D; in test_get_image_info_3D()
44 imageInfo.format = format; in test_get_image_info_3D()
45 pixelSize = get_pixel_size( imageInfo.format ); in test_get_image_info_3D()
60 for( imageInfo.width = 1; imageInfo.width < 13; imageInfo.width++ ) in test_get_image_info_3D()
62 imageInfo.rowPitch = imageInfo.width * pixelSize; in test_get_image_info_3D()
64 for( imageInfo.height = 1; imageInfo.height < 9; imageInfo.height++ ) in test_get_image_info_3D()
66 imageInfo.slicePitch = imageInfo.rowPitch * imageInfo.height; in test_get_image_info_3D()
67 for( imageInfo.depth = 2; imageInfo.depth < 9; imageInfo.depth++ ) in test_get_image_info_3D()
[all …]

12345678910>>...15