/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_common.h | 55 image_sampler_data *imageSampler, T *resultPtr, T *expected, float error, in determine_validation_error_offset() argument 61 int found = debug_find_pixel_in_image(imagePtr, imageInfo, resultPtr, in determine_validation_error_offset() 89 (float)expected[3], (float)resultPtr[0], in determine_validation_error_offset() 90 (float)resultPtr[1], (float)resultPtr[2], in determine_validation_error_offset() 91 (float)resultPtr[3], error); in determine_validation_error_offset() 99 (int)expected[2], (int)expected[3], (int)resultPtr[0], in determine_validation_error_offset() 100 (int)resultPtr[1], (int)resultPtr[2], in determine_validation_error_offset() 101 (int)resultPtr[3]); in determine_validation_error_offset() 115 if (resultPtr[0] == 0 && resultPtr[1] == 0 && resultPtr[2] == 0 in determine_validation_error_offset() 116 && resultPtr[3] == 0) in determine_validation_error_offset() [all …]
|
D | test_read_1D.cpp | 55 T *resultPtr, T * expected, float error, in determine_validation_error_1D() argument 59 …int found = debug_find_pixel_in_image( imagePtr, imageInfo, resultPtr, &actualX, &actualY, NULL, l… in determine_validation_error_1D() 77 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_1D() 83 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_1D() 94 … if( resultPtr[ 0 ] == 0 && resultPtr[ 1 ] == 0 && resultPtr[ 2 ] == 0 && resultPtr[ 3 ] == 0 ) in determine_validation_error_1D() 103 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_1D() 109 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_1D() 122 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_1D() 128 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_1D() 476 float *resultPtr = (float *)(char *)resultValues; in test_read_image_1D() local [all …]
|
D | test_read_1D_array.cpp | 63 T *resultPtr, T * expected, float error, in determine_validation_error_1D_arr() argument 67 …int found = debug_find_pixel_in_image( imagePtr, imageInfo, resultPtr, &actualX, &actualY, NULL, l… in determine_validation_error_1D_arr() 89 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_1D_arr() 95 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_1D_arr() 106 … if( resultPtr[ 0 ] == 0 && resultPtr[ 1 ] == 0 && resultPtr[ 2 ] == 0 && resultPtr[ 3 ] == 0 ) in determine_validation_error_1D_arr() 115 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_1D_arr() 121 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_1D_arr() 134 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_1D_arr() 140 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_1D_arr() 567 float *resultPtr = (float *)(char *)resultValues; in test_read_image_1D_array() local [all …]
|
D | test_read_2D_array.cpp | 79 T *resultPtr, T * expected, float error, in determine_validation_error_offset_2D_array() argument 83 …int found = debug_find_pixel_in_image( imagePtr, imageInfo, resultPtr, &actualX, &actualY, &actual… in determine_validation_error_offset_2D_array() 106 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_offset_2D_array() 114 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_offset_2D_array() 135 … if( resultPtr[ 0 ] == 0 && resultPtr[ 1 ] == 0 && resultPtr[ 2 ] == 0 && resultPtr[ 3 ] == 0 ) in determine_validation_error_offset_2D_array() 147 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_offset_2D_array() 155 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_offset_2D_array() 173 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error_offset_2D_array() 181 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error_offset_2D_array() 582 float *resultPtr = (float *)(char *)resultValues; in test_read_image_2D_array() local [all …]
|
D | test_iterations.cpp | 76 T *resultPtr, T * expected, float error, in determine_validation_error() argument 80 …int found = debug_find_pixel_in_image( imagePtr, imageInfo, resultPtr, &actualX, &actualY, NULL, l… in determine_validation_error() 99 … (int)j, x, x, y, y, (float)expected[ 0 ], (float)resultPtr[ 0 ], error ); in determine_validation_error() 104 (int)j, x, x, y, y, (int)expected[ 0 ], (int)resultPtr[ 0 ] ); in determine_validation_error() 113 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error() 119 … (int)resultPtr[ 0 ], (int)resultPtr[ 1 ], (int)resultPtr[ 2 ], (int)resultPtr[ 3 ] ); in determine_validation_error() 131 … if( resultPtr[ 0 ] == 0 && resultPtr[ 1 ] == 0 && resultPtr[ 2 ] == 0 && resultPtr[ 3 ] == 0 ) in determine_validation_error() 141 … (int)j, x, x, y, y, (float)expected[ 0 ], (float)resultPtr[ 0 ], error ); in determine_validation_error() 146 (int)j, x, x, y, y, (int)expected[ 0 ], (int)resultPtr[ 0 ] ); in determine_validation_error() 155 …(float)resultPtr[ 0 ], (float)resultPtr[ 1 ], (float)resultPtr[ 2 ], (float)resultPtr[ 3 ], error … in determine_validation_error() [all …]
|
D | test_common.cpp | 530 float *resultPtr = (float *)(char *)resultValues; in test_read_image() local 590 ABS_ERROR(sRGBmap(resultPtr[0]), in test_read_image() 593 ABS_ERROR(sRGBmap(resultPtr[1]), in test_read_image() 596 ABS_ERROR(sRGBmap(resultPtr[2]), in test_read_image() 598 float err4 = ABS_ERROR(resultPtr[3], in test_read_image() 650 sRGBmap(resultPtr[0]), in test_read_image() 653 sRGBmap(resultPtr[1]), in test_read_image() 656 sRGBmap(resultPtr[2]), in test_read_image() 658 err4 = ABS_ERROR(resultPtr[3], in test_read_image() 712 ABS_ERROR(sRGBmap(resultPtr[0]), in test_read_image() [all …]
|
D | test_write_1D.cpp | 308 char *resultPtr = (char *)resultValues; in test_write_image_1D() local 327 cl_uchar *actual = (cl_uchar*)resultPtr; in test_write_image_1D() 360 float *actual = (float *)resultPtr; in test_write_image_1D() 365 unsigned int *a = (unsigned int *)resultPtr; in test_write_image_1D() 379 cl_half *a = (cl_half *)resultPtr; in test_write_image_1D() 399 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_1D() 431 … read_image_pixel<unsigned int>( resultPtr, imageInfo, 0, 0, 0, deviceResults, lod); in test_write_image_1D() 432 … read_image_pixel<unsigned int>( resultPtr, imageInfo, 1, 0, 0, &deviceResults[ 4 ], lod ); in test_write_image_1D() 458 …x%2.2x 0x%2.2x\n", ((cl_uchar*)resultPtr)[0], ((cl_uchar*)resultPtr)[1], ((cl_uchar*)resultPtr)[2]… in test_write_image_1D() 469 …4.4x 0x%4.4x\n", ((cl_ushort*)resultPtr)[0], ((cl_ushort*)resultPtr)[1], ((cl_ushort*)resultPtr)[2… in test_write_image_1D() [all …]
|
D | test_write_1D_array.cpp | 324 char *resultPtr; in test_write_image_1D_array() local 326 resultPtr = (char *)resultValues + y * width_lod * pixelSize; in test_write_image_1D_array() 328 resultPtr = (char*)resultValues + y * imageInfo->rowPitch; in test_write_image_1D_array() 347 cl_uchar *actual = (cl_uchar*)resultPtr; in test_write_image_1D_array() 380 float *actual = (float *)resultPtr; in test_write_image_1D_array() 385 unsigned int *a = (unsigned int *)resultPtr; in test_write_image_1D_array() 399 cl_half *a = (cl_half *)resultPtr; in test_write_image_1D_array() 419 if( memcmp( resultBuffer, resultPtr, pixelSize ) != 0 ) in test_write_image_1D_array() 451 … read_image_pixel<unsigned int>( resultPtr, imageInfo, 0, 0, 0, deviceResults, lod ); in test_write_image_1D_array() 452 … read_image_pixel<unsigned int>( resultPtr, imageInfo, 1, 0, 0, &deviceResults[ 4 ], lod ); in test_write_image_1D_array() [all …]
|
D | test_write_3D.cpp | 352 char *resultPtr; in test_write_image_3D() local 354 …resultPtr = (char *)resultValues + y * width_lod * pixelSize + z * width_lod * height_lod * pixelS… in test_write_image_3D() 356 … resultPtr = (char *)resultValues + y * imageInfo->rowPitch + z * imageInfo->slicePitch; in test_write_image_3D() 375 cl_uchar *actual = (cl_uchar*)resultPtr; in test_write_image_3D() 408 float *actual = (float *)resultPtr; in test_write_image_3D() 413 unsigned int *a = (unsigned int *)resultPtr; in test_write_image_3D() 427 cl_half *a = (cl_half *)resultPtr; in test_write_image_3D() 433 unsigned short *a = (unsigned short *)resultPtr; in test_write_image_3D() 449 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_3D() 481 … read_image_pixel<unsigned int>( resultPtr, imageInfo, 0, 0, 0, deviceResults, lod ); in test_write_image_3D() [all …]
|
D | test_write_2D_array.cpp | 345 char *resultPtr; in test_write_image_2D_array() local 347 …resultPtr = (char *)resultValues + y * width_lod * pixelSize + z * width_lod * height_lod * pixelS… in test_write_image_2D_array() 349 … resultPtr = (char*)resultValues + y * imageInfo->rowPitch + z * imageInfo->slicePitch; in test_write_image_2D_array() 368 cl_uchar *actual = (cl_uchar*)resultPtr; in test_write_image_2D_array() 401 float *actual = (float *)resultPtr; in test_write_image_2D_array() 406 unsigned int *a = (unsigned int *)resultPtr; in test_write_image_2D_array() 420 cl_half *a = (cl_half *)resultPtr; in test_write_image_2D_array() 426 unsigned short *a = (unsigned short *)resultPtr; in test_write_image_2D_array() 442 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_2D_array() 474 … read_image_pixel<unsigned int>( resultPtr, imageInfo, 0, 0, 0, deviceResults, lod); in test_write_image_2D_array() [all …]
|
D | test_write_image.cpp | 386 char *resultPtr; in test_write_image() local 388 resultPtr = (char *)resultValues + y * width_lod * pixelSize; in test_write_image() 390 resultPtr = (char*)resultValues + y * imageInfo->rowPitch; in test_write_image() 409 cl_uchar *actual = (cl_uchar*)resultPtr; in test_write_image() 442 float *actual = (float *)resultPtr; in test_write_image() 447 unsigned int *a = (unsigned int *)resultPtr; in test_write_image() 461 cl_half *a = (cl_half *)resultPtr; in test_write_image() 481 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image() 513 … read_image_pixel<unsigned int>( resultPtr, imageInfo, 0, 0, 0, deviceResults, lod ); in test_write_image() 514 … read_image_pixel<unsigned int>( resultPtr, imageInfo, 1, 0, 0, &deviceResults[ 4 ], lod ); in test_write_image() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/ray_tracing/ |
D | vktRayTracingMiscTests.cpp | 444 std::unique_ptr<TopLevelAccelerationStructure> resultPtr; in createTLAS() local 788 resultPtr = decltype(resultPtr)(tlPtr.release() ); in createTLAS() 789 return resultPtr; in createTLAS() 976 std::unique_ptr<TopLevelAccelerationStructure> resultPtr; in createTLAS() local 1014 resultPtr = decltype(resultPtr)(tlPtr.release() ); in createTLAS() 1015 return resultPtr; in createTLAS() 2824 VkSpecializationInfo* resultPtr = nullptr; in getSpecializationInfoPtr() local 2830 resultPtr = &m_specializationInfo; in getSpecializationInfoPtr() 2833 return resultPtr; in getSpecializationInfoPtr() 5132 const char* resultPtr = "!?"; in getVariableTypeGLSLType() local [all …]
|
D | vktRayTracingAccelerationStructuresTests.cpp | 2350 …const deUint32* resultPtr = reinterpret_cast<deUint32*>(resultBuffer->getAllocation().getHostPtr()… in iterate() local 2353 failures += (resultPtr[0 * activeTlasCount + index] != 2) + in iterate() 2354 (resultPtr[1 * activeTlasCount + index] != 3) + in iterate() 2355 (resultPtr[2 * activeTlasCount + index] != 5) + in iterate() 2356 (resultPtr[3 * activeTlasCount + index] != 7); in iterate()
|
/external/icu/icu4c/source/tools/toolutil/ |
D | toolutil.cpp | 132 const char *resultPtr = NULL; in findDirname() local 144 resultPtr = ""; in findDirname() 147 resultPtr = path; in findDirname() 155 uprv_strncpy(buffer, resultPtr, resultLen); in findDirname()
|
/external/libxml2/ |
D | xmlstring.c | 1008 xmlChar *resultPtr = NULL; in xmlEscapeFormatString() local 1036 for (msgPtr = *msg, resultPtr = result; *msgPtr != '\0'; ++msgPtr, ++resultPtr) { in xmlEscapeFormatString() 1037 *resultPtr = *msgPtr; in xmlEscapeFormatString() 1039 *(++resultPtr) = '%'; in xmlEscapeFormatString()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiDescriptorSetTests.cpp | 592 const deUint32* resultPtr = static_cast<deUint32*>(bufferAllocationResult.getHostPtr()); in descriptorSetLayoutBindingOrderingTest() local 594 if (resultPtr[0] == 5 && resultPtr[1] == 5 && resultPtr[2] == 5) in descriptorSetLayoutBindingOrderingTest()
|
/external/deqp/external/vulkancts/modules/vulkan/ray_query/ |
D | vktRayQueryWatertightnessTests.cpp | 1877 const deInt32* resultPtr = (deInt32*)resultBuffer->getAllocation().getHostPtr(); in verify() local 1884 if (resultPtr[pos] <= 0) in verify() 1900 if (resultPtr[pos] <= 0) in verify() 1901 css << std::setw(3) << resultPtr[pos] << ","; in verify() 1934 const deInt32* resultPtr = (deInt32*)resultBuffer->getAllocation().getHostPtr(); in verify() local 1942 if (resultPtr[pos] != expectedValue) in verify() 1958 if (resultPtr[pos] != expectedValue) in verify() 1959 css << std::setw(3) << resultPtr[pos] << ","; in verify()
|
D | vktRayQueryBuiltinTests.cpp | 1625 const deInt32* resultPtr = (deInt32*)resultBuffer->getAllocation().getHostPtr(); in verify() local 1633 if (resultPtr[pos] != expectedPtr[pos]) in verify() 1653 if (resultPtr[pos] != expectedPtr[pos]) in verify() 1654 css << std::setw(12) << (n == 0 ? resultPtr[pos] : expectedPtr[pos]) << ","; in verify() 1678 const deInt32* resultPtr = (deInt32*)resultBuffer->getAllocation().getHostPtr(); in verify() local 1686 const float retrievedValue = float(resultPtr[pos]) / float(FIXED_POINT_DIVISOR); in verify() 1709 const float retrievedValue = float(resultPtr[pos]) / float(FIXED_POINT_DIVISOR); in verify() 1738 const deInt32* resultPtr = (deInt32*)resultBuffer->getAllocation().getHostPtr(); in verify() local 1751 const float retrievedValue = float(resultPtr[pos]) / float(FIXED_POINT_DIVISOR); in verify() 1780 …const float retrievedValue = float(resultPtr[nSquares * retrievedComponentNdx + squareNdx]) / floa… in verify() [all …]
|
D | vktRayQueryAccelerationStructuresTests.cpp | 3294 …const deUint32* resultPtr = reinterpret_cast<deUint32*>(resultBuffer->getAllocation().getHostPtr()… in iterate() local 3297 failures += (resultPtr[0 * activeTlasCount + index] != 2) + in iterate() 3298 (resultPtr[1 * activeTlasCount + index] != 3) + in iterate() 3299 (resultPtr[2 * activeTlasCount + index] != 5) + in iterate() 3300 (resultPtr[3 * activeTlasCount + index] != 7); in iterate()
|
/external/clang/lib/CodeGen/ |
D | CGExprCXX.cpp | 1469 llvm::Value *resultPtr = result.getPointer(); in EmitCXXNewExpr() local 1476 llvm::PHINode *PHI = Builder.CreatePHI(resultPtr->getType(), 2); in EmitCXXNewExpr() 1477 PHI->addIncoming(resultPtr, notNullBB); in EmitCXXNewExpr() 1478 PHI->addIncoming(llvm::Constant::getNullValue(resultPtr->getType()), in EmitCXXNewExpr() 1481 resultPtr = PHI; in EmitCXXNewExpr() 1484 return resultPtr; in EmitCXXNewExpr()
|
/external/zstd/tests/ |
D | paramgrill.c | 1685 static int BMK_benchParam ( BMK_benchResult_t* resultPtr, in BMK_benchParam() argument 1693 *resultPtr = BMK_extract_benchResult(outcome); in BMK_benchParam() 1700 static int allBench(BMK_benchResult_t* resultPtr, in allBench() argument 1720 *resultPtr = benchres; in allBench() 1764 static int benchMemo(BMK_benchResult_t* resultPtr, in benchMemo() argument 1778 res = allBench(resultPtr, buf, ctx, cParams, target, winnerResult, feas); in benchMemo() 1784 BMK_printWinnerOpt(stdout, CUSTOM_LEVEL, *resultPtr, cParams, target, buf.srcSize); in benchMemo()
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGExprCXX.cpp | 1754 llvm::Value *resultPtr = result.getPointer(); in EmitCXXNewExpr() local 1761 llvm::PHINode *PHI = Builder.CreatePHI(resultPtr->getType(), 2); in EmitCXXNewExpr() 1762 PHI->addIncoming(resultPtr, notNullBB); in EmitCXXNewExpr() 1763 PHI->addIncoming(llvm::Constant::getNullValue(resultPtr->getType()), in EmitCXXNewExpr() 1766 resultPtr = PHI; in EmitCXXNewExpr() 1769 return resultPtr; in EmitCXXNewExpr()
|
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/ |
D | StandardToLLVM.cpp | 636 auto resultPtr = builder.create<LLVM::GEPOp>(loc, indexPtrTy, sizesPtr, in size() local 638 return builder.create<LLVM::LoadOp>(loc, resultPtr); in size()
|