Home
last modified time | relevance | path

Searched refs:stateBlock (Results 1 – 3 of 3) sorted by relevance

/hardware/google/gfxstream/host/vulkan/
DVkDecoderSnapshotUtils.cpp125 void saveImageContent(android::base::Stream* stream, StateBlock* stateBlock, VkImage image, in saveImageContent() argument
134 VulkanDispatch* dispatch = stateBlock->deviceDispatch; in saveImageContent()
138 .commandPool = stateBlock->commandPool, in saveImageContent()
143 _RUN_AND_CHECK(dispatch->vkAllocateCommandBuffers(stateBlock->device, &allocInfo, in saveImageContent()
149 _RUN_AND_CHECK(dispatch->vkCreateFence(stateBlock->device, &fenceCreateInfo, nullptr, &fence)); in saveImageContent()
160 dispatch->vkCreateBuffer(stateBlock->device, &bufferCreateInfo, nullptr, &readbackBuffer)); in saveImageContent()
163 dispatch->vkGetBufferMemoryRequirements(stateBlock->device, readbackBuffer, in saveImageContent()
167 GetMemoryType(*stateBlock->physicalDeviceInfo, readbackBufferMemoryRequirements, in saveImageContent()
177 _RUN_AND_CHECK(dispatch->vkAllocateMemory(stateBlock->device, &readbackBufferMemoryAllocateInfo, in saveImageContent()
180 dispatch->vkBindBufferMemory(stateBlock->device, readbackBuffer, readbackMemory, 0)); in saveImageContent()
[all …]
DVkDecoderSnapshotUtils.h29 void saveImageContent(android::base::Stream* stream, StateBlock* stateBlock, VkImage image,
31 void loadImageContent(android::base::Stream* stream, StateBlock* stateBlock, VkImage image,
33 void saveBufferContent(android::base::Stream* stream, StateBlock* stateBlock, VkBuffer buffer,
35 void loadBufferContent(android::base::Stream* stream, StateBlock* stateBlock, VkBuffer buffer,
DVkDecoderGlobalState.cpp424 StateBlock stateBlock{ in createSnapshotStateBlock() local
445 stateBlock.queue = queue.second[0]; in createSnapshotStateBlock()
456 dvk->vkCreateCommandPool(device, &commandPoolCi, nullptr, &stateBlock.commandPool); in createSnapshotStateBlock()
457 return stateBlock; in createSnapshotStateBlock()
460 void releaseSnapshotStateBlock(const StateBlock* stateBlock) { in releaseSnapshotStateBlock() argument
461stateBlock->deviceDispatch->vkDestroyCommandPool(stateBlock->device, stateBlock->commandPool, null… in releaseSnapshotStateBlock()
504 StateBlock stateBlock = createSnapshotStateBlock(imageInfo.device); in save() local
506 saveImageContent(stream, &stateBlock, unboxedImage, &imageInfo); in save()
507 releaseSnapshotStateBlock(&stateBlock); in save()
524 StateBlock stateBlock = createSnapshotStateBlock(bufferInfo.device); in save() local
[all …]