/third_party/skia/third_party/externals/dawn/src/dawn_native/ |
D | DynamicUploader.cpp | 26 void DynamicUploader::ReleaseStagingBuffer(std::unique_ptr<StagingBufferBase> stagingBuffer) { in ReleaseStagingBuffer() argument 27 mReleasedStagingBuffers.Enqueue(std::move(stagingBuffer), in ReleaseStagingBuffer() 35 std::unique_ptr<StagingBufferBase> stagingBuffer; in AllocateInternal() local 36 DAWN_TRY_ASSIGN(stagingBuffer, mDevice->CreateStagingBuffer(allocationSize)); in AllocateInternal() 39 uploadHandle.mappedBuffer = static_cast<uint8_t*>(stagingBuffer->GetMappedPointer()); in AllocateInternal() 40 uploadHandle.stagingBuffer = stagingBuffer.get(); in AllocateInternal() 42 ReleaseStagingBuffer(std::move(stagingBuffer)); in AllocateInternal() 81 std::unique_ptr<StagingBufferBase> stagingBuffer; in AllocateInternal() local 82 DAWN_TRY_ASSIGN(stagingBuffer, in AllocateInternal() 84 targetRingBuffer->mStagingBuffer = std::move(stagingBuffer); in AllocateInternal() [all …]
|
D | DynamicUploader.h | 30 StagingBufferBase* stagingBuffer = nullptr; member 42 void ReleaseStagingBuffer(std::unique_ptr<StagingBufferBase> stagingBuffer);
|
D | Queue.cpp | 291 return device->CopyFromStagingToBuffer(uploadHandle.stagingBuffer, uploadHandle.startOffset, in WriteBufferImpl() 363 return device->CopyFromStagingToTexture(uploadHandle.stagingBuffer, passDataLayout, in WriteTextureImpl()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | BufferVk.cpp | 959 vk::DynamicBuffer *stagingBuffer = nullptr; in stagedUpdate() local 963 ANGLE_TRY(allocMappedStagingBuffer(contextVk, size, &stagingBuffer, &stagingBufferOffset, in stagedUpdate() 967 flushMappedStagingBuffer(contextVk, stagingBuffer, stagingBufferOffset, size, offset)); in stagedUpdate() 974 vk::DynamicBuffer **stagingBuffer, in allocMappedStagingBuffer() argument 980 ASSERT(stagingBuffer); in allocMappedStagingBuffer() 982 *stagingBuffer = contextVk->getStagingBuffer(); in allocMappedStagingBuffer() 984 ASSERT(*stagingBuffer); in allocMappedStagingBuffer() 987 (*stagingBuffer)->allocate(contextVk, size, mapPtr, nullptr, stagingBufferOffset, nullptr)); in allocMappedStagingBuffer() 994 vk::DynamicBuffer *stagingBuffer, in flushMappedStagingBuffer() argument 999 ANGLE_TRY(stagingBuffer->flush(contextVk)); in flushMappedStagingBuffer() [all …]
|
D | BufferVk.h | 171 vk::DynamicBuffer **stagingBuffer, 175 vk::DynamicBuffer *stagingBuffer,
|
D | vk_helpers.cpp | 3764 StagingBuffer stagingBuffer; in initializeNonZeroMemory() local 3765 ANGLE_TRY(stagingBuffer.init(context, size, StagingUsage::Both)); in initializeNonZeroMemory() 3778 commandBuffer.copyBuffer(stagingBuffer.getBuffer(), mBuffer, 1, ©Region); in initializeNonZeroMemory() 3787 stagingBuffer.collectGarbage(renderer, serial); in initializeNonZeroMemory() 4441 StagingBuffer stagingBuffer; in initializeNonZeroMemory() local 4448 ANGLE_TRY(stagingBuffer.init(context, size, StagingUsage::Write)); in initializeNonZeroMemory() 4465 commandBuffer.copyBufferToImage(stagingBuffer.getBuffer().getHandle(), mImage, in initializeNonZeroMemory() 4472 commandBuffer.copyBufferToImage(stagingBuffer.getBuffer().getHandle(), mImage, in initializeNonZeroMemory() 4523 stagingBuffer.collectGarbage(renderer, serial); in initializeNonZeroMemory() 5815 DynamicBuffer *stagingBuffer = stagingBufferOverride ? stagingBufferOverride : &mStagingBuffer; in stageSubresourceUpdateImpl() local [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | VulkanHelper.cpp | 957 VkBuffer stagingBuffer = VK_NULL_HANDLE; in readPixels() local 958 VkResult result = vkCreateBuffer(mDevice, &bufferCreateInfo, nullptr, &stagingBuffer); in readPixels() 963 vkGetBufferMemoryRequirements(mDevice, stagingBuffer, &memoryRequirements); in readPixels() 973 /* .buffer = */ stagingBuffer, in readPixels() 986 result = vkBindBufferMemory(mDevice, stagingBuffer, deviceMemory, 0 /* memoryOffset */); in readPixels() 1057 vkCmdCopyImageToBuffer(commandBuffers[0], srcImage, srcImageLayout, stagingBuffer, in readPixels() 1119 vkDestroyBuffer(mDevice, stagingBuffer, nullptr); in readPixels()
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | TextureZeroInitTests.cpp | 280 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in TEST_P() local 284 utils::CreateImageCopyBuffer(stagingBuffer, 0, kSize * sizeof(uint32_t)); in TEST_P() 312 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in TEST_P() local 316 utils::CreateImageCopyBuffer(stagingBuffer, 0, kSize * sizeof(uint16_t)); in TEST_P() 346 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in TEST_P() local 350 utils::CreateImageCopyBuffer(stagingBuffer, 0, kSize * kFormatBlockByteSize, kSize); in TEST_P() 422 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in TEST_P() local 425 utils::CreateImageCopyBuffer(stagingBuffer, 0, kSize * kFormatBlockByteSize); in TEST_P() 1140 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in TEST_P() local 1143 utils::CreateImageCopyBuffer(stagingBuffer, 0, kSize * kFormatBlockByteSize); in TEST_P() [all …]
|
D | SamplerTests.cpp | 104 wgpu::Buffer stagingBuffer = in SetUp() local 106 wgpu::ImageCopyBuffer imageCopyBuffer = utils::CreateImageCopyBuffer(stagingBuffer, 0, 256); in SetUp()
|
D | SamplerFilterAnisotropicTests.cpp | 126 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in InitTexture() local 129 utils::CreateImageCopyBuffer(stagingBuffer, 0, kTextureBytesPerRowAlignment); in InitTexture()
|
D | TextureViewTests.cpp | 156 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in initTexture() local 159 utils::CreateImageCopyBuffer(stagingBuffer, 0, kTextureBytesPerRowAlignment); in initTexture()
|
/third_party/skia/third_party/externals/angle2/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; 308 mtl::BufferRef stagingBuffer; 309 ANGLE_TRY(mtl::Buffer::MakeBuffer(contextMtl, stagingBufferSize, nullptr, &stagingBuffer)); 311 uint8_t *pdst = stagingBuffer->map(contextMtl); 315 stagingBuffer->unmap(contextMtl); 317 *bufferOut = stagingBuffer; [all …]
|
/third_party/skia/third_party/externals/dawn/examples/ |
D | CppHelloTriangle.cpp | 74 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in initTextures() local 77 utils::CreateImageCopyBuffer(stagingBuffer, 0, 4 * 1024); in initTextures()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/null/ |
D | DeviceNull.cpp | 177 std::unique_ptr<StagingBufferBase> stagingBuffer = in CreateStagingBuffer() local 179 DAWN_TRY(stagingBuffer->Initialize()); in CreateStagingBuffer() 180 return std::move(stagingBuffer); in CreateStagingBuffer()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/ |
D | DeviceD3D12.cpp | 288 CopyFromStagingToBufferImpl(commandContext, uploadHandle.stagingBuffer, in ClearBufferToZero() 452 std::unique_ptr<StagingBufferBase> stagingBuffer = in CreateStagingBuffer() local 454 DAWN_TRY(stagingBuffer->Initialize()); in CreateStagingBuffer() 455 return std::move(stagingBuffer); in CreateStagingBuffer()
|
/third_party/skia/src/gpu/dawn/ |
D | GrDawnGpu.cpp | 411 GrStagingBufferManager::Slice stagingBuffer = in onClearBackendTexture() local 414 memcpy(stagingBuffer.fOffsetMapPtr, defaultStorage.get(), size); in onClearBackendTexture() 417 char* dst = static_cast<char*>(stagingBuffer.fOffsetMapPtr); in onClearBackendTexture() 425 srcBuffer.buffer = static_cast<GrDawnBuffer*>(stagingBuffer.fBuffer)->get(); in onClearBackendTexture() 426 srcBuffer.layout.offset = stagingBuffer.fOffset; in onClearBackendTexture()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/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()
|
/third_party/vk-gl-cts/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()
|
/third_party/skia/src/gpu/ |
D | GrResourceProvider.cpp | 441 SkAutoTMalloc<char> stagingBuffer; in findOrMakeStaticBuffer() local 444 vertexWriter = stagingBuffer.reset(size); in findOrMakeStaticBuffer() 452 buffer->updateData(stagingBuffer, size); in findOrMakeStaticBuffer()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/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()
|
/third_party/vk-gl-cts/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()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
D | DeviceVk.cpp | 638 std::unique_ptr<StagingBufferBase> stagingBuffer = in CreateStagingBuffer() local 640 DAWN_TRY(stagingBuffer->Initialize()); in CreateStagingBuffer() 641 return std::move(stagingBuffer); in CreateStagingBuffer()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/metal/ |
D | DeviceMTL.mm | 386 std::unique_ptr<StagingBufferBase> stagingBuffer = 388 DAWN_TRY(stagingBuffer->Initialize()); 389 return std::move(stagingBuffer);
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
D | Buffer11.cpp | 1015 NativeStorage *stagingBuffer = nullptr; in updateBufferStorage() local 1016 ANGLE_TRY(getStagingStorage(context, &stagingBuffer)); in updateBufferStorage() 1019 ANGLE_TRY(stagingBuffer->copyFromStorage(context, latestBuffer, 0, latestBuffer->getSize(), in updateBufferStorage() 1021 onCopyStorage(stagingBuffer, latestBuffer); in updateBufferStorage() 1023 latestBuffer = stagingBuffer; in updateBufferStorage()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingDescriptorBufferTests.cpp | 3864 auto& stagingBuffer = resources.buffer; in initializeBinding() local 3923 stagingBuffer.size = sizeof(deUint32) * numPixels; in initializeBinding() 3924 auto createInfo = makeBufferCreateInfo(stagingBuffer.size, VK_BUFFER_USAGE_TRANSFER_SRC_BIT); in initializeBinding() 3926 stagingBuffer.buffer = createBuffer(*m_deviceInterface, *m_device, &createInfo); in initializeBinding() 3928 … auto memReqs = getBufferMemoryRequirements(*m_deviceInterface, *m_device, *stagingBuffer.buffer); in initializeBinding() 3930 stagingBuffer.alloc = allocate(memReqs, MemoryRequirement::HostVisible); in initializeBinding() 3934 *stagingBuffer.buffer, in initializeBinding() 3935 stagingBuffer.alloc->getMemory(), in initializeBinding() 3936 stagingBuffer.alloc->getOffset())); in initializeBinding() 3939 deUint32* pBufferData = static_cast<deUint32*>(stagingBuffer.alloc->getHostPtr()); in initializeBinding()
|