/external/OpenCL-CTS/test_conformance/images/kernel_image_methods/ |
D | test_2D.cpp | 78 image_kernel_data outKernelData; in test_get_image_info_single() local 141 sizeof(outKernelData), NULL, &error); in test_get_image_info_single() 155 …EnqueueReadBuffer( queue, outDataBuffer, CL_TRUE, 0, sizeof( outKernelData ), &outKernelData, 0, N… in test_get_image_info_single() 160 if( outKernelData.width != (cl_int)imageInfo->width ) in test_get_image_info_single() 162 …width did not validate (expected %d, got %d)\n", (int)imageInfo->width, (int)outKernelData.width ); in test_get_image_info_single() 165 if( outKernelData.height != (cl_int)imageInfo->height ) in test_get_image_info_single() 167 …ght did not validate (expected %d, got %d)\n", (int)imageInfo->height, (int)outKernelData.height ); in test_get_image_info_single() 170 if( ( imageInfo->depth != 0 ) && ( outKernelData.depth != (cl_int)imageInfo->depth ) ) in test_get_image_info_single() 172 …depth did not validate (expected %d, got %d)\n", (int)imageInfo->depth, (int)outKernelData.depth ); in test_get_image_info_single() 175 if( outKernelData.widthDim != (cl_int)imageInfo->width ) in test_get_image_info_single() [all …]
|
D | test_2D_array.cpp | 65 image_kernel_data outKernelData; in test_get_2Dimage_array_info_single() local 116 sizeof(outKernelData), NULL, &error); in test_get_2Dimage_array_info_single() 130 …EnqueueReadBuffer( queue, outDataBuffer, CL_TRUE, 0, sizeof( outKernelData ), &outKernelData, 0, N… in test_get_2Dimage_array_info_single() 135 if( outKernelData.width != (cl_int)imageInfo->width ) in test_get_2Dimage_array_info_single() 137 …width did not validate (expected %d, got %d)\n", (int)imageInfo->width, (int)outKernelData.width ); in test_get_2Dimage_array_info_single() 140 if( outKernelData.height != (cl_int)imageInfo->height ) in test_get_2Dimage_array_info_single() 142 …ght did not validate (expected %d, got %d)\n", (int)imageInfo->height, (int)outKernelData.height ); in test_get_2Dimage_array_info_single() 145 if( outKernelData.arraySize != (cl_int)imageInfo->arraySize ) in test_get_2Dimage_array_info_single() 147 …d not validate (expected %d, got %d)\n", (int)imageInfo->arraySize, (int)outKernelData.arraySize ); in test_get_2Dimage_array_info_single() 150 if( outKernelData.channelType != (cl_int)outKernelData.expectedChannelType ) in test_get_2Dimage_array_info_single() [all …]
|
D | test_1D_array.cpp | 62 image_kernel_data outKernelData; in test_get_1Dimage_array_info_single() local 110 sizeof(outKernelData), NULL, &error); in test_get_1Dimage_array_info_single() 124 …EnqueueReadBuffer( queue, outDataBuffer, CL_TRUE, 0, sizeof( outKernelData ), &outKernelData, 0, N… in test_get_1Dimage_array_info_single() 129 if( outKernelData.width != (cl_int)imageInfo->width ) in test_get_1Dimage_array_info_single() 131 …width did not validate (expected %d, got %d)\n", (int)imageInfo->width, (int)outKernelData.width ); in test_get_1Dimage_array_info_single() 134 if( outKernelData.arraySize != (cl_int)imageInfo->arraySize ) in test_get_1Dimage_array_info_single() 136 …d not validate (expected %d, got %d)\n", (int)imageInfo->arraySize, (int)outKernelData.arraySize ); in test_get_1Dimage_array_info_single() 139 if( outKernelData.channelType != (cl_int)outKernelData.expectedChannelType ) in test_get_1Dimage_array_info_single() 142 … (int)outKernelData.expectedChannelType, (int)outKernelData.channelType ); in test_get_1Dimage_array_info_single() 145 if( outKernelData.channelOrder != (cl_int)outKernelData.expectedChannelOrder ) in test_get_1Dimage_array_info_single() [all …]
|
D | test_1D.cpp | 59 image_kernel_data outKernelData; in test_get_1Dimage_info_single() local 106 sizeof(outKernelData), NULL, &error); in test_get_1Dimage_info_single() 120 …EnqueueReadBuffer( queue, outDataBuffer, CL_TRUE, 0, sizeof( outKernelData ), &outKernelData, 0, N… in test_get_1Dimage_info_single() 125 if( outKernelData.width != (cl_int)imageInfo->width ) in test_get_1Dimage_info_single() 127 …width did not validate (expected %d, got %d)\n", (int)imageInfo->width, (int)outKernelData.width ); in test_get_1Dimage_info_single() 130 if( outKernelData.channelType != (cl_int)outKernelData.expectedChannelType ) in test_get_1Dimage_info_single() 133 … (int)outKernelData.expectedChannelType, (int)outKernelData.channelType ); in test_get_1Dimage_info_single() 136 if( outKernelData.channelOrder != (cl_int)outKernelData.expectedChannelOrder ) in test_get_1Dimage_info_single() 139 … (int)outKernelData.expectedChannelOrder, (int)outKernelData.channelOrder ); in test_get_1Dimage_info_single()
|
/external/OpenCL-CTS/test_conformance/gl/ |
D | test_image_methods.cpp | 106 image_kernel_data outKernelData; in test_image_format_methods() local 281 sizeof(outKernelData), NULL, &error); in test_image_format_methods() 300 …EnqueueReadBuffer( queue, outDataBuffer, CL_TRUE, 0, sizeof( outKernelData ), &outKernelData, 0, N… in test_image_format_methods() 305 result |= verify(width, outKernelData.width, "width"); in test_image_format_methods() 307 result |= verify(height, outKernelData.height, "height"); in test_image_format_methods() 309 result |= verify(width, outKernelData.widthDim, "width from get_image_dim"); in test_image_format_methods() 311 result |= verify(height, outKernelData.heightDim, "height from get_image_dim"); in test_image_format_methods() 313 result |= verify(outKernelData.channelType, outKernelData.expectedChannelType, channelTypeName); in test_image_format_methods() 315 …result |= verify(outKernelData.channelOrder, outKernelData.expectedChannelOrder, channelOrderName); in test_image_format_methods() 317 result |= verify(arraySize, outKernelData.arraySize, "array size"); in test_image_format_methods() [all …]
|