/external/OpenCL-CTS/test_conformance/images/kernel_read_write/ |
D | test_write_1D.cpp | 311 … char resultBuffer[ 16 ]; // Largest format would be 4 channels * 4 bytes (32 bits) each in test_write_image_1D() local 315 pack_image_pixel( (float *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_1D() 317 pack_image_pixel( (int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_1D() 319 … pack_image_pixel( (unsigned int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_1D() 359 float *expected = (float *)resultBuffer; in test_write_image_1D() 364 unsigned int *e = (unsigned int *)resultBuffer; in test_write_image_1D() 378 cl_half *e = (cl_half *)resultBuffer; in test_write_image_1D() 399 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_1D() 404 … pack_image_pixel_error( (float *)imagePtr, imageInfo->format, resultBuffer, errors ); in test_write_image_1D() 457 … 0x%2.2x\n", ((cl_uchar*)resultBuffer)[0], ((cl_uchar*)resultBuffer)[1], ((cl_uchar*)resultBuffer)… in test_write_image_1D() [all …]
|
D | test_write_1D_array.cpp | 331 … char resultBuffer[ 16 ]; // Largest format would be 4 channels * 4 bytes (32 bits) each in test_write_image_1D_array() local 335 pack_image_pixel( (float *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_1D_array() 337 pack_image_pixel( (int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_1D_array() 339 … pack_image_pixel( (unsigned int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_1D_array() 379 float *expected = (float *)resultBuffer; in test_write_image_1D_array() 384 unsigned int *e = (unsigned int *)resultBuffer; in test_write_image_1D_array() 398 cl_half *e = (cl_half *)resultBuffer; in test_write_image_1D_array() 419 if( memcmp( resultBuffer, resultPtr, pixelSize ) != 0 ) in test_write_image_1D_array() 424 … pack_image_pixel_error( (float *)imagePtr, imageInfo->format, resultBuffer, errors ); in test_write_image_1D_array() 477 … 0x%2.2x\n", ((cl_uchar*)resultBuffer)[0], ((cl_uchar*)resultBuffer)[1], ((cl_uchar*)resultBuffer)… in test_write_image_1D_array() [all …]
|
D | test_write_3D.cpp | 359 … char resultBuffer[ 16 ]; // Largest format would be 4 channels * 4 bytes (32 bits) each in test_write_image_3D() local 363 pack_image_pixel( (float *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_3D() 365 pack_image_pixel( (int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_3D() 367 … pack_image_pixel( (unsigned int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_3D() 407 float *expected = (float *)resultBuffer; in test_write_image_3D() 412 unsigned int *e = (unsigned int *)resultBuffer; in test_write_image_3D() 426 cl_half *e = (cl_half *)resultBuffer; in test_write_image_3D() 432 unsigned short *e = (unsigned short *)resultBuffer; in test_write_image_3D() 449 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_3D() 454 … pack_image_pixel_error( (float *)imagePtr, imageInfo->format, resultBuffer, errors ); in test_write_image_3D() [all …]
|
D | test_write_2D_array.cpp | 352 … char resultBuffer[ 16 ]; // Largest format would be 4 channels * 4 bytes (32 bits) each in test_write_image_2D_array() local 356 pack_image_pixel( (float *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_2D_array() 358 pack_image_pixel( (int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_2D_array() 360 … pack_image_pixel( (unsigned int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image_2D_array() 400 float *expected = (float *)resultBuffer; in test_write_image_2D_array() 405 unsigned int *e = (unsigned int *)resultBuffer; in test_write_image_2D_array() 419 cl_half *e = (cl_half *)resultBuffer; in test_write_image_2D_array() 425 unsigned short *e = (unsigned short *)resultBuffer; in test_write_image_2D_array() 442 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image_2D_array() 447 … pack_image_pixel_error( (float *)imagePtr, imageInfo->format, resultBuffer, errors ); in test_write_image_2D_array() [all …]
|
D | test_write_image.cpp | 393 … char resultBuffer[ 16 ]; // Largest format would be 4 channels * 4 bytes (32 bits) each in test_write_image() local 397 pack_image_pixel( (float *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image() 399 pack_image_pixel( (int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image() 401 … pack_image_pixel( (unsigned int *)imagePtr, imageInfo->format, resultBuffer ); in test_write_image() 441 float *expected = (float *)resultBuffer; in test_write_image() 446 unsigned int *e = (unsigned int *)resultBuffer; in test_write_image() 460 cl_half *e = (cl_half *)resultBuffer; in test_write_image() 481 … if( memcmp( resultBuffer, resultPtr, get_pixel_size( imageInfo->format ) ) != 0 ) in test_write_image() 486 … pack_image_pixel_error( (float *)imagePtr, imageInfo->format, resultBuffer, errors ); in test_write_image() 540 … 0x%2.2x\n", ((cl_uchar*)resultBuffer)[0], ((cl_uchar*)resultBuffer)[1], ((cl_uchar*)resultBuffer)… in test_write_image() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | cnmdptst.c | 648 UChar resultBuffer[512]; in TestSecondaryGrouping() local 663 unum_format(f, (int32_t)123456789L, resultBuffer, 512 , &pos, &status); in TestSecondaryGrouping() 665 if ((u_strcmp(resultBuffer, buffer) != 0) || U_FAILURE(status)) in TestSecondaryGrouping() 667 … \"#,##,###\" pattern with 123456789 got %s, expected %s\n", austrdup(resultBuffer), "12,34,56,789… in TestSecondaryGrouping() 672 memset(resultBuffer,0, sizeof(UChar)*512); in TestSecondaryGrouping() 673 unum_toPattern(f, FALSE, resultBuffer, 512, &status); in TestSecondaryGrouping() 675 if ((u_strcmp(resultBuffer, buffer) != 0) || U_FAILURE(status)) in TestSecondaryGrouping() 677 log_err("Fail: toPattern() got %s, expected %s\n", austrdup(resultBuffer), "#,##,##0"); in TestSecondaryGrouping() 679 memset(resultBuffer,0, sizeof(UChar)*512); in TestSecondaryGrouping() 687 unum_format(f, (int32_t)123456789L, resultBuffer, 512 , &pos, &status); in TestSecondaryGrouping() [all …]
|
/external/deqp/external/openglcts/modules/glesext/geometry_shader/ |
D | esextcGeometryShaderPrimitiveCounter.cpp | 1309 …glw::GLubyte* resultBuffer = new glw::GLubyte[m_texture_width * m_texture_height * m_texture_n_com… in iterate() local 1315 delete[] resultBuffer; in iterate() 1316 resultBuffer = NULL; in iterate() 1320 …(0 /* x */, 0 /* y */, m_texture_width, m_texture_height, GL_RGBA, GL_UNSIGNED_BYTE, resultBuffer); in iterate() 1325 delete[] resultBuffer; in iterate() 1326 resultBuffer = NULL; in iterate() 1333 glw::GLubyte* data_row = resultBuffer + y * m_texture_width * m_texture_n_components; in iterate() 1369 delete[] resultBuffer; in iterate() 1370 resultBuffer = NULL; in iterate() 1380 delete[] resultBuffer; in iterate() [all …]
|
/external/lz4/programs/ |
D | bench.c | 172 void* const resultBuffer = malloc(srcSize); in BMK_benchMem() local 178 if (!compressedBuffer || !resultBuffer || !blockTable) in BMK_benchMem() 200 char* resPtr = (char*)resultBuffer; in BMK_benchMem() 290 if (!dCompleted) memset(resultBuffer, 0xD6, srcSize); /* warm result buffer */ in BMK_benchMem() 329 { U64 const crcCheck = XXH64(resultBuffer, srcSize, 0); in BMK_benchMem() 334 if (((const BYTE*)srcBuffer)[u] != ((const BYTE*)resultBuffer)[u]) { in BMK_benchMem() 369 free(resultBuffer); in BMK_benchMem()
|
/external/zstd/programs/ |
D | benchzstd.c | 496 { const BYTE* resultBuffer = (const BYTE*)(*resultBufferPtr); in BMK_benchMemAdvancedNoAlloc() local 497 U64 const crcCheck = XXH64(resultBuffer, srcSize, 0); in BMK_benchMemAdvancedNoAlloc() 503 if (((const BYTE*)srcBuffer)[u] != resultBuffer[u]) { in BMK_benchMemAdvancedNoAlloc() 525 DISPLAY("%02X ", resultBuffer[u-n]); in BMK_benchMemAdvancedNoAlloc() 526 DISPLAY(" :%02X: ", resultBuffer[u]); in BMK_benchMemAdvancedNoAlloc() 528 DISPLAY("%02X ", resultBuffer[u+n]); in BMK_benchMemAdvancedNoAlloc() 595 void* resultBuffer = srcSize ? malloc(srcSize) : NULL; in BMK_benchMemAdvanced() local 601 !compressedBuffer || !resultBuffer; in BMK_benchMemAdvanced() 608 &resultBuffer, in BMK_benchMemAdvanced() 627 free(resultBuffer); in BMK_benchMemAdvanced()
|
/external/deqp/external/vulkancts/modules/vulkan/ray_tracing/ |
D | vktRayTracingTraversalControlTests.cpp | 108 virtual bool verifyImage (BufferWithMemory* resultBuffer, 193 bool verifyImage (BufferWithMemory* resultBuffer, 311 bool SingleSquareConfiguration::verifyImage (BufferWithMemory* resultBuffer, Context& context, Test… in verifyImage() argument 315 …ess resultAccess(imageFormat, testParams.width, testParams.height, 2, resultBuffer->getAllocation(… in verifyImage() 636 …de::MovePtr<BufferWithMemory> resultBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMem… in runTest() local 697 …vkd.cmdCopyImageToBuffer(*cmdBuffer, **image, VK_IMAGE_LAYOUT_GENERAL, **resultBuffer, 1u, &result… in runTest() 705 …invalidateMappedMemoryRange(vkd, device, resultBuffer->getAllocation().getMemory(), resultBuffer->… in runTest() 707 return resultBuffer; in runTest()
|
D | vktRayTracingCallableShadersTests.cpp | 101 virtual bool verifyImage (BufferWithMemory* resultBuffer, 185 bool verifyImage (BufferWithMemory* resultBuffer, 363 bool SingleSquareConfiguration::verifyImage (BufferWithMemory* resultBuffer, Context& context, Test… in verifyImage() argument 367 …ess resultAccess(imageFormat, testParams.width, testParams.height, 1, resultBuffer->getAllocation(… in verifyImage() 714 …de::MovePtr<BufferWithMemory> resultBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMem… in runTest() local 775 …vkd.cmdCopyImageToBuffer(*cmdBuffer, **image, VK_IMAGE_LAYOUT_GENERAL, **resultBuffer, 1u, &result… in runTest() 783 …invalidateMappedMemoryRange(vkd, device, resultBuffer->getAllocation().getMemory(), resultBuffer->… in runTest() 785 return resultBuffer; in runTest()
|
/external/deqp/external/vulkancts/modules/vulkan/compute/ |
D | vktComputeIndirectComputeDispatchTests.cpp | 138 deBool verifyResultBuffer (const Buffer& resultBuffer, 224 Buffer resultBuffer( in iterate() local 230 const vk::Allocation& alloc = resultBuffer.getAllocation(); in iterate() 266 …vk::VK_ACCESS_SHADER_WRITE_BIT, vk::VK_ACCESS_HOST_READ_BIT, *resultBuffer, 0ull, resultBufferSize… in iterate() 297 …const vk::VkDescriptorBufferInfo resultDescriptorInfo = makeDescriptorBufferInfo(*resultBuffer, cu… in iterate() 325 if (verifyResultBuffer(resultBuffer, resultBlockSize)) in iterate() 331 deBool IndirectDispatchInstanceBufferUpload::verifyResultBuffer (const Buffer& resultBuffer, in verifyResultBuffer() argument 335 const vk::Allocation& alloc = resultBuffer.getAllocation(); in verifyResultBuffer()
|
/external/deqp/external/vulkancts/modules/vulkan/synchronization/ |
D | vktSynchronizationInternallySynchronizedObjectsTests.cpp | 292 …Buffer resultBuffer (vk, device, *queues.m_allocator, makeBufferCreateInfo(BUFFER_SIZE, VK_… in executeComputePipeline() local 293 …erMemoryBarrier(VK_ACCESS_SHADER_WRITE_BIT, VK_ACCESS_HOST_READ_BIT, *resultBuffer, 0ull, BUFFER_S… in executeComputePipeline() 298 const Allocation& alloc = resultBuffer.getAllocation(); in executeComputePipeline() 311 …const VkDescriptorBufferInfo resultDescriptorInfo = makeDescriptorBufferInfo(*resultBuffer, 0ull, … in executeComputePipeline() 335 const Allocation& resultAlloc = resultBuffer.getAllocation(); in executeComputePipeline() 367 …Buffer resultBuffer (vk, device, *queues.m_allocator, makeBufferCreateInfo(BUFFER_SIZE, V… in executeGraphicPipeline() local 368 …erMemoryBarrier(VK_ACCESS_SHADER_WRITE_BIT, VK_ACCESS_HOST_READ_BIT, *resultBuffer, 0ull, BUFFER_S… in executeGraphicPipeline() 379 …const VkDescriptorBufferInfo outputBufferDescriptorInfo = makeDescriptorBufferInfo(*resultBuffer, … in executeGraphicPipeline() 386 const Allocation& alloc = resultBuffer.getAllocation(); in executeGraphicPipeline() 429 const Allocation& resultAlloc = resultBuffer.getAllocation(); in executeGraphicPipeline() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/fragment_shading_rate/ |
D | vktFragmentShadingRatePixelConsistency.cpp | 158 tcu::TestStatus verifyResult(tcu::ConstPixelBufferAccess& resultBuffer, const deUint32 index); 393 tcu::TestStatus FSRPixelConsistencyInstance::verifyResult(tcu::ConstPixelBufferAccess& resultBuffer… in verifyResult() argument 398 for (int y = 0; y < resultBuffer.getHeight(); y++) in verifyResult() 400 for (int x = 0; x < resultBuffer.getWidth(); x++) in verifyResult() 402 deUint32 pixel = resultBuffer.getPixelUint(x, y)[index]; in verifyResult() 411 ….width + 1) * m_shadingRateClamped[index].width > static_cast<deUint32>(resultBuffer.getWidth()); in verifyResult() 412 …height + 1) * m_shadingRateClamped[index].height > static_cast<deUint32>(resultBuffer.getHeight()); in verifyResult() 1255 tcu::ConstPixelBufferAccess resultBuffer = tcu::ConstPixelBufferAccess( in iterate() local 1261 tcu::TestStatus result = verifyResult(resultBuffer, i); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/ray_query/ |
D | vktRayQueryProceduralGeometryTests.cpp | 118 …de::SharedPtr<BufferWithMemory> resultBuffer = de::SharedPtr<BufferWithMemory>(new BufferWithMe… in iterate() local 146 clearBuffer(resultBuffer, resultBufferSize); in iterate() 165 …const VkDescriptorBufferInfo resultSSBO = makeDescriptorBufferInfo(**resultBuffer, 0u, VK_WHO… in iterate() 201 auto resultAllocation = resultBuffer->getAllocation(); in iterate()
|
D | vktRayQueryTraversalControlTests.cpp | 115 virtual bool verifyImage (BufferWithMemory* resultBuffer, 242 bool verifyImage (BufferWithMemory* resultBuffer, 573 bool GraphicsConfiguration::verifyImage (BufferWithMemory* resultBuffer, in verifyImage() argument 579 …ess resultAccess(imageFormat, testParams.width, testParams.height, 2, resultBuffer->getAllocation(… in verifyImage() 715 bool verifyImage (BufferWithMemory* resultBuffer, 803 bool ComputeConfiguration::verifyImage (BufferWithMemory* resultBuffer, in verifyImage() argument 809 …ess resultAccess(imageFormat, testParams.width, testParams.height, 2, resultBuffer->getAllocation(… in verifyImage() 900 bool verifyImage (BufferWithMemory* resultBuffer, 1085 bool RayTracingConfiguration::verifyImage (BufferWithMemory* resultBuffer, in verifyImage() argument 1091 …ess resultAccess(imageFormat, testParams.width, testParams.height, 2, resultBuffer->getAllocation(… in verifyImage() [all …]
|
D | vktRayQueryCullRayFlagsTests.cpp | 153 virtual bool verifyImage (BufferWithMemory* resultBuffer, 323 bool verifyImage (BufferWithMemory* resultBuffer, 656 bool GraphicsConfiguration::verifyImage (BufferWithMemory* resultBuffer, in verifyImage() argument 662 …ess resultAccess(imageFormat, testParams.width, testParams.height, 2, resultBuffer->getAllocation(… in verifyImage() 760 bool verifyImage (BufferWithMemory* resultBuffer, 850 bool ComputeConfiguration::verifyImage (BufferWithMemory* resultBuffer, in verifyImage() argument 856 …ess resultAccess(imageFormat, testParams.width, testParams.height, 2, resultBuffer->getAllocation(… in verifyImage() 919 bool verifyImage (BufferWithMemory* resultBuffer, 1109 bool RayTracingConfiguration::verifyImage (BufferWithMemory* resultBuffer, in verifyImage() argument 1115 …ess resultAccess(imageFormat, testParams.width, testParams.height, 2, resultBuffer->getAllocation(… in verifyImage() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/image/ |
D | vktImageAtomicOperationTests.cpp | 1449 …tcu::ConstPixelBufferAccess resultBuffer(m_format, gridSize.x(), gridSize.y(), gridSize.z(), outpu… in verifyResult() local 1451 for (deInt32 z = 0; z < resultBuffer.getDepth(); z++) in verifyResult() 1452 for (deInt32 y = 0; y < resultBuffer.getHeight(); y++) in verifyResult() 1453 for (deInt32 x = 0; x < resultBuffer.getWidth(); x++) in verifyResult() 1455 const void* resultValue = resultBuffer.getPixelPtr(x, y, z); in verifyResult() 1594 bool areValuesCorrect (tcu::ConstPixelBufferAccess& resultBuffer, 1770 …tcu::ConstPixelBufferAccess resultBuffer(m_format, extendedGridSize.x(), extendedGridSize.y(), ext… in verifyResult() local 1772 for (deInt32 z = 0; z < resultBuffer.getDepth(); z++) in verifyResult() 1773 for (deInt32 y = 0; y < resultBuffer.getHeight(); y++) in verifyResult() 1780 if (!areValuesCorrect<deUint64>(resultBuffer, false, x, y, z, gridSize, extendedGridSize)) in verifyResult() [all …]
|
D | vktImageMisalignedCubeTests.cpp | 168 …de::MovePtr<Buffer> resultBuffer = de::MovePtr<Buffer>(new Buffer(vk, device, allocator, resu… in iterate() local 169 const Allocation& resultBufferAlloc = resultBuffer->getAllocation(); in iterate() 190 …const VkDescriptorBufferInfo descriptorBufferInfo = makeDescriptorBufferInfo(resultBuffer->get(), … in iterate() 209 resultBuffer->get(), 0ull, VK_WHOLE_SIZE); in iterate()
|
D | vktImageMultisampleLoadStoreTests.cpp | 284 …UniquePtr<Buffer> resultBuffer (new Buffer(vk, device, allocator, makeBufferCreateInfo(resultBuf… in test() local 288 const Allocation& alloc = resultBuffer->getAllocation(); in test() 416 …(*cmdBuffer, **checksumImage, VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, **resultBuffer, 1u, ©Regio… in test() 421 …makeBufferMemoryBarrier(VK_ACCESS_TRANSFER_WRITE_BIT, VK_ACCESS_HOST_READ_BIT, **resultBuffer, 0ul… in test() 433 const Allocation& alloc = resultBuffer->getAllocation(); in test()
|
/external/deqp/modules/gles31/functional/ |
D | es31fIndirectComputeDispatchTests.cpp | 347 glu::Buffer resultBuffer (renderCtx); in iterate() local 362 createResultBuffer(*resultBuffer); in iterate() 375 …gl.bindBufferRange(GL_SHADER_STORAGE_BUFFER, 0, *resultBuffer, (glw::GLintptr)curOffset, resultBlo… in iterate() 384 if (verifyResultBuffer(*resultBuffer)) in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationPrimitiveDiscardTests.cpp | 426 …const Buffer resultBuffer (vk, device, allocator, makeBufferCreateInfo(resultBufferSizeBytes… in test() local 429 const Allocation& alloc = resultBuffer.getAllocation(); in test() 461 …const VkDescriptorBufferInfo resultBufferInfo = makeDescriptorBufferInfo(resultBuffer.get(), 0ull… in test() 530 VK_ACCESS_SHADER_WRITE_BIT, VK_ACCESS_HOST_READ_BIT, *resultBuffer, 0ull, resultBufferSizeBytes); in test() 551 const Allocation& resultAlloc = resultBuffer.getAllocation(); in test()
|
D | vktTessellationFractionalSpacingTests.cpp | 531 …const Buffer resultBuffer (vk, device, allocator, makeBufferCreateInfo(resultBufferSizeBytes… in test() local 552 …const VkDescriptorBufferInfo resultBufferInfo = makeDescriptorBufferInfo(resultBuffer.get(), 0ul… in test() 593 const Allocation& alloc = resultBuffer.getAllocation(); in test() 612 … VK_ACCESS_SHADER_WRITE_BIT, VK_ACCESS_HOST_READ_BIT, *resultBuffer, 0ull, resultBufferSizeBytes); in test() 624 const Allocation& resultAlloc = resultBuffer.getAllocation(); in test()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiDescriptorSetTests.cpp | 383 de::MovePtr<BufferWithMemory> resultBuffer; in descriptorSetLayoutBindingOrderingTest() local 384 resultBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMemory(vk, in descriptorSetLayoutBindingOrderingTest() 411 resultBuffer->get(), // VkBuffer buffer in descriptorSetLayoutBindingOrderingTest() 589 const Allocation& bufferAllocationResult = resultBuffer->getAllocation(); in descriptorSetLayoutBindingOrderingTest()
|
/external/zstd/zlibWrapper/examples/ |
D | zwrapbench.c | 162 void* const resultBuffer = malloc(srcSize); in BMK_benchMem() local 168 if (!compressedBuffer || !resultBuffer || !blockTable || !ctx || !dctx) in BMK_benchMem() 177 char* resPtr = (char*)resultBuffer; in BMK_benchMem() 381 if (!dCompleted) memset(resultBuffer, 0xD6, srcSize); /* warm result buffer */ in BMK_benchMem() 519 { U64 const crcCheck = XXH64(resultBuffer, srcSize, 0); in BMK_benchMem() 524 if (((const BYTE*)srcBuffer)[u] != ((const BYTE*)resultBuffer)[u]) { in BMK_benchMem() 559 free(resultBuffer); in BMK_benchMem()
|