/external/OpenCL-CTS/test_conformance/images/clReadWriteImage/ |
D | test_read_2D.cpp | 90 size_t width_lod, height_lod, row_pitch_lod; in test_read_image_2D() local 92 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_2D() 94 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_2D() 96 region[0] = width_lod; in test_read_image_2D() 106 …log_error( "ERROR: Unable to write to 2D image of size %d x %d \n", (int)width_lod, (int)height_lo… in test_read_image_2D() 116 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D() 138 … (extra %d bytes)\n", (int)y, (int)width_lod, (int)height_lod, (int)row_pitch_lod, (int)row_pitch_… in test_read_image_2D() 152 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_2D() 158 …eturnedOffset = ( (int)y * (int)width_lod + offset / (int)get_pixel_size( imageInfo->format ) ) - … in test_read_image_2D() 174 imgValMipLevelOffset += width_lod * height_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D()
|
D | test_read_1D_array.cpp | 90 size_t width_lod, row_pitch_lod, slice_pitch_lod; in test_read_image_1D_array() local 94 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_1D_array() 95 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_1D_array() 98 region[0] = width_lod; in test_read_image_1D_array() 108 …OR: Unable to write to 1D image array of width %d and size %d\n", (int)width_lod, (int)imageInfo-… in test_read_image_1D_array() 117 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D_array() 135 …ra %d bytes)\n", (int)y, (int)width_lod, (int)imageInfo->arraySize, (int)row_pitch_lod, (int)row_p… in test_read_image_1D_array() 149 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_1D_array() 155 …eturnedOffset = ( (int)y * (int)width_lod + offset / (int)get_pixel_size( imageInfo->format ) ) - … in test_read_image_1D_array() 171 … imgValMipLevelOffset += width_lod * imageInfo->arraySize * get_pixel_size( imageInfo->format ); in test_read_image_1D_array()
|
D | test_read_1D.cpp | 90 size_t width_lod, row_pitch_lod; in test_read_image_1D() local 92 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_1D() 93 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_1D() 95 region[0] = width_lod; in test_read_image_1D() 105 log_error( "ERROR: Unable to write to 1D image of size %d \n", (int)width_lod ); in test_read_image_1D() 116 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D() 132 …size %d pitch %d (extra %d bytes)\n", (int)width_lod, (int)row_pitch_lod, (int)row_pitch_lod - (in… in test_read_image_1D() 146 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_1D() 165 imgValMipLevelOffset += width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D()
|
D | test_read_3D.cpp | 90 size_t width_lod, height_lod, depth_lod, row_pitch_lod, slice_pitch_lod; in test_read_image_3D() local 92 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_3D() 95 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_3D() 97 region[0] = width_lod; in test_read_image_3D() 108 … %s 3D image of size %d x %d x %d\n", gTestMipmaps?"mipmapped":"", (int)width_lod, (int)height_lod… in test_read_image_3D() 118 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_3D() 143 …not verify for image size %d,%d,%d pitch %d,%d\n", (int)y, (int)z, (int)width_lod, (int)height_lod… in test_read_image_3D() 152 … imgValMipLevelOffset += width_lod * height_lod * depth_lod * get_pixel_size( imageInfo->format ); in test_read_image_3D()
|
D | test_read_2D_array.cpp | 90 size_t width_lod, height_lod, depth_lod, row_pitch_lod, slice_pitch_lod; in test_read_image_2D_array() local 92 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_2D_array() 94 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_2D_array() 96 region[0] = width_lod; in test_read_image_2D_array() 108 …"ERROR: Unable to write to 2D image array of size %d x %d x %d\n", (int)width_lod, (int)height_lod… in test_read_image_2D_array() 117 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D_array() 138 …not verify for image size %d,%d,%d pitch %d,%d\n", (int)y, (int)z, (int)width_lod, (int)height_lod… in test_read_image_2D_array() 147 …imgValMipLevelOffset += width_lod * height_lod * imageInfo->arraySize * get_pixel_size( imageInfo-… in test_read_image_2D_array()
|
/external/OpenCL-CTS/test_conformance/images/clCopyImage/ |
D | test_copy_1D.cpp | 35 size_t width_lod = imageInfo->width; in test_copy_image_size_1D() local 46 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_1D() 62 regionSize[ 0 ] = width_lod; in test_copy_image_size_1D() 81 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_1D() 86 …regionSize[ 0 ] = ( width_lod > 8 ) ? (size_t)random_in_range( 8, (int)width_lod - 1, d ) : width_… in test_copy_image_size_1D() 89 …sourcePos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - … in test_copy_image_size_1D() 90 …destPos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - re… in test_copy_image_size_1D()
|
D | test_copy_1D_array.cpp | 35 size_t width_lod = imageInfo->width; in test_copy_image_size_1D_array() local 46 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_1D_array() 62 regionSize[ 0 ] = width_lod; in test_copy_image_size_1D_array() 81 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_1D_array() 86 …regionSize[ 0 ] = ( width_lod > 8 ) ? (size_t)random_in_range( 8, (int)width_lod - 1, d ) : (int)w… in test_copy_image_size_1D_array() 90 …sourcePos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - … in test_copy_image_size_1D_array() 94 …destPos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - re… in test_copy_image_size_1D_array()
|
D | test_copy_2D.cpp | 37 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_copy_image_size_2D() local 50 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_2D() 67 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D() 89 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_2D() 95 …regionSize[ 0 ] = ( width_lod > 8 ) ? (size_t)random_in_range( 8, (int)width_lod - 1, d ) : width_… in test_copy_image_size_2D() 99 …sourcePos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - … in test_copy_image_size_2D() 102 …destPos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - re… in test_copy_image_size_2D()
|
D | test_copy_2D_2D_array.cpp | 82 size_t width_lod, height_lod; in test_copy_image_size_2D_2D_array() local 100 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_2D_2D_array() 106 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_2D_array() 118 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_2D_array() 130 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_2D_array() 153 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_2D_2D_array() 161 regionSize[ 0 ] = ( width_lod > 8 ) ? random_in_range( 8, width_lod, d ) : width_lod; in test_copy_image_size_2D_2D_array()
|
D | test_copy_2D_3D.cpp | 78 size_t width_lod, height_lod; in test_copy_image_size_2D_3D() local 97 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_2D_3D() 103 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_3D() 116 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_3D() 129 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_3D() 152 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_2D_3D() 161 regionSize[ 0 ] = ( width_lod > 8 ) ? random_in_range( 8, width_lod, d ) : width_lod; in test_copy_image_size_2D_3D()
|
D | test_copy_3D_2D_array.cpp | 78 size_t width_lod = 0, height_lod = 0, depth_lod = 0; in test_copy_image_size_3D_2D_array() local 94 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_3D_2D_array() 116 regionSize[ 0 ] = width_lod; in test_copy_image_size_3D_2D_array() 132 regionSize[ 0 ] = width_lod; in test_copy_image_size_3D_2D_array() 159 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_3D_2D_array() 168 regionSize[ 0 ] = random_in_range( 1, width_lod, d ); in test_copy_image_size_3D_2D_array()
|
D | test_copy_2D_array.cpp | 36 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_copy_image_2D_array() local 49 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_2D_array() 52 region[ 0 ] = width_lod; in test_copy_image_2D_array()
|
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_read_1D.cpp | 192 size_t width_lod = imageInfo->width; in InitFloatCoords() local 195 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in InitFloatCoords() 199 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 206 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 215 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 217 xOffsets[ i ] = (float) CLAMP( (double) xOffsets[ i ], 0.0, (double) width_lod - 1.0); in InitFloatCoords() 224 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 226 xOffsets[ i ] = (float) ((double) xOffsets[ i ] / (double) width_lod); in InitFloatCoords() 443 size_t width_lod = imageInfo->width; in test_read_image_1D() local 448 size_t resultValuesSize = width_lod * get_explicit_type_size( outputType ) * 4; in test_read_image_1D() [all …]
|
D | test_read_1D_array.cpp | 226 size_t width_lod = imageInfo->width; in InitFloatCoords() local 229 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in InitFloatCoords() 235 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 246 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 259 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 261 … xOffsets[ i ] = (float) CLAMP( (double) xOffsets[ i ], 0.0, (double)width_lod - 1.0); in InitFloatCoords() 272 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 274 xOffsets[ i ] = (float) ((double) xOffsets[ i ] / (double) width_lod); in InitFloatCoords() 532 size_t width_lod = imageInfo->width; in test_read_image_1D_array() local 537 …size_t resultValuesSize = width_lod * imageInfo->arraySize * get_explicit_type_size( outputType ) … in test_read_image_1D_array() [all …]
|
D | test_write_2D_array.cpp | 288 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, nextLevelOffset = 0; in test_write_image_2D_array() local 301 threads[0] = (size_t)width_lod; in test_write_image_2D_array() 309 …get_explicit_type_size( inputType ) * 4 * width_lod * height_lod * imageInfo->arraySize, imagePtrO… in test_write_image_2D_array() 321 resultSize = width_lod * height_lod *imageInfo->arraySize * pixelSize; in test_write_image_2D_array() 331 region[0] = width_lod; in test_write_image_2D_array() 348 …resultPtr = (char *)resultValues + y * width_lod * pixelSize + z * width_lod * height_lod * pixelS… in test_write_image_2D_array() 351 for( size_t x = 0; x < width_lod; x++, i++ ) in test_write_image_2D_array() 549 nextLevelOffset += width_lod*height_lod*imageInfo->arraySize*pixelSize; in test_write_image_2D_array() 550 width_lod = (width_lod >> 1) ? (width_lod >> 1) : 1; in test_write_image_2D_array()
|
D | test_write_3D.cpp | 292 size_t width_lod = imageInfo->width; in test_write_image_3D() local 307 threads[0] = (size_t)width_lod; in test_write_image_3D() 315 …get_explicit_type_size( inputType ) * 4 * width_lod * height_lod * depth_lod, imagePtrOffset, &err… in test_write_image_3D() 328 resultSize = width_lod * height_lod * depth_lod * pixelSize; in test_write_image_3D() 338 region[0] = width_lod; in test_write_image_3D() 355 …resultPtr = (char *)resultValues + y * width_lod * pixelSize + z * width_lod * height_lod * pixelS… in test_write_image_3D() 358 for( size_t x = 0; x < width_lod; x++, i++ ) in test_write_image_3D() 556 nextLevelOffset += width_lod * height_lod * depth_lod * pixelSize; in test_write_image_3D() 557 width_lod = ( width_lod >> 1 ) ? ( width_lod >> 1 ) : 1; in test_write_image_3D()
|
D | test_write_1D_array.cpp | 269 size_t width_lod = imageInfo->width, nextLevelOffset = 0; in test_write_image_1D_array() local 282 threads[0] = (size_t)width_lod; in test_write_image_1D_array() 289 …get_explicit_type_size( inputType ) * 4 * width_lod * imageInfo->arraySize, imagePtrOffset, &error… in test_write_image_1D_array() 301 resultSize = width_lod * get_pixel_size(imageInfo->format) * imageInfo->arraySize; in test_write_image_1D_array() 313 region[0] = width_lod; in test_write_image_1D_array() 327 resultPtr = (char *)resultValues + y * width_lod * pixelSize; in test_write_image_1D_array() 330 for( size_t x = 0; x < width_lod; x++, i++ ) in test_write_image_1D_array() 525 … nextLevelOffset += width_lod * imageInfo->arraySize * get_pixel_size(imageInfo->format); in test_write_image_1D_array() 526 width_lod = (width_lod >> 1) ? (width_lod >> 1) : 1; in test_write_image_1D_array()
|
D | test_write_1D.cpp | 259 size_t width_lod = imageInfo->width, nextLevelOffset = 0; in test_write_image_1D() local 275 … get_explicit_type_size( inputType ) * 4 * width_lod, imagePtrOffset, &error ); in test_write_image_1D() 283 threads[0] = (size_t)width_lod; in test_write_image_1D() 289 resultSize = width_lod * get_pixel_size( imageInfo->format ); in test_write_image_1D() 299 region[ 0 ] = width_lod; in test_write_image_1D() 311 for( size_t x = 0, i = 0; i < width_lod; x++, i++ ) in test_write_image_1D() 506 nextLevelOffset += width_lod * get_pixel_size( imageInfo->format ); in test_write_image_1D() 507 width_lod = (width_lod >> 1) ? (width_lod >> 1) : 1; in test_write_image_1D()
|
D | test_iterations.cpp | 351 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in InitFloatCoords() local 355 width_lod = (imageInfo->width >> lod)?(imageInfo->width >> lod):1; in InitFloatCoords() 362 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 373 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 386 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 388 … xOffsets[ i ] = (float) CLAMP( (double) xOffsets[ i ], 0.0, (double) width_lod - 1.0); in InitFloatCoords() 399 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 401 xOffsets[ i ] = (float) ((float) xOffsets[ i ] / (float) width_lod); in InitFloatCoords() 415 size_t width_lod = (imageInfo->width >> lod ) ?(imageInfo->width >> lod ) : 1; in validate_image_2D_depth_results() local 428 for( size_t x = 0; x < width_lod; x++, j++ ) in validate_image_2D_depth_results() [all …]
|
D | test_read_2D_array.cpp | 238 size_t width_lod = imageInfo->width; in InitFloatCoords() local 242 width_lod = ( imageInfo->width >> lod) ?( imageInfo->width >> lod) : 1; in InitFloatCoords() 252 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 267 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 284 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 286 … xOffsets[ i ] = (float) CLAMP( (double) xOffsets[ i ], 0.0, (double) width_lod - 1.0); in InitFloatCoords() 301 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 303 xOffsets[ i ] = (float) ((double) xOffsets[ i ] / (double) width_lod); in InitFloatCoords() 534 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_read_image_2D_array() local 537 …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 | 316 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, nextLevelOffset = 0; in test_write_image() local 329 threads[0] = (size_t)width_lod; in test_write_image() 337 …get_explicit_type_size( inputType ) * channel_scale * width_lod * height_lod, imagePtrOffset, &err… in test_write_image() 349 resultSize = width_lod * height_lod * get_pixel_size(imageInfo->format); in test_write_image() 359 region[0] = width_lod; in test_write_image() 373 resultPtr = (char *)resultValues + y * width_lod * pixelSize; in test_write_image() 376 for( size_t x = 0; x < width_lod; x++, i++ ) in test_write_image() 572 nextLevelOffset += width_lod * height_lod * get_pixel_size( imageInfo->format); in test_write_image() 573 width_lod = (width_lod >> 1) ?(width_lod >> 1) : 1; in test_write_image()
|
D | test_read_3D.cpp | 290 size_t width_lod, height_lod, depth_lod; in InitFloatCoords() local 292 width_lod = (imageInfo->width >> lod)?(imageInfo->width >> lod):1; in InitFloatCoords() 300 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 302 xOffsets[ i ] = (float) ((double) xOffsets[ i ] / (double) width_lod); in InitFloatCoords() 544 … size_t width_lod = imageInfo->width, height_lod = imageInfo->height, depth_lod = imageInfo->depth; in test_read_image_3D() local 549 …size_t resultValuesSize = width_lod * height_lod * depth_lod * get_explicit_type_size( outputType … in test_read_image_3D() 583 threads[0] = (size_t)width_lod; in test_read_image_3D() 592 …error = clEnqueueReadBuffer( queue, results, CL_TRUE, 0, width_lod * height_lod * depth_lod * get_… in test_read_image_3D() 613 for( size_t x = 0; x < width_lod; x++, j++ ) in test_read_image_3D() 795 for( size_t x = 0; x < width_lod; x++, j++ ) in test_read_image_3D() [all …]
|
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.h | 158 …size_t width_lod = imageInfo->width, height_lod = imageInfo->height, depth_lod = imageInfo->depth,… in read_image_pixel() local 159 width_lod = ( imageInfo->width >> lod) ?( imageInfo->width >> lod):1; in read_image_pixel() 166 …row_pitch_lod = (imageInfo->num_mip_levels > 0)? (width_lod * get_pixel_size( imageInfo->format ))… in read_image_pixel() 181 if ( x < 0 || x >= (int)width_lod in read_image_pixel()
|
D | imageHelpers.cpp | 1376 … size_t width_lod = imageInfo->width, height_lod = imageInfo->height, depth_lod = imageInfo->depth; in read_image_pixel_float() local 1389 width_lod = ( imageInfo->width >> lod ) ? ( imageInfo->width >> lod ) : 1; in read_image_pixel_float() 1391 row_pitch_lod = width_lod * get_pixel_size(imageInfo->format); in read_image_pixel_float() 1402 if ( x < 0 || y < 0 || z < 0 || x >= (int)width_lod in read_image_pixel_float() 1941 … size_t width_lod = imageInfo->width, height_lod = imageInfo->height, depth_lod = imageInfo->depth; in sample_image_pixel_float_offset() local 1954 width_lod = ( imageInfo->width >> lod ) ? ( imageInfo->width >> lod ) : 1; in sample_image_pixel_float_offset() 1956 row_pitch_lod = width_lod * get_pixel_size(imageInfo->format); in sample_image_pixel_float_offset() 1976 x = unnormalize_coordinate("x", x, xAddressOffset, (float)width_lod, in sample_image_pixel_float_offset() 2033 ix = adFn( floorf( x ), width_lod ); in sample_image_pixel_float_offset() 2075 size_t width = width_lod, height = height_lod, depth = depth_lod; in sample_image_pixel_float_offset() [all …]
|