/hardware/google/gfxstream/host/vulkan/ |
D | DisplayVk.cpp | 79 VK_CHECK(m_vk.vkCreateCommandPool(m_vkDevice, &commandPoolCi, nullptr, &m_vkCommandPool)); in DisplayVk() 96 VK_CHECK(vk_util::waitForVkQueueIdleWithRetry(m_vk, m_swapChainVkQueue)); in drainQueues() 103 VK_CHECK(vk_util::waitForVkQueueIdleWithRetry(m_vk, m_compositorVkQueue)); in drainQueues() 225 VK_CHECK(fenceStatus); in postImpl() 230 VK_CHECK(m_vk.vkWaitForFences( in postImpl() 233 VK_CHECK(m_vk.vkResetFences(m_vkDevice, 1, &(*freeImageBorrowResource)->m_completeFence)); in postImpl() 265 VK_CHECK( in postImpl() 284 VK_CHECK(m_vk.vkEndCommandBuffer(acquireResource.m_vkCommandBuffer)); in postImpl() 291 VK_CHECK( in postImpl() 307 VK_CHECK(m_vk.vkEndCommandBuffer(releaseResource.m_vkCommandBuffer)); in postImpl() [all …]
|
D | SwapChainStateVk.cpp | 97 VK_CHECK(res); in initSwapChainStateVk() 99 VK_CHECK(m_vk.vkGetSwapchainImagesKHR(m_vkDevice, m_vkSwapChain, &imageCount, nullptr)); in initSwapChainStateVk() 102 VK_CHECK( in initSwapChainStateVk() 120 VK_CHECK(m_vk.vkCreateImageView(m_vkDevice, &imageViewCi, nullptr, &vkImageView)); in initSwapChainStateVk() 161 VK_CHECK(vk.vkGetPhysicalDeviceSurfaceSupportKHR(physicalDevice, queueFamilyIndex, surface, in validateQueueFamilyProperties() 170 VK_CHECK( in createSwapChainCi() 194 VK_CHECK(res); in createSwapChainCi() 209 VK_CHECK(vk.vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, surface, in createSwapChainCi() 212 VK_CHECK(vk.vkGetPhysicalDeviceSurfacePresentModesKHR(physicalDevice, surface, in createSwapChainCi() 235 VK_CHECK(vk.vkGetPhysicalDeviceSurfaceCapabilitiesKHR(physicalDevice, surface, &surfaceCaps)); in createSwapChainCi()
|
D | CompositorVk.cpp | 93 VK_CHECK(vk.vkCreateShaderModule(device, &shaderModuleCi, nullptr, &res)); in createShaderModule() 123 VK_CHECK(m_vk.vkCreateFramebuffer(vkDevice, &framebufferCi, nullptr, &m_vkFramebuffer)); in RenderTarget() 164 VK_CHECK(vk_util::waitForVkQueueIdleWithRetry(m_vk, m_vkQueue)); in ~CompositorVk() 323 VK_CHECK(m_vk.vkCreateDescriptorSetLayout(m_vkDevice, &descriptorSetLayoutCi, nullptr, in setUpGraphicsPipeline() 333 VK_CHECK( in setUpGraphicsPipeline() 408 VK_CHECK(m_vk.vkCreateRenderPass(m_vkDevice, &renderPassCi, nullptr, &renderPass)); in setUpGraphicsPipeline() 413 VK_CHECK(m_vk.vkCreateGraphicsPipelines(m_vkDevice, VK_NULL_HANDLE, 1, &graphicsPipelineCi, in setUpGraphicsPipeline() 478 VK_CHECK( in setUpDescriptorSets() 495 VK_CHECK(m_vk.vkAllocateDescriptorSets(m_vkDevice, &frameDescriptorSetAllocInfo, in setUpDescriptorSets() 528 VK_CHECK(m_vk.vkCreateCommandPool(m_vkDevice, &commandPoolCreateInfo, nullptr, &commandPool)); in setUpCommandPool() [all …]
|
D | vk_util_unittest.cpp | 145 EXPECT_EXIT(VK_CHECK(VK_ERROR_DEVICE_LOST), testing::ExitedWithCode(43), ""); in TEST() 157 EXPECT_EXIT(VK_CHECK(VK_ERROR_OUT_OF_DEVICE_MEMORY), testing::ExitedWithCode(42), ""); in TEST() 163 EXPECT_EXIT(VK_CHECK(VK_ERROR_DEVICE_LOST), testing::ExitedWithCode(42), ""); in TEST() 170 EXPECT_EXIT(VK_CHECK(VK_ERROR_DEVICE_LOST), testing::ExitedWithCode(42), ""); in TEST()
|
D | VkCommonOperations.cpp | 2294 VK_CHECK(vk->vkQueueWaitIdle(sVkEmulation->queue)); in teardownVkColorBufferLocked() 2490 VK_CHECK(vk->vkBeginCommandBuffer(commandBuffer, &beginInfo)); in readColorBufferToBytesLocked() 2527 VK_CHECK(vk->vkEndCommandBuffer(commandBuffer)); in readColorBufferToBytesLocked() 2543 VK_CHECK(vk->vkQueueSubmit(sVkEmulation->queue, 1, &submitInfo, in readColorBufferToBytesLocked() 2549 VK_CHECK(vk->vkWaitForFences(sVkEmulation->device, 1, &sVkEmulation->commandBufferFence, in readColorBufferToBytesLocked() 2552 VK_CHECK(vk->vkResetFences(sVkEmulation->device, 1, &sVkEmulation->commandBufferFence)); in readColorBufferToBytesLocked() 2562 VK_CHECK(vk->vkInvalidateMappedMemoryRanges(sVkEmulation->device, 1, &toInvalidate)); in readColorBufferToBytesLocked() 2700 VK_CHECK(vk->vkBeginCommandBuffer(commandBuffer, &beginInfo)); in updateColorBufferFromBytesLocked() 2769 VK_CHECK(vk->vkEndCommandBuffer(commandBuffer)); in updateColorBufferFromBytesLocked() 2785 VK_CHECK(vk->vkQueueSubmit(sVkEmulation->queue, 1, &submitInfo, in updateColorBufferFromBytesLocked() [all …]
|
D | vk_util.h | 293 #define VK_CHECK(x) \ macro 439 VK_CHECK(self.m_vk.vkAllocateCommandBuffers(self.m_vkDevice, &cmdBuffAllocInfo, &cmdBuff)); in runSingleTimeCommands() 442 VK_CHECK(self.m_vk.vkBeginCommandBuffer(cmdBuff, &beginInfo)); in runSingleTimeCommands() 444 VK_CHECK(self.m_vk.vkEndCommandBuffer(cmdBuff)); in runSingleTimeCommands() 453 VK_CHECK(self.m_vk.vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE)); in runSingleTimeCommands() 454 VK_CHECK(self.m_vk.vkQueueWaitIdle(queue)); in runSingleTimeCommands()
|
D | DisplaySurfaceVk.cpp | 39 VK_CHECK(vk.vkCreateWin32SurfaceKHR(instance, &surfaceCi, nullptr, &surface)); in create()
|
D | VkAndroidNativeBuffer.cpp | 525 VK_CHECK(vk->vkQueueSubmit(defaultQueue, 1, &submitInfo, fence)); in setAndroidNativeImageSemaphoreSignaled() 594 VK_CHECK(vk->vkQueueSubmit(queueState.queue, 1, &submitInfo, fence)); in setAndroidNativeImageSemaphoreSignaled() 610 VK_CHECK(vk->vkQueueSubmit(queueState.queue, 1, &submitInfo, fence)); in setAndroidNativeImageSemaphoreSignaled() 781 VK_CHECK(vk->vkQueueSubmit(queueState.queue, 1, &submitInfo, qsriFence)); in syncImageToColorBuffer() 795 VK_CHECK(res); in syncImageToColorBuffer()
|
D | VkDecoderInternalStructs.h | 74 VK_CHECK(status); in pop() 91 VK_CHECK(m_vk->vkResetFences(mDevice, 1, &fence)); in pop()
|
D | VkDecoderGlobalState.cpp | 2622 VK_CHECK(vk->vkResetFences(device, (uint32_t)cleanedFences.size(), in on_vkResetFences() 2635 VK_CHECK(vk->vkCreateFence(device, &createInfo, 0, &replacement)); in on_vkResetFences()
|
/hardware/google/gfxstream/host/vulkan/emulated_textures/testing/ |
D | ComputePipelineRestoration_integrationtest.cpp | 89 VK_CHECK(vk->vkCreateImage(device, &imageInfo, nullptr, &image)); in createImage() 100 VK_CHECK(vk->vkAllocateMemory(device, &allocInfo, nullptr, &imageMemory)); in createImage() 101 VK_CHECK(vk->vkBindImageMemory(device, image, imageMemory, 0)); in createImage() 134 VK_CHECK(vk->vkCreateShaderModule(device, &shaderInfo, nullptr, &shader)); in TEST_F() 141 VK_CHECK(vk->vkCreateDescriptorSetLayout(device, &dsLayoutInfo, nullptr, &descriptorSetLayout)); in TEST_F() 151 VK_CHECK(vk->vkCreatePipelineLayout(device, &pipelineLayoutInfo, nullptr, &pipelineLayout)); in TEST_F() 163 VK_CHECK( in TEST_F()
|
/hardware/google/gfxstream/host/vulkan/testing/ |
D | VulkanTestHelper.cpp | 158 VK_CHECK(vk().vkCreateInstance(&createInfo, nullptr, &mInstance)); in initialize() 161 VK_CHECK(vk().vkCreateDebugUtilsMessengerEXT(mInstance, &debugCreateInfo, nullptr, in initialize() 169 VK_CHECK(vk().vkEnumeratePhysicalDevices(mInstance, &deviceCount, devices.data())); in initialize() 191 VK_CHECK(vk().vkCreateDevice(mPhysicalDevice, &deviceCreateInfo, nullptr, &mDevice)); in initialize() 203 VK_CHECK(vk().vkCreateCommandPool(mDevice, &poolInfo, nullptr, &mCommandPool)); in initialize() 278 VK_CHECK(vk().vkCreateBuffer(mDevice, &bufferInfo, nullptr, &buffer)); in createBuffer() 288 VK_CHECK(vk().vkAllocateMemory(mDevice, &allocInfo, nullptr, &bufferMemory)); in createBuffer()
|
/hardware/google/gfxstream/guest/mesa/src/vulkan/overlay-layer/ |
D | overlay.cpp | 260 #define VK_CHECK(expr) \ macro 404 VK_CHECK(device_data->vtable.CreateFence(device_data->device, in new_queue_data() 449 VK_CHECK(data->set_device_loader_data(data->device, queue)); in device_map_queues() 530 VK_CHECK(device_data->vtable.ResetFences(device_data->device, in get_overlay_draw() 543 VK_CHECK(device_data->vtable.AllocateCommandBuffers(device_data->device, in get_overlay_draw() 546 VK_CHECK(device_data->set_device_loader_data(device_data->device, in get_overlay_draw() 552 VK_CHECK(device_data->vtable.CreateFence(device_data->device, in get_overlay_draw() 557 VK_CHECK(device_data->vtable.CreateSemaphore(device_data->device, &sem_info, in get_overlay_draw() 559 VK_CHECK(device_data->vtable.CreateSemaphore(device_data->device, &sem_info, in get_overlay_draw() 1050 VK_CHECK(device_data->vtable.CreateBuffer(device_data->device, &buffer_info, in ensure_swapchain_fonts() [all …]
|