/external/OpenCL-CTS/test_conformance/images/clReadWriteImage/ |
D | test_read_1D.cpp | 89 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_1D() 112 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D() 128 …_lod, (int)row_pitch_lod, (int)row_pitch_lod - (int)width_lod * (int)get_pixel_size( imageInfo->fo… in test_read_image_1D() 142 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_1D() 145 …ar*)imageValues + imgValMipLevelOffset, imageInfo, destPtr + offset, get_pixel_size( imageInfo->fo… in test_read_image_1D() 148 int returnedOffset = ( offset / (int)get_pixel_size( imageInfo->format ) ) - outX; in test_read_image_1D() 150 …if( memcmp( sourcePtr + returnedOffset * get_pixel_size( imageInfo->format ), destPtr, get_pixel_s… in test_read_image_1D() 161 imgValMipLevelOffset += width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D() 179 pixelSize = get_pixel_size( imageInfo.format ); in test_read_image_set_1D() 245 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_1D()
|
D | test_read_2D.cpp | 90 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_2D() 112 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D() 134 …_lod, (int)row_pitch_lod, (int)row_pitch_lod - (int)width_lod * (int)get_pixel_size( imageInfo->fo… in test_read_image_2D() 148 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_2D() 151 …ar*)imageValues + imgValMipLevelOffset, imageInfo, destPtr + offset, get_pixel_size( imageInfo->fo… in test_read_image_2D() 154 …int returnedOffset = ( (int)y * (int)width_lod + offset / (int)get_pixel_size( imageInfo->format )… in test_read_image_2D() 156 …if( memcmp( sourcePtr + returnedOffset * get_pixel_size( imageInfo->format ), destPtr, get_pixel_s… in test_read_image_2D() 170 imgValMipLevelOffset += width_lod * height_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D() 188 pixelSize = get_pixel_size( imageInfo.format ); in test_read_image_set_2D() 258 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_2D()
|
D | test_read_1D_array.cpp | 91 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_1D_array() 113 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D_array() 131 …Size, (int)row_pitch_lod, (int)row_pitch_lod - (int)width_lod * (int)get_pixel_size( imageInfo->fo… in test_read_image_1D_array() 145 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_1D_array() 148 …ge( imageValues + imgValMipLevelOffset, imageInfo, destPtr + offset, get_pixel_size( imageInfo->fo… in test_read_image_1D_array() 151 …int returnedOffset = ( (int)y * (int)width_lod + offset / (int)get_pixel_size( imageInfo->format )… in test_read_image_1D_array() 153 …if( memcmp( sourcePtr + returnedOffset * get_pixel_size( imageInfo->format ), destPtr, get_pixel_s… in test_read_image_1D_array() 167 … imgValMipLevelOffset += width_lod * imageInfo->arraySize * get_pixel_size( imageInfo->format ); in test_read_image_1D_array() 185 pixelSize = get_pixel_size( imageInfo.format ); in test_read_image_set_1D_array() 258 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_1D_array()
|
D | test_read_2D_array.cpp | 92 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_2D_array() 115 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D_array() 145 …imgValMipLevelOffset += width_lod * height_lod * imageInfo->arraySize * get_pixel_size( imageInfo-… in test_read_image_2D_array() 162 pixelSize = get_pixel_size( imageInfo.format ); in test_read_image_set_2D_array() 241 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_2D_array()
|
D | test_read_3D.cpp | 93 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_3D() 116 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_3D() 150 … imgValMipLevelOffset += width_lod * height_lod * depth_lod * get_pixel_size( imageInfo->format ); in test_read_image_3D() 167 pixelSize = get_pixel_size( imageInfo.format ); in test_read_image_set_3D() 244 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_3D()
|
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_read_3D.cpp | 160 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_3D() 194 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_3D() 215 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_3D() 242 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_3D() 247 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_3D() 253 imageInfo.rowPitch += extraWidth * get_pixel_size( imageInfo.format ); in test_read_image_set_3D()
|
D | test_write_image.cpp | 96 size_t pixelSize = get_pixel_size( imageInfo->format ); in test_write_image() 364 resultSize = width_lod * height_lod * get_pixel_size(imageInfo->format); in test_write_image() 481 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image() 593 resultPtr += get_pixel_size( imageInfo->format ); in test_write_image() 597 nextLevelOffset += width_lod * height_lod * get_pixel_size( imageInfo->format); in test_write_image() 709 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_set() 735 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_set() 750 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_set() 786 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_set() 790 imageInfo.rowPitch += extraWidth * get_pixel_size( imageInfo.format ); in test_write_image_set() [all …]
|
D | test_write_3D.cpp | 102 size_t pixelSize = get_pixel_size( imageInfo->format ); in test_write_image_3D() 449 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_3D() 562 resultPtr += get_pixel_size( imageInfo->format ); in test_write_image_3D() 650 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_3D_set() 681 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_3D_set() 698 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_3D_set() 725 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_3D_set() 730 imageInfo.rowPitch += extraWidth * get_pixel_size( imageInfo.format ); in test_write_image_3D_set()
|
D | test_write_2D_array.cpp | 99 size_t pixelSize = get_pixel_size( imageInfo->format ); in test_write_image_2D_array() 442 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_2D_array() 555 resultPtr += get_pixel_size( imageInfo->format ); in test_write_image_2D_array() 644 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_2D_array_set() 675 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_2D_array_set() 692 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_2D_array_set() 724 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_write_image_2D_array_set() 729 imageInfo.rowPitch += extraWidth * get_pixel_size( imageInfo.format ); in test_write_image_2D_array_set()
|
D | test_write_1D.cpp | 287 resultSize = width_lod * get_pixel_size( imageInfo->format ); in test_write_image_1D() 399 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_1D() 510 resultPtr += get_pixel_size( imageInfo->format ); in test_write_image_1D() 514 nextLevelOffset += width_lod * get_pixel_size( imageInfo->format ); in test_write_image_1D() 548 pixelSize = get_pixel_size( imageInfo.format ); in test_write_image_1D_set()
|
D | test_write_1D_array.cpp | 76 size_t pixelSize = get_pixel_size( imageInfo->format ); in test_write_image_1D_array() 300 resultSize = width_lod * get_pixel_size(imageInfo->format) * imageInfo->arraySize; in test_write_image_1D_array() 534 … nextLevelOffset += width_lod * imageInfo->arraySize * get_pixel_size(imageInfo->format); in test_write_image_1D_array() 569 pixelSize = get_pixel_size( imageInfo.format ); in test_write_image_1D_array_set()
|
/external/OpenCL-CTS/test_conformance/images/clCopyImage/ |
D | test_copy_2D_3D.cpp | 24 size_t pixelSize = get_pixel_size( imageInfo->format ); in set_image_dimensions() 85 twoImage_row_pitch_lod = twoImage_width_lod * get_pixel_size( twoImage->format ); in test_copy_image_size_2D_3D() 86 threeImage_row_pitch_lod = threeImage_width_lod * get_pixel_size( threeImage->format ); in test_copy_image_size_2D_3D() 255 … srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_2D_3D() 257 … dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_2D_3D() 302 srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_2D_3D() 304 dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_2D_3D() 355 … srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_2D_3D() 357 … dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_2D_3D()
|
D | test_copy_2D_2D_array.cpp | 24 size_t pixelSize = get_pixel_size( imageInfo->format ); in set_image_dimensions() 88 twoImage_row_pitch_lod = twoImage_width_lod * get_pixel_size( twoImage->format ); in test_copy_image_size_2D_2D_array() 89 threeImage_row_pitch_lod = threeImage_width_lod * get_pixel_size( threeImage->format ); in test_copy_image_size_2D_2D_array() 249 … srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_2D_2D_array() 251 … dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_2D_2D_array() 302 srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_2D_2D_array() 304 dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_2D_2D_array() 368 … srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_2D_2D_array() 370 … dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_2D_2D_array()
|
D | test_copy_1D.cpp | 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() 107 pixelSize = get_pixel_size( imageInfo.format ); in test_copy_image_set_1D() 191 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_copy_image_set_1D()
|
D | test_copy_2D.cpp | 44 src_row_pitch_lod = src_width_lod * get_pixel_size( imageInfo->format ); in test_copy_image_size_2D() 45 dst_row_pitch_lod = dst_width_lod * get_pixel_size( imageInfo->format ); in test_copy_image_size_2D() 118 pixelSize = get_pixel_size( imageInfo.format ); in test_copy_image_set_2D() 210 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_copy_image_set_2D()
|
D | test_copy_1D_array.cpp | 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() 111 pixelSize = get_pixel_size( imageInfo.format ); in test_copy_image_set_1D_array() 206 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_copy_image_set_1D_array()
|
D | test_copy_3D_2D_array.cpp | 24 size_t pixelSize = get_pixel_size( imageInfo->format ); in set_image_dimensions() 273 … srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_3D_2D_array() 275 … dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_3D_2D_array() 322 srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_3D_2D_array() 324 dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_3D_2D_array() 387 … srcImageInfo.rowPitch = srcImageInfo.width * get_pixel_size( srcImageInfo.format ); in test_copy_image_set_3D_2D_array() 389 … dstImageInfo.rowPitch = dstImageInfo.width * get_pixel_size( dstImageInfo.format ); in test_copy_image_set_3D_2D_array()
|
D | test_copy_generic.cpp | 216 row_pitch_lod = width * get_pixel_size(imageInfo->format); in create_image() 502 size_t scanlineSize = dstImageInfo->width * get_pixel_size( dstImageInfo->format ); in test_copy_image_generic() 510 scanlineSize = dst_width_lod * get_pixel_size(dstImageInfo->format); in test_copy_image_generic() 551 size_t pixel_size = get_pixel_size( dstImageInfo->format ); in test_copy_image_generic()
|
D | test_copy_3D.cpp | 49 pixelSize = get_pixel_size( imageInfo.format ); in test_copy_image_set_3D() 151 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_copy_image_set_3D()
|
D | test_copy_2D_array.cpp | 63 pixelSize = get_pixel_size( imageInfo.format ); in test_copy_image_set_2D_array() 165 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_copy_image_set_2D_array()
|
/external/OpenCL-CTS/test_conformance/images/clFillImage/ |
D | test_fill_generic.cpp | 205 memcpy( dst, src, imageInfo->width * get_pixel_size(imageInfo->format) ); in create_image() 230 size_t pixelSize = get_pixel_size( imageInfo->format ); in fill_region_with_value() 344 void* verificationValue = malloc(get_pixel_size(imageInfo->format)); in test_fill_image_generic() 365 void* verificationValue = malloc(get_pixel_size(imageInfo->format)); in test_fill_image_generic() 386 void* verificationValue = malloc(get_pixel_size(imageInfo->format)); in test_fill_image_generic() 431 size_t scanlineSize = imageInfo->width * get_pixel_size( imageInfo->format ); in test_fill_image_generic() 482 size_t pixel_size = get_pixel_size( imageInfo->format ); in test_fill_image_generic()
|
/external/OpenCL-CTS/test_conformance/images/clGetInfo/ |
D | test_1D_2D_array.cpp | 53 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_get_image_info_1D_array() 84 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_get_image_info_1D_array() 113 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_get_image_info_1D_array() 160 pixelSize = get_pixel_size( imageInfo.format ); in test_get_image_info_2D_array()
|
D | test_2D.cpp | 45 imageInfo->rowPitch = imageInfo->width * get_pixel_size( imageInfo->format ); in test_get_image_info_single() 116 if( outElementSize != get_pixel_size( imageInfo->format ) ) in test_get_image_info_single() 119 (int)get_pixel_size( imageInfo->format ), (int)outElementSize ); in test_get_image_info_single() 278 pixelSize = get_pixel_size( imageInfo.format ); in test_get_image_info_2D()
|
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.cpp | 272 uint32_t get_pixel_size(const cl_image_format *format) in get_pixel_size() function 335 return next_power_of_two(get_pixel_size(format)); in get_pixel_alignment() 416 size_t pixel_size = get_pixel_size(imageInfo->format); in print_first_pixel_difference_error() 713 size_t raw_pixel_size = get_pixel_size(format); in get_max_sizes() 1128 size_t pixelRowBytes = imageInfo->width * get_pixel_size(imageInfo->format); in generate_random_image_data() 1300 row_pitch_lod = width_lod * get_pixel_size(imageInfo->format); in read_image_pixel_float() 1329 size_t pixelSize = get_pixel_size(format); in read_image_pixel_float() 1887 row_pitch_lod = width_lod * get_pixel_size(imageInfo->format); in sample_image_pixel_float_offset() 2338 row_pitch = width * get_pixel_size(imageInfo->format); in debug_find_vector_in_image() 2448 size_t vectorSize = get_pixel_size(imageInfo->format); in debug_find_pixel_in_image() [all …]
|
/external/OpenCL-CTS/test_conformance/images/samplerlessReads/ |
D | test_read_2D_array.cpp | 194 pixelSize = get_pixel_size( imageInfo.format ); in test_read_image_set_2D_array() 256 imageInfo.rowPitch = imageInfo.width * get_pixel_size( imageInfo.format ); in test_read_image_set_2D_array()
|