/external/OpenCL-CTS/test_conformance/images/clCopyImage/ |
D | test_copy_2D.cpp | 29 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_copy_image_size_2D() local 43 height_lod = ( src_height_lod > dst_height_lod ) ? dst_height_lod : src_height_lod; in test_copy_image_size_2D() 60 regionSize[ 1 ] = height_lod; in test_copy_image_size_2D() 82 height_lod = ( src_height_lod > dst_height_lod ) ? dst_height_lod : src_height_lod; in test_copy_image_size_2D() 88 …regionSize[ 1 ] = ( height_lod > 8 ) ? (size_t)random_in_range( 8, (int)height_lod - 1, d ) : heig… in test_copy_image_size_2D() 92 …sourcePos[ 1 ] = ( height_lod > regionSize[ 1 ] ) ? (size_t)random_in_range( 0, (int)( height_lod … in test_copy_image_size_2D() 95 …destPos[ 1 ] = ( height_lod > regionSize[ 1 ] ) ? (size_t)random_in_range( 0, (int)( height_lod - … in test_copy_image_size_2D()
|
D | test_copy_2D_3D.cpp | 70 size_t width_lod, height_lod; in test_copy_image_size_2D_3D() local 90 …height_lod = ( twoImage_height_lod > threeImage_height_lod ) ? threeImage_height_lod : twoImage_h… in test_copy_image_size_2D_3D() 96 regionSize[ 1 ] = height_lod; in test_copy_image_size_2D_3D() 109 regionSize[ 1 ] = height_lod; in test_copy_image_size_2D_3D() 122 regionSize[ 1 ] = height_lod; in test_copy_image_size_2D_3D() 145 …height_lod = ( twoImage_height_lod > threeImage_height_lod ) ? threeImage_height_lod : twoImage_h… in test_copy_image_size_2D_3D() 154 regionSize[ 1 ] = ( height_lod > 8) ? random_in_range( 8, height_lod, d ): height_lod; in test_copy_image_size_2D_3D()
|
D | test_copy_2D_2D_array.cpp | 74 size_t width_lod, height_lod; in test_copy_image_size_2D_2D_array() local 93 …height_lod = ( twoImage_height_lod > threeImage_height_lod ) ? threeImage_height_lod : twoImage_h… in test_copy_image_size_2D_2D_array() 99 regionSize[ 1 ] = height_lod; in test_copy_image_size_2D_2D_array() 111 regionSize[ 1 ] = height_lod; in test_copy_image_size_2D_2D_array() 123 regionSize[ 1 ] = height_lod; in test_copy_image_size_2D_2D_array() 146 …height_lod = ( twoImage_height_lod > threeImage_height_lod ) ? threeImage_height_lod : twoImage_h… in test_copy_image_size_2D_2D_array() 154 regionSize[ 1 ] = ( height_lod > 8) ? random_in_range( 8, height_lod, d ): height_lod; in test_copy_image_size_2D_2D_array()
|
D | test_copy_2D_array.cpp | 29 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_copy_image_2D_array() local 43 height_lod = ( src_height_lod > dst_height_lod ) ? dst_height_lod : src_height_lod; in test_copy_image_2D_array() 46 region[ 1 ] = height_lod; in test_copy_image_2D_array()
|
D | test_copy_3D_2D_array.cpp | 70 size_t width_lod = 0, height_lod = 0, depth_lod = 0; in test_copy_image_size_3D_2D_array() local 87 …height_lod = ( twoImage_height_lod > threeImage_height_lod ) ? threeImage_height_lod : twoImage_h… in test_copy_image_size_3D_2D_array() 109 regionSize[ 1 ] = height_lod; in test_copy_image_size_3D_2D_array() 125 regionSize[ 1 ] = height_lod; in test_copy_image_size_3D_2D_array() 152 …height_lod = ( twoImage_height_lod > threeImage_height_lod ) ? threeImage_height_lod : twoImage_h… in test_copy_image_size_3D_2D_array() 161 regionSize[ 1 ] = random_in_range( 1, height_lod, d ); in test_copy_image_size_3D_2D_array()
|
/external/OpenCL-CTS/test_conformance/images/clReadWriteImage/ |
D | test_read_2D_array.cpp | 88 size_t width_lod, height_lod, depth_lod, row_pitch_lod, slice_pitch_lod; in test_read_image_2D_array() local 91 height_lod = (imageInfo->height >> lod) ? (imageInfo->height >> lod) : 1; in test_read_image_2D_array() 93 slice_pitch_lod = gTestMipmaps ? (row_pitch_lod * height_lod): imageInfo->slicePitch; in test_read_image_2D_array() 95 region[1] = height_lod; in test_read_image_2D_array() 106 … write to 2D image array of size %d x %d x %d\n", (int)width_lod, (int)height_lod, (int)imageInfo-… in test_read_image_2D_array() 116 size_t pageSize = scanlineSize * height_lod; in test_read_image_2D_array() 132 for( size_t y = 0; y < height_lod; y++ ) in test_read_image_2D_array() 136 …age size %d,%d,%d pitch %d,%d\n", (int)y, (int)z, (int)width_lod, (int)height_lod, (int)imageInfo-… in test_read_image_2D_array() 142 sourcePtr += slice_pitch_lod - ( row_pitch_lod * height_lod ); in test_read_image_2D_array() 143 destPtr += pageSize - scanlineSize * height_lod; in test_read_image_2D_array() [all …]
|
D | test_read_3D.cpp | 88 size_t width_lod, height_lod, depth_lod, row_pitch_lod, slice_pitch_lod; in test_read_image_3D() local 91 height_lod = (imageInfo->height >> lod) ? (imageInfo->height >> lod) : 1; in test_read_image_3D() 94 slice_pitch_lod = gTestMipmaps ? (row_pitch_lod * height_lod): imageInfo->slicePitch; in test_read_image_3D() 96 region[1] = height_lod; in test_read_image_3D() 106 …ize %d x %d x %d\n", gTestMipmaps?"mipmapped":"", (int)width_lod, (int)height_lod, (int)depth_lod … in test_read_image_3D() 117 size_t pageSize = scanlineSize * height_lod; in test_read_image_3D() 133 for( size_t y = 0; y < height_lod; y++ ) in test_read_image_3D() 141 …age size %d,%d,%d pitch %d,%d\n", (int)y, (int)z, (int)width_lod, (int)height_lod, (int)depth_lod,… in test_read_image_3D() 147 sourcePtr += slice_pitch_lod - ( row_pitch_lod * height_lod ); in test_read_image_3D() 148 destPtr += pageSize - scanlineSize * height_lod; in test_read_image_3D() [all …]
|
D | test_read_2D.cpp | 86 size_t width_lod, height_lod, row_pitch_lod; in test_read_image_2D() local 89 height_lod = (imageInfo->height >> lod) ? (imageInfo->height >> lod) : 1; in test_read_image_2D() 93 region[1] = height_lod; in test_read_image_2D() 102 …_error( "ERROR: Unable to write to 2D image of size %d x %d \n", (int)width_lod, (int)height_lod ); in test_read_image_2D() 113 size_t imageSize = scanlineSize * height_lod; in test_read_image_2D() 126 for( size_t y = 0; y < height_lod; y++ ) in test_read_image_2D() 134 … size %d,%d pitch %d (extra %d bytes)\n", (int)y, (int)width_lod, (int)height_lod, (int)row_pitch_… in test_read_image_2D() 170 imgValMipLevelOffset += width_lod * height_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D()
|
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_iterations.cpp | 334 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in InitFloatCoords() local 339 height_lod = (imageInfo->height >> lod)?(imageInfo->height >> lod):1; in InitFloatCoords() 343 for( size_t y = 0; y < height_lod; y++ ) in InitFloatCoords() 354 for( size_t y = 0; y < height_lod; y++ ) in InitFloatCoords() 367 for( size_t y = 0; y < height_lod; y++ ) in InitFloatCoords() 372 … yOffsets[ i ] = (float) CLAMP( (double) yOffsets[ i ], 0.0, (double)height_lod - 1.0); in InitFloatCoords() 380 for( size_t y = 0; y < height_lod; y++ ) in InitFloatCoords() 385 yOffsets[ i ] = (float) ((float) yOffsets[ i ] / (float) height_lod); in InitFloatCoords() 396 size_t height_lod = (imageInfo->height >> lod ) ?(imageInfo->height >> lod ) : 1; in validate_image_2D_depth_results() local 406 for( size_t y = 0, j = 0; y < height_lod; y++ ) in validate_image_2D_depth_results() [all …]
|
D | test_common.cpp | 126 size_t width_lod, height_lod, depth_lod; in InitFloatCoordsCommon() local 130 height_lod = in InitFloatCoordsCommon() 137 for (size_t y = 0; y < height_lod; y++) in InitFloatCoordsCommon() 144 (float)((double)yOffsets[i] / (double)height_lod); in InitFloatCoordsCommon() 446 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, in test_read_image() local 454 size_t resultValuesSize = width_lod * height_lod * depth_lod in test_read_image() 504 threads[1] = (size_t)height_lod; in test_read_image() 514 width_lod * height_lod * depth_lod in test_read_image() 538 for (size_t y = 0; y < height_lod; y++) in test_read_image() 856 for (size_t y = 0; y < height_lod; y++) in test_read_image() [all …]
|
D | test_write_3D.cpp | 289 size_t height_lod = imageInfo->height; in test_write_image_3D() local 304 threads[1] = (size_t)height_lod; in test_write_image_3D() 313 * height_lod * depth_lod, in test_write_image_3D() 327 resultSize = width_lod * height_lod * depth_lod * pixelSize; in test_write_image_3D() 338 region[1] = height_lod; in test_write_image_3D() 350 for( size_t y = 0; y < height_lod; y++ ) in test_write_image_3D() 354 …ultPtr = (char *)resultValues + y * width_lod * pixelSize + z * width_lod * height_lod * pixelSize; in test_write_image_3D() 567 nextLevelOffset += width_lod * height_lod * depth_lod * pixelSize; in test_write_image_3D() 569 height_lod = ( height_lod >> 1 ) ? ( height_lod >> 1 ) : 1; in test_write_image_3D()
|
D | test_write_2D_array.cpp | 284 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, nextLevelOffset = 0; in test_write_image_2D_array() local 298 threads[1] = (size_t)height_lod; in test_write_image_2D_array() 307 * height_lod * imageInfo->arraySize, in test_write_image_2D_array() 320 resultSize = width_lod * height_lod *imageInfo->arraySize * pixelSize; in test_write_image_2D_array() 331 region[1] = height_lod; in test_write_image_2D_array() 343 for( size_t y = 0; y < height_lod; y++ ) in test_write_image_2D_array() 347 …ultPtr = (char *)resultValues + y * width_lod * pixelSize + z * width_lod * height_lod * pixelSize; in test_write_image_2D_array() 560 nextLevelOffset += width_lod*height_lod*imageInfo->arraySize*pixelSize; in test_write_image_2D_array() 562 height_lod = (height_lod >> 1) ? (height_lod >> 1) : 1; in test_write_image_2D_array()
|
D | test_read_2D_array.cpp | 223 size_t height_lod = imageInfo->height; in InitFloatCoords() local 227 height_lod = ( imageInfo->height >> lod) ?( imageInfo->height >> lod) : 1; in InitFloatCoords() 234 for( size_t y = 0; y < height_lod; y++ ) in InitFloatCoords() 249 for( size_t y = 0; y < height_lod; y++ ) in InitFloatCoords() 266 for( size_t y = 0; y < height_lod; y++ ) in InitFloatCoords() 271 … yOffsets[ i ] = (float) CLAMP( (double) yOffsets[ i ], 0.0, (double) height_lod - 1.0); in InitFloatCoords() 283 for( size_t y = 0; y < height_lod; y++ ) in InitFloatCoords() 288 yOffsets[ i ] = (float) ((double) yOffsets[ i ] / (double) height_lod); in InitFloatCoords() 527 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_read_image_2D_array() local 530 …size_t resultValuesSize = width_lod * height_lod * imageInfo->arraySize * get_explicit_type_size( … in test_read_image_2D_array() [all …]
|
D | test_write_image.cpp | 328 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, nextLevelOffset = 0; in test_write_image() local 342 threads[1] = (size_t)height_lod; in test_write_image() 351 * width_lod * height_lod, in test_write_image() 364 resultSize = width_lod * height_lod * get_pixel_size(imageInfo->format); in test_write_image() 375 region[1] = height_lod; in test_write_image() 384 for( size_t y = 0, i = 0; y < height_lod; y++ ) in test_write_image() 597 nextLevelOffset += width_lod * height_lod * get_pixel_size( imageInfo->format); in test_write_image() 599 height_lod = (height_lod >> 1) ?(height_lod >> 1) : 1; in test_write_image()
|
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.h | 195 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, in read_image_pixel() local 203 height_lod = in read_image_pixel() 212 ? (row_pitch_lod * height_lod) in read_image_pixel() 217 if (imageInfo->type == CL_MEM_OBJECT_IMAGE1D_ARRAY && height_lod == 1 in read_image_pixel() 221 height_lod = 0; in read_image_pixel() 230 || (height_lod != 0 && (y < 0 || y >= (int)height_lod)) in read_image_pixel()
|
D | imageHelpers.cpp | 1281 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, in read_image_pixel_float() local 1294 height_lod = in read_image_pixel_float() 1305 slice_pitch_lod = row_pitch_lod * height_lod; in read_image_pixel_float() 1313 || (height_lod != 0 && y >= (int)height_lod) in read_image_pixel_float() 1868 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, in sample_image_pixel_float_offset() local 1881 height_lod = in sample_image_pixel_float_offset() 1892 slice_pitch_lod = row_pitch_lod * height_lod; in sample_image_pixel_float_offset() 1922 "y", y, yAddressOffset, (float)height_lod, in sample_image_pixel_float_offset() 1930 "y", y, yAddressOffset, (float)height_lod, in sample_image_pixel_float_offset() 1985 iy = adFn(floorf(y), height_lod); in sample_image_pixel_float_offset() [all …]
|