Home
last modified time | relevance | path

Searched refs:imageSampler (Results 1 – 18 of 18) sorted by relevance

/external/OpenCL-CTS/test_conformance/images/kernel_read_write/
Dtest_loops.cpp32 …ontext context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler,
34 …context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler,
36 …context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler,
38 …context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler,
40 …context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler,
44 … image_sampler_data *imageSampler, ExplicitType outputType, cl_mem_object_type imageType ) in test_read_image_type() argument
70 (imageSampler->filter_mode == CL_FILTER_LINEAR) && in test_read_image_type()
81 imageSampler->addressing_mode = addressModes[ adMode ]; in test_read_image_type()
83 …REPEAT || addressModes[ adMode ] == CL_ADDRESS_MIRRORED_REPEAT) && !( imageSampler->normalized_coo… in test_read_image_type()
87 …if( gAddressModeToUse != (cl_addressing_mode)-1 && imageSampler->addressing_mode != gAddressModeTo… in test_read_image_type()
[all …]
Dtest_iterations.cpp90 …ne_validation_error( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error() argument
99 …Offset, yAddressOffset, 0.0f, imageInfo->width, imageInfo->height, 0, imageSampler, imageInfo, cla… in determine_validation_error()
275 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error()
295 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument
321 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords()
348 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument
381 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords()
412 …tType outputType, int &numTries, int &numClamped, image_sampler_data *imageSampler, image_descript… in validate_image_2D_depth_results() argument
425 … = get_max_relative_error( imageInfo->format, imageSampler, 0 /*not 3D*/, CL_FILTER_LINEAR == imag… in validate_image_2D_depth_results()
436 …if (!imageSampler->normalized_coords || imageSampler->filter_mode != CL_FILTER_NEAREST || NORM_OF… in validate_image_2D_depth_results()
[all …]
Dtest_read_1D.cpp71 …validation_error_1D( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error_1D() argument
80 …t( x, 0.0f, 0.0f, xAddressOffset, 0.0f, 0.0f, imageInfo->width, 0, 0, imageSampler, imageInfo, cla… in determine_validation_error_1D()
169 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_1D()
189 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument
212 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords()
237 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D() argument
403 actualSampler = create_sampler(context, imageSampler, gTestMipmaps, &error); in test_read_image_1D()
433 double formatAbsoluteError = get_max_absolute_error(imageInfo->format, imageSampler); in test_read_image_1D()
463 InitFloatCoords( imageInfo, imageSampler, xOffsetValues, in test_read_image_1D()
465 imageSampler->normalized_coords, d , lod); in test_read_image_1D()
[all …]
Dtest_read_1D_array.cpp82 …dation_error_1D_arr( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error_1D_arr() argument
95 …set, yAddressOffset, 0.0f, imageInfo->width, imageInfo->arraySize, 0, imageSampler, imageInfo, cla… in determine_validation_error_1D_arr()
203 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_1D_arr()
223 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument
254 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords()
286 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D_array() argument
484 actualSampler = create_sampler(context, imageSampler, gTestMipmaps, &error); in test_read_image_1D_array()
522 double formatAbsoluteError = get_max_absolute_error(imageInfo->format, imageSampler); in test_read_image_1D_array()
553 InitFloatCoords(imageInfo, imageSampler, xOffsetValues, yOffsetValues, in test_read_image_1D_array()
555 … q>=float_offset_count ? offset: -offset, imageSampler->normalized_coords, d, lod ); in test_read_image_1D_array()
[all …]
Dtest_read_2D_array.cpp92 …ror_offset_2D_array( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error_offset_2D_array() argument
103 … yAddressOffset, zAddressOffset, imageWidth, imageHeight, imageDepth, imageSampler, imageInfo, cla… in determine_validation_error_offset_2D_array()
131 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_offset_2D_array()
216 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_offset_2D_array()
235 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument
277 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords()
316 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_2D_array() argument
491 actualSampler = create_sampler(context, imageSampler, gTestMipmaps, &error); in test_read_image_2D_array()
524 double formatAbsoluteError = get_max_absolute_error(imageInfo->format, imageSampler); in test_read_image_2D_array()
551 InitFloatCoords( imageInfo, imageSampler, xOffsetValues, yOffsetValues, zOffsetValues, in test_read_image_2D_array()
[all …]
Dtest_read_3D.cpp92 …dation_error_offset( void *imagePtr, image_descriptor *imageInfo, image_sampler_data *imageSampler, in determine_validation_error_offset() argument
103 … yAddressOffset, zAddressOffset, imageWidth, imageHeight, imageDepth, imageSampler, imageInfo, cla… in determine_validation_error_offset()
200 if( imageSampler->filter_mode != CL_FILTER_LINEAR ) in determine_validation_error_offset()
219 static void InitFloatCoords( image_descriptor *imageInfo, image_sampler_data *imageSampler, float *… in InitFloatCoords() argument
253 if( imageSampler->addressing_mode == CL_ADDRESS_NONE ) in InitFloatCoords()
317 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_3D() argument
500 actualSampler = create_sampler(context, imageSampler, gTestMipmaps, &error); in test_read_image_3D()
533 double formatAbsoluteError = get_max_absolute_error(imageInfo->format, imageSampler); in test_read_image_3D()
565 InitFloatCoords( imageInfo, imageSampler, xOffsetValues, yOffsetValues, zOffsetValues, in test_read_image_3D()
569 imageSampler->normalized_coords, d, lod ); in test_read_image_3D()
[all …]
Dtest_write_image.cpp789 … image_sampler_data *imageSampler, ExplicitType inputType, cl_mem_object_type imageType ) in test_write_image_formats() argument
791 if( imageSampler->filter_mode == CL_FILTER_LINEAR ) in test_write_image_formats()
/external/OpenCL-CTS/test_conformance/images/samplerlessReads/
Dtest_loops.cpp28 … cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, ExplicitType o…
29 … cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, ExplicitType o…
30 … cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, ExplicitType o…
31 … cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, ExplicitType o…
32 … cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, ExplicitType o…
33 … cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, ExplicitType o…
36 … image_sampler_data *imageSampler, ExplicitType outputType, cl_mem_object_type imageType ) in test_read_image_type() argument
39 imageSampler->addressing_mode = CL_ADDRESS_NONE; in test_read_image_type()
41 print_read_header( format, imageSampler, false ); in test_read_image_type()
48 … ret = test_read_image_set_1D( device, context, queue, format, imageSampler, outputType ); in test_read_image_type()
[all …]
Dtest_read_1D.cpp63 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D() argument
187 …context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, in test_read_image_set_1D() argument
268 …int retCode = test_read_image_1D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D()
289 …int retCode = test_read_image_1D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D()
317 …int retCode = test_read_image_1D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D()
Dtest_iterations.cpp65 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_2D() argument
186 …context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, in test_read_image_set_2D() argument
271 …int retCode = test_read_image_2D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D()
293 …int retCode = test_read_image_2D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D()
322 …int retCode = test_read_image_2D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D()
Dtest_read_1D_buffer.cpp48 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D_buffer() argument
170 …context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, in test_read_image_set_1D_buffer() argument
265 …Code = test_read_image_1D_buffer( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_buffer()
286 …Code = test_read_image_1D_buffer( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_buffer()
307 …Code = test_read_image_1D_buffer( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_buffer()
Dtest_read_1D_array.cpp65 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_1D_array() argument
183 …context context, cl_command_queue queue, cl_image_format *format, image_sampler_data *imageSampler, in test_read_image_set_1D_array() argument
267 …tCode = test_read_image_1D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_array()
290 …tCode = test_read_image_1D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_array()
321 …tCode = test_read_image_1D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_1D_array()
Dtest_read_2D_array.cpp56 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_2D_array() argument
169 image_sampler_data *imageSampler, ExplicitType outputType ) in test_read_image_set_2D_array() argument
260 …tCode = test_read_image_2D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D_array()
285 …tCode = test_read_image_2D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D_array()
320 …tCode = test_read_image_2D_array( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_2D_array()
Dtest_read_3D.cpp55 image_descriptor *imageInfo, image_sampler_data *imageSampler, in test_read_image_3D() argument
172 image_sampler_data *imageSampler, ExplicitType outputType ) in test_read_image_set_3D() argument
263 …int retCode = test_read_image_3D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_3D()
288 …int retCode = test_read_image_3D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_3D()
323 …int retCode = test_read_image_3D( context, queue, kernel, &imageInfo, imageSampler, outputType, se… in test_read_image_set_3D()
/external/swiftshader/src/Vulkan/
DVkDescriptorSetLayout.cpp277 SampledImageDescriptor *imageSampler = reinterpret_cast<SampledImageDescriptor *>(memToWrite); in WriteDescriptorSet() local
286 imageSampler[i].updateSampler(update->sampler); in WriteDescriptorSet()
288 imageSampler[i].device = device; in WriteDescriptorSet()
293 SampledImageDescriptor *imageSampler = reinterpret_cast<SampledImageDescriptor *>(memToWrite); in WriteDescriptorSet() local
300 imageSampler[i].type = VK_IMAGE_VIEW_TYPE_1D; in WriteDescriptorSet()
301 imageSampler[i].imageViewId = bufferView->id; in WriteDescriptorSet()
302imageSampler[i].swizzle = { VK_COMPONENT_SWIZZLE_R, VK_COMPONENT_SWIZZLE_G, VK_COMPONENT_SWIZZLE_B… in WriteDescriptorSet()
303 imageSampler[i].format = bufferView->getFormat(); in WriteDescriptorSet()
306 imageSampler[i].extent = { numElements, 1, 1 }; in WriteDescriptorSet()
307 imageSampler[i].arrayLayers = 1; in WriteDescriptorSet()
[all …]
/external/OpenCL-CTS/test_conformance/images/
DtestBase.h63 image_sampler_data *imageSampler, ExplicitType outputType,
68 image_sampler_data *imageSampler, ExplicitType outputType,
72 image_sampler_data *imageSampler, ExplicitType outputType,
/external/OpenCL-CTS/test_common/harness/
DimageHelpers.h507 image_sampler_data *imageSampler, image_descriptor *imageInfo,
512 image_sampler_data *imageSampler, image_descriptor *imageInfo,
518 … image_sampler_data *imageSampler, T *outData, int lod ) in sample_image_pixel_offset() argument
556 … xAddressOffset, yAddressOffset, zAddressOffset, max_w, max_h, max_d, imageSampler, imageInfo, iX,… in sample_image_pixel_offset()
563 image_sampler_data *imageSampler, T *outData) in sample_image_pixel_offset() argument
566 imageSampler, outData, 0); in sample_image_pixel_offset()
570 … float x, float y, float z, image_sampler_data *imageSampler, T *outData ) in sample_image_pixel() argument
572 …mple_image_pixel_offset<T>(imageData, imageInfo, x, y, z, 0.0f, 0.0f, 0.0f, imageSampler, outData); in sample_image_pixel()
576 …float x, float y, float z, image_sampler_data *imageSampler, float *outData, int verbose, int *con…
579 …float x, float y, float z, image_sampler_data *imageSampler, float *outData, int verbose, int *con…
[all …]
DimageHelpers.cpp1663 …oat z, size_t width, size_t height, size_t depth, image_sampler_data *imageSampler, image_descript… in get_integer_coords() argument
1664 …return get_integer_coords_offset(x, y, z, 0.0f, 0.0f, 0.0f, width, height, depth, imageSampler, im… in get_integer_coords()
1668 …size_t width, size_t height, size_t depth, image_sampler_data *imageSampler, image_descriptor *ima… in get_integer_coords_offset() argument
1670 AddressFn adFn = sAddressingTable[ imageSampler ]; in get_integer_coords_offset()
1677 if( imageSampler->normalized_coords ) in get_integer_coords_offset()
1679 switch (imageSampler->addressing_mode) in get_integer_coords_offset()
1925 … image_sampler_data *imageSampler, float *outData, int verbose, int *containsDenorms ) { in sample_image_pixel_float() argument
1926 …e_pixel_float_offset(imageData, imageInfo, x, y, z, 0.0f, 0.0f, 0.0f, imageSampler, outData, verbo… in sample_image_pixel_float()
1932 … image_sampler_data *imageSampler, float *outData, int verbose, int *containsDenorms , int lod) { in sample_image_pixel_float() argument
1933 …e_pixel_float_offset(imageData, imageInfo, x, y, z, 0.0f, 0.0f, 0.0f, imageSampler, outData, verbo… in sample_image_pixel_float()
[all …]