/external/angle/src/tests/test_utils/ |
D | VulkanHelper.cpp | 1056 VkBuffer stagingBuffer = VK_NULL_HANDLE; in readPixels() local 1057 VkResult result = vkCreateBuffer(mDevice, &bufferCreateInfo, nullptr, &stagingBuffer); in readPixels() 1062 vkGetBufferMemoryRequirements(mDevice, stagingBuffer, &memoryRequirements); in readPixels() 1072 /* .buffer = */ stagingBuffer, in readPixels() 1085 result = vkBindBufferMemory(mDevice, stagingBuffer, deviceMemory, 0 /* memoryOffset */); in readPixels() 1156 vkCmdCopyImageToBuffer(commandBuffers[0], srcImage, srcImageLayout, stagingBuffer, in readPixels() 1218 vkDestroyBuffer(mDevice, stagingBuffer, nullptr); in readPixels() 1246 VkBuffer stagingBuffer = VK_NULL_HANDLE; in writePixels() local 1247 VkResult result = vkCreateBuffer(mDevice, &bufferCreateInfo, nullptr, &stagingBuffer); in writePixels() 1252 vkGetBufferMemoryRequirements(mDevice, stagingBuffer, &memoryRequirements); in writePixels() [all …]
|
/external/angle/src/libANGLE/renderer/metal/ |
D | TextureMtl.mm | 276 mtl::BufferRef stagingBuffer; 277 ANGLE_TRY(mtl::Buffer::MakeBuffer(contextMtl, stagingBufferSize, nullptr, &stagingBuffer)); 279 uint8_t *pdst = stagingBuffer->map(contextMtl); 285 stagingBuffer->unmap(contextMtl); 287 *bufferOut = stagingBuffer; 307 mtl::BufferRef stagingBuffer; 308 ANGLE_TRY(mtl::Buffer::MakeBuffer(contextMtl, stagingBufferSize, nullptr, &stagingBuffer)); 310 uint8_t *pdst = stagingBuffer->map(contextMtl); 314 stagingBuffer->unmap(contextMtl); 316 *bufferOut = stagingBuffer; [all …]
|
/external/skia/src/gpu/ganesh/dawn/ |
D | GrDawnGpu.cpp | 441 GrStagingBufferManager::Slice stagingBuffer = in onClearBackendTexture() local 444 memcpy(stagingBuffer.fOffsetMapPtr, defaultStorage.get(), size); in onClearBackendTexture() 447 char* dst = static_cast<char*>(stagingBuffer.fOffsetMapPtr); in onClearBackendTexture() 455 srcBuffer.buffer = static_cast<GrDawnBuffer*>(stagingBuffer.fBuffer)->get(); in onClearBackendTexture() 456 srcBuffer.layout.offset = stagingBuffer.fOffset; in onClearBackendTexture()
|
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemUtils.cpp | 738 de::UniquePtr<vk::BufferWithMemory> stagingBuffer (makeBuffer(ctx, in uploadImage() local 747 …const tcu::PixelBufferAccess destAccess (access.getFormat(), access.getSize(), stagingBuffer->get… in uploadImage() 751 flushAlloc(vk, device, stagingBuffer->getAllocation()); in uploadImage() 817 …vk.cmdCopyBufferToImage(*cmdBuffer, **stagingBuffer, image, vk::VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIM… in uploadImage()
|
/external/angle/src/libANGLE/renderer/vulkan/ |
D | vk_helpers.cpp | 4966 StagingBuffer stagingBuffer; in initializeNonZeroMemory() local 4967 ANGLE_TRY(stagingBuffer.init(context, size, StagingUsage::Both)); in initializeNonZeroMemory() 4979 commandBuffer.copyBuffer(stagingBuffer.getBuffer(), getBuffer(), 1, ©Region); in initializeNonZeroMemory() 4989 stagingBuffer.collectGarbage(renderer, queueSerial); in initializeNonZeroMemory() 5864 StagingBuffer stagingBuffer; in initializeNonZeroMemory() local 5871 ANGLE_TRY(stagingBuffer.init(context, size, StagingUsage::Write)); in initializeNonZeroMemory() 5888 commandBuffer.copyBufferToImage(stagingBuffer.getBuffer().getHandle(), mImage, in initializeNonZeroMemory() 5895 commandBuffer.copyBufferToImage(stagingBuffer.getBuffer().getHandle(), mImage, in initializeNonZeroMemory() 5947 stagingBuffer.collectGarbage(renderer, queueSerial); in initializeNonZeroMemory() 7370 std::unique_ptr<RefCounted<BufferHelper>> stagingBuffer = in stageSubresourceUpdateImpl() local [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/ray_tracing/ |
D | vktRayTracingBarrierTests.cpp | 1255 std::unique_ptr<BufferWithMemory> stagingBuffer; in iterate() local 1343 …stagingBuffer = makeStd140Buffer(vkd, device, alloc, stagingBufferFlags, MemoryRequirement::HostVi… in iterate() 1344 fillStd140Buffer(vkd, device, *stagingBuffer); in iterate() 1350 vkd.cmdCopyBuffer(cmdBuffer, stagingBuffer->get(), resourceBuffer->get(), 1u, ®ion); in iterate() 1355 stagingBuffer = makeStd430BufferFilled(vkd, device, alloc, stagingBufferFlags); in iterate() 1372 …vkd.cmdCopyBufferToImage(cmdBuffer, stagingBuffer->get(), resourceImg->get(), resourceImgLayout, 1… in iterate()
|
/external/skia/src/gpu/ganesh/ |
D | GrResourceProvider.cpp | 499 AutoTMalloc<char> stagingBuffer; in findOrMakeStaticBuffer() local 502 vertexWriter = {stagingBuffer.reset(size), size}; in findOrMakeStaticBuffer() 510 buffer->updateData(stagingBuffer, /*offset=*/0, size, /*preserve=*/false); in findOrMakeStaticBuffer()
|
/external/angle/src/libANGLE/renderer/d3d/d3d11/ |
D | Buffer11.cpp | 1021 NativeStorage *stagingBuffer = nullptr; in updateBufferStorage() local 1022 ANGLE_TRY(getStagingStorage(context, &stagingBuffer)); in updateBufferStorage() 1025 ANGLE_TRY(stagingBuffer->copyFromStorage(context, latestBuffer, 0, latestBuffer->getSize(), in updateBufferStorage() 1027 onCopyStorage(stagingBuffer, latestBuffer); in updateBufferStorage() 1029 latestBuffer = stagingBuffer; in updateBufferStorage()
|
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/ |
D | vktSparseResourcesBufferTests.cpp | 923 …const Unique<VkBuffer> stagingBuffer (makeBuffer(vk, getDevice(), stagingBufferSize, VK_BUFFER_U… in iterate() local 924 …ion> stagingBufferAlloc (bindBuffer(vk, getDevice(), getAllocator(), *stagingBuffer, MemoryRequire… in iterate() 945 vk.cmdCopyBuffer (*cmdBuffer, *stagingBuffer, *sparseBuffer, 1u, ©Region); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingDescriptorBufferTests.cpp | 3867 auto& stagingBuffer = resources.buffer; in initializeBinding() local 3926 stagingBuffer.size = sizeof(deUint32) * numPixels; in initializeBinding() 3927 auto createInfo = makeBufferCreateInfo(stagingBuffer.size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT); in initializeBinding() 3929 stagingBuffer.buffer = createBuffer(*m_deviceInterface, *m_device, &createInfo); in initializeBinding() 3931 … auto memReqs = getBufferMemoryRequirements(*m_deviceInterface, *m_device, *stagingBuffer.buffer); in initializeBinding() 3933 stagingBuffer.alloc = allocate(memReqs, MemoryRequirement::HostVisible); in initializeBinding() 3937 *stagingBuffer.buffer, in initializeBinding() 3938 stagingBuffer.alloc->getMemory(), in initializeBinding() 3939 stagingBuffer.alloc->getOffset())); in initializeBinding() 3942 deUint32* pBufferData = static_cast<deUint32*>(stagingBuffer.alloc->getHostPtr()); in initializeBinding()
|
D | vktBindingMutableTests.cpp | 675 …BufferWithMemory stagingBuffer(vkd, device, alloc, stagingBufferInfo, MemoryRequirement::HostVisib… in Resource() local 676 auto& bufferAlloc = stagingBuffer.getAllocation(); in Resource() 701 …vkd.cmdCopyBufferToImage(cmdBuffer, stagingBuffer.get(), imageWithMemory->get(), VK_IMAGE_LAYOUT_T… in Resource() 837 …BufferWithMemory stagingBuffer(vkd, device, alloc, stagingBufferInfo, MemoryRequirement::HostVisib… in getStoredValue() local 838 auto& bufferAlloc = stagingBuffer.getAllocation(); in getStoredValue() 859 …Buffer, imageWithMemory->get(), VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, stagingBuffer.get(), 1u, &co… in getStoredValue()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktOpaqueTypeIndexingTests.cpp | 592 const Unique<VkBuffer> stagingBuffer (createBuffer(vkd, device, &stagingBufferInfo)); in TestImage() local 593 …DefaultAllocator().allocate(getBufferMemoryRequirements(vkd, device, *stagingBuffer), MemoryRequir… in TestImage() 595 VK_CHECK(vkd.bindBufferMemory(device, *stagingBuffer, alloc->getMemory(), alloc->getOffset())); in TestImage() 619 …context.getUniversalQueue(), context.getUniversalQueueFamilyIndex(), *stagingBuffer, stagingBuffer… in TestImage()
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineMultisampleShaderBuiltInTests.cpp | 1363 …vk::BufferWithMemory stagingBuffer {vkd, device, allocator, stagingBufferInfo, MemoryRequirement:… in iterate() local 1424 …arrier(vk::VK_ACCESS_TRANSFER_WRITE_BIT, vk::VK_ACCESS_HOST_READ_BIT, stagingBuffer.get(), 0ull, b… in iterate() 1479 …, verificationImgPtr.get(), vk::VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, stagingBuffer.get(), 1u, &co… in iterate() 1488 const auto& bufferAlloc = stagingBuffer.getAllocation(); in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassFragmentDensityMapTests.cpp | 1556 …vk::Move<vk::VkBuffer> stagingBuffer = vk::createBuffer(vk, vkDevice, &stagingBufferCreateInfo); in FragmentDensityMapTestInstance() local 1557 …ryRequirements stagingRequirements = vk::getBufferMemoryRequirements(vk, vkDevice, *stagingBuffer); in FragmentDensityMapTestInstance() 1559 …VK_CHECK(vk.bindBufferMemory(vkDevice, *stagingBuffer, stagingAllocation->getMemory(), stagingAllo… in FragmentDensityMapTestInstance() 1572 *stagingBuffer, stagingBufferSize, in FragmentDensityMapTestInstance()
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiCommandBuffersTests.cpp | 4162 BufferPtr stagingBuffer; member 4196 …buffers.stagingBuffer = BufferPtr(new BufferWithMemory(vkd, device, alloc, stagingBufferInfo, Memo… in makeVertexBuffers() 4424 copyAndFlush(vkd, device, *testData.frontBuffers.stagingBuffer, frontVector); in iterate() 4425 copyAndFlush(vkd, device, *testData.backBuffers.stagingBuffer, backVector); in iterate() 4526 …vkd.cmdCopyBuffer(primaryCmdBuffer, testData.frontBuffers.stagingBuffer->get(), testData.frontBuff… in iterate() 4527 …vkd.cmdCopyBuffer(primaryCmdBuffer, testData.backBuffers.stagingBuffer->get(), testData.backBuffer… in iterate()
|
D | vktApiImageClearingTests.cpp | 1348 Move<VkBuffer> stagingBuffer; in createImageClearingBuffer() local 1365 stagingBuffer = createBuffer(vkd, device, &bufferParams); in createImageClearingBuffer() 1367 return stagingBuffer; in createImageClearingBuffer()
|
/external/deqp/external/vulkancts/modules/vulkan/compute/ |
D | vktComputeBasicComputeShaderTests.cpp | 730 …const BufferWithMemory stagingBuffer(vk, device, allocator, makeBufferCreateInfo(bufferSizeBytes, … in iterate() local 735 const Allocation& stagingBufferAllocation = stagingBuffer.getAllocation(); in iterate() 795 …copyBufferToImage(vk, *cmdBuffer, *stagingBuffer, bufferSizeBytes, bufferImageCopy, VK_IMAGE_ASPEC… in iterate() 813 const deUint32* refBufferPtr = static_cast<deUint32*>(stagingBuffer.getAllocation().getHostPtr()); in iterate()
|