/external/mesa3d/src/gallium/frontends/clover/core/ |
D | format.hpp | 46 return (a.image_channel_order != b.image_channel_order ? in operator <() 47 a.image_channel_order < b.image_channel_order : in operator <() 53 return (a.image_channel_order == b.image_channel_order && in operator ==()
|
/external/angle/src/libANGLE/ |
D | cl_utils.cpp | 62 size = GetChannelCount(image_format.image_channel_order); in GetElementSize() 69 size = 2u * GetChannelCount(image_format.image_channel_order); in GetElementSize() 74 size = 4u * GetChannelCount(image_format.image_channel_order); in GetElementSize() 96 switch (imageFormat->image_channel_order) in IsValidImageFormat() 165 if (imageFormat->image_channel_order != CL_RGB && in IsValidImageFormat() 166 imageFormat->image_channel_order != CL_RGBx) in IsValidImageFormat() 174 imageFormat->image_channel_order != CL_RGBA) in IsValidImageFormat()
|
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.h | 183 extern bool is_sRGBA_order(cl_channel_order image_channel_order); 236 if (imageInfo->format->image_channel_order == CL_DEPTH) in read_image_pixel() 425 if (format->image_channel_order == CL_A) in read_image_pixel() 429 else if (format->image_channel_order == CL_R) in read_image_pixel() 433 else if (format->image_channel_order == CL_Rx) in read_image_pixel() 437 else if (format->image_channel_order == CL_RA) in read_image_pixel() 442 else if (format->image_channel_order == CL_RG) in read_image_pixel() 447 else if (format->image_channel_order == CL_RGx) in read_image_pixel() 452 else if ((format->image_channel_order == CL_RGB) in read_image_pixel() 453 || (format->image_channel_order == CL_sRGB)) in read_image_pixel() [all …]
|
/external/OpenCL-CTS/test_conformance/basic/ |
D | test_image_param.cpp | 123 if( format.image_channel_order == CL_BGRA ) in validate_results() 139 …GetChannelOrderName( format.image_channel_order ), GetChannelTypeName( format.image_channel_data_t… in validate_results() 197 if(supported_formats[i].image_channel_order == CL_BGRA) in test_image_param() 214 if(formats[j].image_channel_order == CL_BGRA && !supportsBGRA) in test_image_param() 226 GetChannelOrderName( formats[j].image_channel_order ), in test_image_param() 250 if(formats[j].image_channel_order == CL_BGRA && !supportsBGRA) in test_image_param() 270 if(formats[j].image_channel_order == CL_BGRA && !supportsBGRA) in test_image_param()
|
D | test_writeimage.cpp | 146 if(supported_formats[i].image_channel_order == CL_BGRA) in test_writeimage() 160 img_format.image_channel_order = CL_BGRA; in test_writeimage() 170 img_format.image_channel_order = CL_RGBA; in test_writeimage() 181 img_format.image_channel_order = CL_BGRA; in test_writeimage() 191 img_format.image_channel_order = CL_RGBA; in test_writeimage()
|
D | test_multireadimagemultifmt.cpp | 137 img_format.image_channel_order = CL_RGBA; in test_mri_multiple() 146 img_format.image_channel_order = CL_RGBA; in test_mri_multiple() 155 img_format.image_channel_order = CL_RGBA; in test_mri_multiple()
|
D | test_readimage.cpp | 145 if(supported_formats[i].image_channel_order == CL_BGRA) in test_readimage() 159 img_format.image_channel_order = CL_BGRA; in test_readimage() 169 img_format.image_channel_order = CL_RGBA; in test_readimage()
|
D | test_imagecopy.cpp | 133 img_format.image_channel_order = CL_RGBA; in test_imagecopy() 142 img_format.image_channel_order = CL_RGBA; in test_imagecopy() 151 img_format.image_channel_order = CL_RGBA; in test_imagecopy()
|
D | test_imagecopy3d.cpp | 136 img_format.image_channel_order = CL_RGBA; in test_imagecopy3d() 143 img_format.image_channel_order = CL_RGBA; in test_imagecopy3d() 150 img_format.image_channel_order = CL_RGBA; in test_imagecopy3d()
|
D | test_imagerandomcopy.cpp | 147 img_format.image_channel_order = CL_RGBA; in test_imagerandomcopy() 156 img_format.image_channel_order = CL_RGBA; in test_imagerandomcopy() 165 img_format.image_channel_order = CL_RGBA; in test_imagerandomcopy()
|
D | test_hostptr.cpp | 152 img_format.image_channel_order = CL_RGBA; in test_hostptr() 160 img_format.image_channel_order = CL_RGBA; in test_hostptr() 168 img_format.image_channel_order = CL_RGBA; in test_hostptr()
|
D | test_writeimage_int16.cpp | 100 img_format.image_channel_order = CL_RGBA; in test_writeimage_int16() 109 img_format.image_channel_order = CL_RGBA; in test_writeimage_int16()
|
D | test_imagedim.cpp | 166 img_format.image_channel_order = CL_RGBA; in test_imagedim_pow2() 179 img_format.image_channel_order = CL_RGBA; in test_imagedim_pow2() 411 img_format.image_channel_order = CL_RGBA; in test_imagedim_non_pow2() 424 img_format.image_channel_order = CL_RGBA; in test_imagedim_non_pow2()
|
/external/OpenCL-CTS/test_conformance/extensions/cl_khr_dx9_media_sharing/ |
D | utils.cpp | 952 if (formatExp.image_channel_order != format.image_channel_order in GetImageInfo() 1186 formatPlane.image_channel_order = CL_R; in ImageInfoVerify() 1200 formatPlane.image_channel_order = CL_RG; in ImageInfoVerify() 1278 && imageFormats[i].image_channel_order in ImageFormatCheck() 1279 == imageFormatCheck.image_channel_order) in ImageFormatCheck() 1442 format.image_channel_order = CL_R; in SurfaceFormatToOCL() 1446 format.image_channel_order = CL_R; in SurfaceFormatToOCL() 1450 format.image_channel_order = CL_R; in SurfaceFormatToOCL() 1454 format.image_channel_order = CL_A; in SurfaceFormatToOCL() 1458 format.image_channel_order = CL_R; in SurfaceFormatToOCL() [all …]
|
/external/OpenCL-CTS/test_conformance/images/ |
D | common.cpp | 73 if (testMipmaps && (formatList[j].image_channel_order == CL_DEPTH)) in filter_formats() 90 && gChannelOrderToUse != formatList[j].image_channel_order) in filter_formats() 98 if (!IsChannelOrderSupported(formatList[j].image_channel_order) in filter_formats()
|
/external/OpenCL-CTS/test_conformance/gl/ |
D | test_renderbuffer.cpp | 124 …GetChannelOrderName( clFormat.image_channel_order ), GetChannelTypeName( clFormat.image_channel_da… in test_renderbuffer_read_image() 133 …width * height, type, actualType, get_channel_order_channel_count(clFormat.image_channel_order) )); in test_renderbuffer_read_image() 151 …, actualResults, width, height, 1, get_channel_order_channel_count(clFormat.image_channel_order) ); in test_renderbuffer_read_image() 334 …ght, sourceType, validationType, get_channel_order_channel_count(clFormat.image_channel_order) ) ); in test_renderbuffer_image_write() 338 …GetChannelOrderName( clFormat.image_channel_order ), GetChannelTypeName( clFormat.image_channel_da… in test_renderbuffer_image_write() 350 … * height, type, validationType, get_channel_order_channel_count(clFormat.image_channel_order) ) ); in test_renderbuffer_image_write() 368 …, convertedData, width, height, 1, get_channel_order_channel_count(clFormat.image_channel_order) ); in test_renderbuffer_image_write()
|
D | test_images_read_common.cpp | 247 const char* source = get_appropriate_kernel_for_target(gl_target, outFormat->image_channel_order); in test_cl_image_read() 268 …r_bytes = channelSize * get_channel_order_channel_count(outFormat->image_channel_order) * width * … in test_cl_image_read() 346 …new char[ channelSize * get_channel_order_channel_count(outFormat->image_channel_order) * width * … in test_cl_image_read() 348 …channelSize * get_channel_order_channel_count(outFormat->image_channel_order) * width * height * d… in test_cl_image_read() 561 GetGLTypeName( gl_type ), GetChannelOrderName( clFormat.image_channel_order ), in test_image_format_read() 625 … * d * samples, type, actualType, get_channel_order_channel_count(clFormat.image_channel_order) )); in test_image_format_read() 639 …, actualResults, w, h, d, samples, get_channel_order_channel_count(clFormat.image_channel_order) ); in test_image_format_read()
|
/external/OpenCL-CTS/test_conformance/images/samplerlessReads/ |
D | test_loops.cpp | 155 && readOnlyFormats[i].image_channel_order in test_image_set() 156 == readWriteFormats[j].image_channel_order) in test_image_set() 174 … log_info( " %-7s %-24s %d\n", GetChannelOrderName( formatList[ f ].image_channel_order ), in test_image_set()
|
D | test_iterations.cpp | 234 dataType = (format->image_channel_order == CL_DEPTH) ? "float" : "float4"; in test_read_image_set_2D() 241 (format->image_channel_order == CL_DEPTH) ? "image2d_depth_t" : "image2d_t", in test_read_image_set_2D() 242 (format->image_channel_order == CL_DEPTH) ? "image2d_depth_t" : "image2d_t", in test_read_image_set_2D() 252 (format->image_channel_order == CL_DEPTH) ? "image2d_depth_t" : "image2d_t", in test_read_image_set_2D()
|
D | test_read_2D_array.cpp | 221 dataType = (format->image_channel_order == CL_DEPTH) ? "float" : "float4"; in test_read_image_set_2D_array() 228 … (format->image_channel_order == CL_DEPTH) ? "image2d_array_depth_t" : "image2d_array_t", in test_read_image_set_2D_array() 229 … (format->image_channel_order == CL_DEPTH) ? "image2d_array_depth_t" : "image2d_array_t", in test_read_image_set_2D_array() 238 … (format->image_channel_order == CL_DEPTH) ? "image2d_array_depth_t" : "image2d_array_t", in test_read_image_set_2D_array()
|
D | test_read_1D_buffer.cpp | 184 if (format->image_channel_order == CL_RGB || format->image_channel_order == CL_RGBx) in test_read_image_set_1D_buffer() 201 … log_info( "Skipping image format: %s %s\n", GetChannelOrderName( format->image_channel_order ), in test_read_image_set_1D_buffer()
|
/external/OpenCL-CTS/test_conformance/images/clGetInfo/ |
D | test_2D.cpp | 103 if( outFormat.image_channel_order != imageInfo->format->image_channel_order || in test_get_image_info_single() 107 …GetChannelOrderName( imageInfo->format->image_channel_order ), GetChannelTypeName( imageInfo->form… in test_get_image_info_single() 108 …GetChannelOrderName( outFormat.image_channel_order ), GetChannelTypeName( outFormat.image_channel_… in test_get_image_info_single() 109 (int)outFormat.image_channel_order, (int)outFormat.image_channel_data_type ); in test_get_image_info_single()
|
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_loops.cpp | 89 && (format->image_channel_order == CL_RGB) in test_read_image_type() 339 if (IsChannelOrderSupported(formatList[f].image_channel_order) in test_image_set() 344 GetChannelOrderName(formatList[f].image_channel_order), in test_image_set()
|
D | test_write_image.cpp | 97 int channel_scale = (imageInfo->format->image_channel_order == CL_DEPTH) ? 1 : 4; in test_write_image() 125 if(is_sRGBA_order(imageInfo->format->image_channel_order)) in test_write_image() 404 if(is_sRGBA_order(imageInfo->format->image_channel_order)) in test_write_image() 626 if (format->image_channel_order == CL_RGB || format->image_channel_order == CL_RGBx) in test_write_image_set() 642 … log_info( "Skipping image format: %s %s\n", GetChannelOrderName( format->image_channel_order ), in test_write_image_set() 692 (format->image_channel_order == CL_DEPTH) ? "" : "4", in test_write_image_set() 693 (format->image_channel_order == CL_DEPTH) ? "image2d_depth_t" : "image2d_t", in test_write_image_set()
|
/external/OpenCL-CTS/test_conformance/images/kernel_image_methods/ |
D | test_2D_array.cpp | 88 const char* channelOrderName = GetChannelOrderName( imageInfo->format->image_channel_order ); in test_get_2Dimage_array_info_single() 100 (imageInfo->format->image_channel_order == CL_DEPTH) in test_get_2Dimage_array_info_single() 158 …idate (expected %s (%d), got %d)\n", GetChannelOrderName( imageInfo->format->image_channel_order ), in test_get_2Dimage_array_info_single()
|