/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_loops.cpp | 28 image_sampler_data *imageSampler, 33 image_sampler_data *imageSampler, 38 image_sampler_data *imageSampler, 43 image_sampler_data *imageSampler, 49 image_sampler_data *imageSampler, 55 bool floatCoords, image_sampler_data *imageSampler, in test_read_image_type() argument 88 && (imageSampler->filter_mode == CL_FILTER_LINEAR) in test_read_image_type() 101 imageSampler->addressing_mode = addressModes[adMode]; in test_read_image_type() 105 && !(imageSampler->normalized_coords)) in test_read_image_type() 110 && imageSampler->addressing_mode != gAddressModeToUse) in test_read_image_type() [all …]
|
D | test_read_1D.cpp | 54 …validation_error_1D( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error_1D() argument 63 …t( x, 0.0f, 0.0f, xAddressOffset, 0.0f, 0.0f, imageInfo->width, 0, 0, imageSampler, imageInfo, cla… in determine_validation_error_1D() 152 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_1D() 170 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument 193 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords() 213 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D() argument 384 actualSampler = create_sampler(context, imageSampler, gTestMipmaps, &error); in test_read_image_1D() 414 double formatAbsoluteError = get_max_absolute_error(imageInfo->format, imageSampler); in test_read_image_1D() 444 InitFloatCoords( imageInfo, imageSampler, xOffsetValues, in test_read_image_1D() 446 imageSampler->normalized_coords, d , lod); in test_read_image_1D() [all …]
|
D | test_iterations.cpp | 75 …ne_validation_error( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error() argument 84 …Offset, yAddressOffset, 0.0f, imageInfo->width, imageInfo->height, 0, imageSampler, imageInfo, cla… in determine_validation_error() 260 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error() 278 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument 304 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords() 331 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument 364 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords() 392 …tType outputType, int &numTries, int &numClamped, image_sampler_data *imageSampler, image_descript… in validate_image_2D_depth_results() argument 405 … = get_max_relative_error( imageInfo->format, imageSampler, 0 /*not 3D*/, CL_FILTER_LINEAR == imag… in validate_image_2D_depth_results() 416 …if (!imageSampler->normalized_coords || imageSampler->filter_mode != CL_FILTER_NEAREST || NORM_OF… in validate_image_2D_depth_results() [all …]
|
D | test_read_1D_array.cpp | 62 …dation_error_1D_arr( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error_1D_arr() argument 75 …set, yAddressOffset, 0.0f, imageInfo->width, imageInfo->arraySize, 0, imageSampler, imageInfo, cla… in determine_validation_error_1D_arr() 183 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_1D_arr() 201 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument 232 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords() 259 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D_array() argument 463 actualSampler = create_sampler(context, imageSampler, gTestMipmaps, &error); in test_read_image_1D_array() 501 double formatAbsoluteError = get_max_absolute_error(imageInfo->format, imageSampler); in test_read_image_1D_array() 532 InitFloatCoords(imageInfo, imageSampler, xOffsetValues, yOffsetValues, in test_read_image_1D_array() 534 … q>=float_offset_count ? offset: -offset, imageSampler->normalized_coords, d, lod ); in test_read_image_1D_array() [all …]
|
D | test_read_2D_array.cpp | 78 …ror_offset_2D_array( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error_offset_2D_array() argument 89 … yAddressOffset, zAddressOffset, imageWidth, imageHeight, imageDepth, imageSampler, imageInfo, cla… in determine_validation_error_offset_2D_array() 117 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_offset_2D_array() 202 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_offset_2D_array() 219 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument 261 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords() 296 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_2D_array() argument 484 actualSampler = create_sampler(context, imageSampler, gTestMipmaps, &error); in test_read_image_2D_array() 517 double formatAbsoluteError = get_max_absolute_error(imageInfo->format, imageSampler); in test_read_image_2D_array() 544 InitFloatCoords( imageInfo, imageSampler, xOffsetValues, yOffsetValues, zOffsetValues, in test_read_image_2D_array() [all …]
|
D | test_common.cpp | 37 image_sampler_data *imageSampler, float *xOffsets, in InitFloatCoordsCommon() argument 83 if (imageSampler->addressing_mode == CL_ADDRESS_NONE) in InitFloatCoordsCommon() 156 image_sampler_data *imageSampler, bool useFloatCoords, in test_read_image() argument 387 actualSampler = create_sampler(context, imageSampler, gTestMipmaps, &error); in test_read_image() 431 get_max_absolute_error(imageInfo->format, imageSampler); in test_read_image() 471 InitFloatCoordsCommon(imageInfo, imageSampler, xOffsetValues, in test_read_image() 476 imageSampler->normalized_coords, d, lod); in test_read_image() 533 imageInfo->format, imageSampler, 1 /*3D*/, in test_read_image() 534 CL_FILTER_LINEAR == imageSampler->filter_mode); in test_read_image() 551 if (!imageSampler->normalized_coords in test_read_image() [all …]
|
D | test_common.h | 41 image_sampler_data *imageSampler, 46 image_sampler_data *imageSampler, 55 image_sampler_data *imageSampler, T *resultPtr, T *expected, float error, in determine_validation_error_offset() argument 71 imageDepth, imageSampler, imageInfo, in determine_validation_error_offset() 214 if (imageSampler->filter_mode != CL_FILTER_LINEAR) in determine_validation_error_offset()
|
D | test_read_3D.cpp | 80 image_sampler_data *imageSampler, bool floatCoords, in test_read_image_set_3D() argument 126 get_sampler_kernel_code( imageSampler, samplerVar ); in test_read_image_set_3D() 173 context, queue, kernel, &imageInfo, imageSampler, in test_read_image_set_3D() 203 imageSampler, floatCoords, outputType, seed); in test_read_image_set_3D() 218 test_read_image(context, queue, kernel, &imageInfo, imageSampler, in test_read_image_set_3D() 271 imageSampler, floatCoords, outputType, seed); in test_read_image_set_3D()
|
D | test_write_image.cpp | 820 image_sampler_data *imageSampler, in test_write_image_formats() argument 824 if( imageSampler->filter_mode == CL_FILTER_LINEAR ) in test_write_image_formats()
|
/external/OpenCL-CTS/test_conformance/images/samplerlessReads/ |
D | test_loops.cpp | 25 image_sampler_data *imageSampler, 31 image_sampler_data *imageSampler, 36 image_sampler_data *imageSampler, 41 image_sampler_data *imageSampler, 46 image_sampler_data *imageSampler, 51 image_sampler_data *imageSampler, 56 image_sampler_data *imageSampler, in test_read_image_type() argument 60 imageSampler->addressing_mode = CL_ADDRESS_NONE; in test_read_image_type() 62 print_read_header( format, imageSampler, false ); in test_read_image_type() 69 … ret = test_read_image_set_1D( device, context, queue, format, imageSampler, outputType ); in test_read_image_type() [all …]
|
D | test_read_1D.cpp | 56 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D() argument 183 image_sampler_data *imageSampler, in test_read_image_set_1D() argument 270 …int retCode = test_read_image_1D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D() 291 …int retCode = test_read_image_1D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D() 319 …int retCode = test_read_image_1D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D()
|
D | test_read_1D_buffer.cpp | 41 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D_buffer() argument 166 image_sampler_data *imageSampler, in test_read_image_set_1D_buffer() argument 262 …Code = test_read_image_1D_buffer( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_buffer() 283 …Code = test_read_image_1D_buffer( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_buffer() 304 …Code = test_read_image_1D_buffer( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_buffer()
|
D | test_iterations.cpp | 58 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_2D() argument 182 image_sampler_data *imageSampler, in test_read_image_set_2D() argument 273 …int retCode = test_read_image_2D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D() 295 …int retCode = test_read_image_2D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D() 324 …int retCode = test_read_image_2D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D()
|
D | test_read_1D_array.cpp | 58 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D_array() argument 181 image_sampler_data *imageSampler, in test_read_image_set_1D_array() argument 271 …tCode = test_read_image_1D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_array() 294 …tCode = test_read_image_1D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_array() 325 …tCode = test_read_image_1D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_array()
|
D | test_read_3D.cpp | 51 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_3D() argument 170 image_sampler_data *imageSampler, in test_read_image_set_3D() argument 268 …int retCode = test_read_image_3D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_3D() 293 …int retCode = test_read_image_3D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_3D() 328 …int retCode = test_read_image_3D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_3D()
|
D | test_read_2D_array.cpp | 52 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_2D_array() argument 167 image_sampler_data *imageSampler, in test_read_image_set_2D_array() argument 265 …tCode = test_read_image_2D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D_array() 290 …tCode = test_read_image_2D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D_array() 325 …tCode = test_read_image_2D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D_array()
|
/external/OpenCL-CTS/test_conformance/images/ |
D | testBase.h | 70 const std::vector<bool> &filterFlags, image_sampler_data *imageSampler, 76 const std::vector<bool> &filterFlags, image_sampler_data *imageSampler, 81 const std::vector<bool> &filterFlags, image_sampler_data *imageSampler,
|
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.h | 541 size_t depth, image_sampler_data *imageSampler, 547 image_sampler_data *imageSampler, 556 image_sampler_data *imageSampler, T *outData, in sample_image_pixel_offset() argument 601 zAddressOffset, max_w, max_h, max_d, imageSampler, in sample_image_pixel_offset() 611 image_sampler_data *imageSampler, T *outData) in sample_image_pixel_offset() argument 614 yAddressOffset, zAddressOffset, imageSampler, in sample_image_pixel_offset() 620 float y, float z, image_sampler_data *imageSampler, in sample_image_pixel() argument 624 0.0f, 0.0f, imageSampler, outData); in sample_image_pixel() 629 float y, float z, image_sampler_data *imageSampler, 635 image_sampler_data *imageSampler, [all …]
|
D | imageHelpers.cpp | 1552 size_t depth, image_sampler_data *imageSampler, in get_integer_coords() argument 1557 depth, imageSampler, imageInfo, outX, outY, in get_integer_coords() 1564 image_sampler_data *imageSampler, in get_integer_coords_offset() argument 1568 AddressFn adFn = sAddressingTable[imageSampler]; in get_integer_coords_offset() 1575 if (imageSampler->normalized_coords) in get_integer_coords_offset() 1577 switch (imageSampler->addressing_mode) in get_integer_coords_offset() 1840 float y, float z, image_sampler_data *imageSampler, in sample_image_pixel_float() argument 1844 0.0f, 0.0f, imageSampler, outData, in sample_image_pixel_float() 1852 image_sampler_data *imageSampler, in sample_image_pixel_float() argument 1857 0.0f, 0.0f, imageSampler, outData, in sample_image_pixel_float() [all …]
|