Home
last modified time | relevance | path

Searched refs:stagingBuffer (Results 1 – 25 of 58) sorted by relevance

123

/third_party/skia/third_party/externals/dawn/src/dawn_native/
DDynamicUploader.cpp26 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 …]
DDynamicUploader.h30 StagingBufferBase* stagingBuffer = nullptr; member
42 void ReleaseStagingBuffer(std::unique_ptr<StagingBufferBase> stagingBuffer);
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/
DDynamicUploader.cpp26 std::unique_ptr<StagingBufferBase> stagingBuffer; in CreateStagingBuffer() local
27 DAWN_TRY_ASSIGN(stagingBuffer, mDevice->CreateStagingBuffer(size)); in CreateStagingBuffer()
28 DAWN_TRY(stagingBuffer->Initialize()); in CreateStagingBuffer()
29 return stagingBuffer; in CreateStagingBuffer()
32 void DynamicUploader::ReleaseStagingBuffer(std::unique_ptr<StagingBufferBase> stagingBuffer) { in ReleaseStagingBuffer() argument
33 mReleasedStagingBuffers.Enqueue(std::move(stagingBuffer), in ReleaseStagingBuffer()
68 uploadHandle.stagingBuffer = largestRingBuffer->GetStagingBuffer(); in Allocate()
DDynamicUploader.h35 void ReleaseStagingBuffer(std::unique_ptr<StagingBufferBase> stagingBuffer);
DRingBuffer.h29 StagingBufferBase* stagingBuffer = nullptr; member
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DBufferVk.cpp302 vk::StagingBuffer stagingBuffer; in setDataImpl() local
303 ANGLE_TRY(stagingBuffer.init(contextVk, static_cast<VkDeviceSize>(size), in setDataImpl()
308 stagingBuffer.getDeviceMemory().map(device, 0, size, 0, &mapPointer)); in setDataImpl()
312 stagingBuffer.getDeviceMemory().unmap(device); in setDataImpl()
316 ANGLE_TRY(mBuffer.copyFromBuffer(contextVk, stagingBuffer.getBuffer(), in setDataImpl()
320 contextVk->releaseObject(contextVk->getCurrentQueueSerial(), &stagingBuffer); in setDataImpl()
/third_party/flutter/skia/src/gpu/dawn/
DGrDawnTexture.cpp166 dawn::Buffer stagingBuffer = device.CreateBuffer(&desc); in upload() local
169 stagingBuffer.SetSubData(0, size, in upload()
179 stagingBuffer.SetSubData(0, size, in upload()
185 srcBuffer.buffer = stagingBuffer; in upload()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DBufferVk.cpp959 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 …]
DBufferVk.h171 vk::DynamicBuffer **stagingBuffer,
175 vk::DynamicBuffer *stagingBuffer,
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DTextureZeroInitTests.cpp171 dawn::Buffer stagingBuffer = utils::CreateBufferFromData( in TEST_P() local
174 dawn::BufferCopyView bufferCopyView = utils::CreateBufferCopyView(stagingBuffer, 0, 0, 0); in TEST_P()
199 dawn::Buffer stagingBuffer = utils::CreateBufferFromData( in TEST_P() local
202 dawn::BufferCopyView bufferCopyView = utils::CreateBufferCopyView(stagingBuffer, 0, 0, 0); in TEST_P()
264 dawn::Buffer stagingBuffer = utils::CreateBufferFromData( in TEST_P() local
266 dawn::BufferCopyView bufferCopyView = utils::CreateBufferCopyView(stagingBuffer, 0, 0, 0); in TEST_P()
DSamplerTests.cpp104 dawn::Buffer stagingBuffer = in SetUp() local
106 dawn::BufferCopyView bufferCopyView = utils::CreateBufferCopyView(stagingBuffer, 0, 256, 0); in SetUp()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
DVulkanHelper.cpp957 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/examples/
DCppHelloTriangle.cpp74 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in initTextures() local
77 utils::CreateImageCopyBuffer(stagingBuffer, 0, 4 * 1024); in initTextures()
/third_party/flutter/skia/third_party/externals/dawn/examples/
DCppHelloTriangle.cpp73 dawn::Buffer stagingBuffer = utils::CreateBufferFromData( in initTextures() local
75 dawn::BufferCopyView bufferCopyView = utils::CreateBufferCopyView(stagingBuffer, 0, 0, 0); in initTextures()
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DSamplerTests.cpp104 wgpu::Buffer stagingBuffer = in SetUp() local
106 wgpu::ImageCopyBuffer imageCopyBuffer = utils::CreateImageCopyBuffer(stagingBuffer, 0, 256); in SetUp()
DTextureZeroInitTests.cpp280 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 …]
DSamplerFilterAnisotropicTests.cpp126 wgpu::Buffer stagingBuffer = utils::CreateBufferFromData( in InitTexture() local
129 utils::CreateImageCopyBuffer(stagingBuffer, 0, kTextureBytesPerRowAlignment); in InitTexture()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/metal/
DTextureMtl.mm276 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/src/dawn_native/null/
DDeviceNull.cpp177 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/
DDeviceD3D12.cpp288 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/flutter/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DDeviceD3D12.cpp305 std::unique_ptr<StagingBufferBase> stagingBuffer = in CreateStagingBuffer() local
307 return std::move(stagingBuffer); in CreateStagingBuffer()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/null/
DDeviceNull.cpp145 std::unique_ptr<StagingBufferBase> stagingBuffer = in CreateStagingBuffer() local
147 return std::move(stagingBuffer); in CreateStagingBuffer()
/third_party/skia/src/gpu/dawn/
DGrDawnGpu.cpp411 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/vulkan/protected_memory/
DvktProtectedMemUtils.cpp696 de::UniquePtr<vk::BufferWithMemory> stagingBuffer (makeBuffer(ctx, in uploadImage() local
705 …const tcu::PixelBufferAccess destAccess (access.getFormat(), access.getSize(), stagingBuffer->get… in uploadImage()
709 flushAlloc(vk, device, stagingBuffer->getAllocation()); in uploadImage()
775 …vk.cmdCopyBufferToImage(*cmdBuffer, **stagingBuffer, image, vk::VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIM… in uploadImage()
/third_party/flutter/skia/third_party/externals/dawn/src/dawn_native/metal/
DDeviceMTL.mm230 std::unique_ptr<StagingBufferBase> stagingBuffer =
232 return std::move(stagingBuffer);

123