/external/OpenCL-CTS/test_conformance/images/clCopyImage/ |
D | test_copy_1D.cpp | 27 size_t width_lod = imageInfo->width; in test_copy_image_size_1D() local 38 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_1D() 54 regionSize[ 0 ] = width_lod; in test_copy_image_size_1D() 73 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_1D() 78 …regionSize[ 0 ] = ( width_lod > 8 ) ? (size_t)random_in_range( 8, (int)width_lod - 1, d ) : width_… in test_copy_image_size_1D() 81 …sourcePos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - … in test_copy_image_size_1D() 82 …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_2D.cpp | 29 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_copy_image_size_2D() local 42 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_2D() 59 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D() 81 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_2D() 87 …regionSize[ 0 ] = ( width_lod > 8 ) ? (size_t)random_in_range( 8, (int)width_lod - 1, d ) : width_… in test_copy_image_size_2D() 91 …sourcePos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - … in test_copy_image_size_2D() 94 …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_1D_array.cpp | 27 size_t width_lod = imageInfo->width; in test_copy_image_size_1D_array() local 38 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_1D_array() 54 regionSize[ 0 ] = width_lod; in test_copy_image_size_1D_array() 73 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_size_1D_array() 78 …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() 82 …sourcePos[ 0 ] = ( width_lod > regionSize[ 0 ] ) ? (size_t)random_in_range( 0, (int)( width_lod - … in test_copy_image_size_1D_array() 86 …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_3D.cpp | 70 size_t width_lod, height_lod; in test_copy_image_size_2D_3D() local 89 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_2D_3D() 95 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_3D() 108 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_3D() 121 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_3D() 144 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_2D_3D() 153 regionSize[ 0 ] = ( width_lod > 8 ) ? random_in_range( 8, width_lod, d ) : width_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 92 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_2D_2D_array() 98 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_2D_array() 110 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_2D_array() 122 regionSize[ 0 ] = width_lod; in test_copy_image_size_2D_2D_array() 145 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_2D_2D_array() 153 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_array.cpp | 29 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in test_copy_image_2D_array() local 42 width_lod = ( src_width_lod > dst_width_lod ) ? dst_width_lod : src_width_lod; in test_copy_image_2D_array() 45 region[ 0 ] = width_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 86 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_3D_2D_array() 108 regionSize[ 0 ] = width_lod; in test_copy_image_size_3D_2D_array() 124 regionSize[ 0 ] = width_lod; in test_copy_image_size_3D_2D_array() 151 …width_lod = ( twoImage_width_lod > threeImage_width_lod ) ? threeImage_width_lod : twoImage_width… in test_copy_image_size_3D_2D_array() 160 regionSize[ 0 ] = random_in_range( 1, width_lod, d ); in test_copy_image_size_3D_2D_array()
|
/external/OpenCL-CTS/test_conformance/images/clReadWriteImage/ |
D | test_read_2D.cpp | 86 size_t width_lod, height_lod, row_pitch_lod; in test_read_image_2D() local 88 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_2D() 90 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_2D() 92 region[0] = width_lod; in test_read_image_2D() 102 …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() 112 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D() 134 … (extra %d bytes)\n", (int)y, (int)width_lod, (int)height_lod, (int)row_pitch_lod, (int)row_pitch_… in test_read_image_2D() 148 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_2D() 154 …eturnedOffset = ( (int)y * (int)width_lod + offset / (int)get_pixel_size( imageInfo->format ) ) - … in test_read_image_2D() 170 imgValMipLevelOffset += width_lod * height_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D()
|
D | test_read_1D_array.cpp | 86 size_t width_lod, row_pitch_lod, slice_pitch_lod; in test_read_image_1D_array() local 90 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_1D_array() 91 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_1D_array() 94 region[0] = width_lod; in test_read_image_1D_array() 104 …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() 113 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D_array() 131 …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() 145 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_1D_array() 151 …eturnedOffset = ( (int)y * (int)width_lod + offset / (int)get_pixel_size( imageInfo->format ) ) - … in test_read_image_1D_array() 167 … imgValMipLevelOffset += width_lod * imageInfo->arraySize * get_pixel_size( imageInfo->format ); in test_read_image_1D_array()
|
D | test_read_1D.cpp | 86 size_t width_lod, row_pitch_lod; in test_read_image_1D() local 88 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_1D() 89 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_1D() 91 region[0] = width_lod; in test_read_image_1D() 101 log_error( "ERROR: Unable to write to 1D image of size %d \n", (int)width_lod ); in test_read_image_1D() 112 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D() 128 …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() 142 int offset = (int)get_pixel_size( imageInfo->format ) * (int)( width_lod - 16 ); in test_read_image_1D() 161 imgValMipLevelOffset += width_lod * get_pixel_size( imageInfo->format ); in test_read_image_1D()
|
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 90 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_2D_array() 92 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_2D_array() 94 region[0] = width_lod; in test_read_image_2D_array() 106 …"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() 115 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_2D_array() 136 …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() 145 …imgValMipLevelOffset += width_lod * height_lod * imageInfo->arraySize * get_pixel_size( imageInfo-… in test_read_image_2D_array()
|
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 90 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in test_read_image_3D() 93 …row_pitch_lod = gTestMipmaps ? (width_lod * get_pixel_size( imageInfo->format )): imageInfo->rowPi… in test_read_image_3D() 95 region[0] = width_lod; in test_read_image_3D() 106 … %s 3D image of size %d x %d x %d\n", gTestMipmaps?"mipmapped":"", (int)width_lod, (int)height_lod… in test_read_image_3D() 116 size_t scanlineSize = width_lod * get_pixel_size( imageInfo->format ); in test_read_image_3D() 141 …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() 150 … imgValMipLevelOffset += width_lod * height_lod * depth_lod * get_pixel_size( imageInfo->format ); in test_read_image_3D()
|
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_read_1D.cpp | 173 size_t width_lod = imageInfo->width; in InitFloatCoords() local 176 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in InitFloatCoords() 180 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 187 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 196 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 198 xOffsets[ i ] = (float) CLAMP( (double) xOffsets[ i ], 0.0, (double) width_lod - 1.0); in InitFloatCoords() 205 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 207 xOffsets[ i ] = (float) ((double) xOffsets[ i ] / (double) width_lod); in InitFloatCoords() 424 size_t width_lod = imageInfo->width; in test_read_image_1D() local 429 size_t resultValuesSize = width_lod * get_explicit_type_size( outputType ) * 4; in test_read_image_1D() [all …]
|
D | test_read_1D_array.cpp | 204 size_t width_lod = imageInfo->width; in InitFloatCoords() local 207 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in InitFloatCoords() 213 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 224 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 237 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 239 … xOffsets[ i ] = (float) CLAMP( (double) xOffsets[ i ], 0.0, (double)width_lod - 1.0); in InitFloatCoords() 250 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 252 xOffsets[ i ] = (float) ((double) xOffsets[ i ] / (double) width_lod); in InitFloatCoords() 511 size_t width_lod = imageInfo->width; in test_read_image_1D_array() local 516 …size_t resultValuesSize = width_lod * imageInfo->arraySize * get_explicit_type_size( outputType ) … in test_read_image_1D_array() [all …]
|
D | test_write_3D.cpp | 288 size_t width_lod = imageInfo->width; in test_write_image_3D() local 303 threads[0] = (size_t)width_lod; in test_write_image_3D() 312 get_explicit_type_size(inputType) * 4 * width_lod in test_write_image_3D() 327 resultSize = width_lod * height_lod * depth_lod * pixelSize; in test_write_image_3D() 337 region[0] = width_lod; in test_write_image_3D() 354 …resultPtr = (char *)resultValues + y * width_lod * pixelSize + z * width_lod * height_lod * pixelS… in test_write_image_3D() 357 for( size_t x = 0; x < width_lod; x++, i++ ) in test_write_image_3D() 567 nextLevelOffset += width_lod * height_lod * depth_lod * pixelSize; in test_write_image_3D() 568 width_lod = ( width_lod >> 1 ) ? ( width_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 297 threads[0] = (size_t)width_lod; in test_write_image_2D_array() 306 get_explicit_type_size(inputType) * 4 * width_lod in test_write_image_2D_array() 320 resultSize = width_lod * height_lod *imageInfo->arraySize * pixelSize; in test_write_image_2D_array() 330 region[0] = width_lod; in test_write_image_2D_array() 347 …resultPtr = (char *)resultValues + y * width_lod * pixelSize + z * width_lod * height_lod * pixelS… in test_write_image_2D_array() 350 for( size_t x = 0; x < width_lod; x++, i++ ) in test_write_image_2D_array() 560 nextLevelOffset += width_lod*height_lod*imageInfo->arraySize*pixelSize; in test_write_image_2D_array() 561 width_lod = (width_lod >> 1) ? (width_lod >> 1) : 1; in test_write_image_2D_array()
|
D | test_write_1D_array.cpp | 266 size_t width_lod = imageInfo->width, nextLevelOffset = 0; in test_write_image_1D_array() local 279 threads[0] = (size_t)width_lod; in test_write_image_1D_array() 287 * width_lod * imageInfo->arraySize, in test_write_image_1D_array() 300 resultSize = width_lod * get_pixel_size(imageInfo->format) * imageInfo->arraySize; in test_write_image_1D_array() 312 region[0] = width_lod; in test_write_image_1D_array() 326 resultPtr = (char *)resultValues + y * width_lod * pixelSize; in test_write_image_1D_array() 329 for( size_t x = 0; x < width_lod; x++, i++ ) in test_write_image_1D_array() 534 … nextLevelOffset += width_lod * imageInfo->arraySize * get_pixel_size(imageInfo->format); in test_write_image_1D_array() 535 width_lod = (width_lod >> 1) ? (width_lod >> 1) : 1; in test_write_image_1D_array()
|
D | test_write_1D.cpp | 255 size_t width_lod = imageInfo->width, nextLevelOffset = 0; in test_write_image_1D() local 272 * width_lod, in test_write_image_1D() 281 threads[0] = (size_t)width_lod; in test_write_image_1D() 287 resultSize = width_lod * get_pixel_size( imageInfo->format ); in test_write_image_1D() 297 region[ 0 ] = width_lod; in test_write_image_1D() 309 for( size_t x = 0, i = 0; i < width_lod; x++, i++ ) in test_write_image_1D() 514 nextLevelOffset += width_lod * get_pixel_size( imageInfo->format ); in test_write_image_1D() 515 width_lod = (width_lod >> 1) ? (width_lod >> 1) : 1; in test_write_image_1D()
|
D | test_iterations.cpp | 334 size_t width_lod = imageInfo->width, height_lod = imageInfo->height; in InitFloatCoords() local 338 width_lod = (imageInfo->width >> lod)?(imageInfo->width >> lod):1; in InitFloatCoords() 345 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 356 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 369 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 371 … xOffsets[ i ] = (float) CLAMP( (double) xOffsets[ i ], 0.0, (double) width_lod - 1.0); in InitFloatCoords() 382 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 384 xOffsets[ i ] = (float) ((float) xOffsets[ i ] / (float) width_lod); in InitFloatCoords() 395 size_t width_lod = (imageInfo->width >> lod ) ?(imageInfo->width >> lod ) : 1; in validate_image_2D_depth_results() local 408 for( size_t x = 0; x < width_lod; x++, j++ ) in validate_image_2D_depth_results() [all …]
|
D | test_common.cpp | 126 size_t width_lod, height_lod, depth_lod; in InitFloatCoordsCommon() local 128 width_lod = in InitFloatCoordsCommon() 139 for (size_t x = 0; x < width_lod; x++, i++) in InitFloatCoordsCommon() 142 (float)((double)xOffsets[i] / (double)width_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() 503 threads[0] = (size_t)width_lod; in test_read_image() 514 width_lod * height_lod * depth_lod in test_read_image() 540 for (size_t x = 0; x < width_lod; x++, j++) in test_read_image() 858 for (size_t x = 0; x < width_lod; x++, j++) in test_read_image() [all …]
|
D | test_read_2D_array.cpp | 222 size_t width_lod = imageInfo->width; in InitFloatCoords() local 226 width_lod = ( imageInfo->width >> lod) ?( imageInfo->width >> lod) : 1; in InitFloatCoords() 236 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 251 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 268 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 270 … xOffsets[ i ] = (float) CLAMP( (double) xOffsets[ i ], 0.0, (double) width_lod - 1.0); in InitFloatCoords() 285 for( size_t x = 0; x < width_lod; x++, i++ ) in InitFloatCoords() 287 xOffsets[ i ] = (float) ((double) xOffsets[ i ] / (double) width_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 341 threads[0] = (size_t)width_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() 374 region[0] = width_lod; in test_write_image() 388 resultPtr = (char *)resultValues + y * width_lod * pixelSize; in test_write_image() 391 for( size_t x = 0; x < width_lod; x++, i++ ) in test_write_image() 597 nextLevelOffset += width_lod * height_lod * get_pixel_size( imageInfo->format); in test_write_image() 598 width_lod = (width_lod >> 1) ?(width_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 199 width_lod = (imageInfo->width >> lod) ? (imageInfo->width >> lod) : 1; in read_image_pixel() 209 ? (width_lod * get_pixel_size(imageInfo->format)) in read_image_pixel() 229 if (x < 0 || x >= (int)width_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 1297 width_lod = in read_image_pixel_float() 1300 row_pitch_lod = width_lod * get_pixel_size(imageInfo->format); in read_image_pixel_float() 1312 if (x < 0 || y < 0 || z < 0 || x >= (int)width_lod in read_image_pixel_float() 1868 size_t width_lod = imageInfo->width, height_lod = imageInfo->height, in sample_image_pixel_float_offset() local 1884 width_lod = in sample_image_pixel_float_offset() 1887 row_pitch_lod = width_lod * get_pixel_size(imageInfo->format); in sample_image_pixel_float_offset() 1908 x = unnormalize_coordinate("x", x, xAddressOffset, (float)width_lod, in sample_image_pixel_float_offset() 1971 ix = adFn(floorf(x), width_lod); in sample_image_pixel_float_offset() 2021 size_t width = width_lod, height = height_lod, depth = depth_lod; in sample_image_pixel_float_offset() [all …]
|