/hardware/google/gfxstream/host/tests/ |
D | VkTestUtils.h | 16 const VulkanDispatch& m_vk; member 37 : m_vk(vk), in RenderResourceVkBase() 108 m_vk.vkFreeCommandBuffers(m_vkDevice, m_vkCommandPool, in ~RenderResourceVk() 113 m_vk.vkUnmapMemory(m_vkDevice, m_bufferVkDeviceMemory); in ~RenderResourceVk() 115 m_vk.vkFreeMemory(m_vkDevice, m_bufferVkDeviceMemory, nullptr); in ~RenderResourceVk() 116 m_vk.vkDestroyBuffer(m_vkDevice, m_vkBuffer, nullptr); in ~RenderResourceVk() 117 m_vk.vkDestroyImageView(m_vkDevice, m_vkImageView, nullptr); in ~RenderResourceVk() 118 m_vk.vkFreeMemory(m_vkDevice, m_imageVkDeviceMemory, nullptr); in ~RenderResourceVk() 119 m_vk.vkDestroyImage(m_vkDevice, m_vkImage, nullptr); in ~RenderResourceVk() 139 if (m_vk.vkCreateImage(m_vkDevice, &imageCi, nullptr, &m_vkImage) != in setUpImage() [all …]
|
/hardware/google/gfxstream/host/vulkan/ |
D | DisplayVk.cpp | 61 : m_vk(vk), in DisplayVk() 79 VK_CHECK(m_vk.vkCreateCommandPool(m_vkDevice, &commandPoolCi, nullptr, &m_vkCommandPool)); in DisplayVk() 83 ImageBorrowResource::create(m_vk, m_vkDevice, m_vkCommandPool)); in DisplayVk() 90 m_vk.vkDestroyCommandPool(m_vkDevice, m_vkCommandPool, nullptr); 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() 136 m_vk, m_vkPhysicalDevice, surfaceVk->getSurface(), m_swapChainQueueFamilyIndex)) { in recreateSwapchain() 143 m_vk, surfaceVk->getSurface(), m_vkPhysicalDevice, surface->getWidth(), in recreateSwapchain() 149 m_vk.vkGetPhysicalDeviceFormatProperties(m_vkPhysicalDevice, in recreateSwapchain() 157 SwapChainStateVk::createSwapChainVk(m_vk, m_vkDevice, swapChainCi->mCreateInfo); in recreateSwapchain() [all …]
|
D | CompositorVk.cpp | 102 : m_vk(vk), in RenderTarget() 123 VK_CHECK(m_vk.vkCreateFramebuffer(vkDevice, &framebufferCi, nullptr, &m_vkFramebuffer)); in RenderTarget() 128 m_vk.vkDestroyFramebuffer(m_vkDevice, m_vkFramebuffer, nullptr); in ~RenderTarget() 164 VK_CHECK(vk_util::waitForVkQueueIdleWithRetry(m_vk, m_vkQueue)); in ~CompositorVk() 167 m_vk.vkDestroyImageView(m_vkDevice, m_defaultImage.m_vkImageView, nullptr); in ~CompositorVk() 170 m_vk.vkDestroyImage(m_vkDevice, m_defaultImage.m_vkImage, nullptr); in ~CompositorVk() 173 m_vk.vkFreeMemory(m_vkDevice, m_defaultImage.m_vkImageMemory, nullptr); in ~CompositorVk() 175 m_vk.vkDestroyDescriptorPool(m_vkDevice, m_vkDescriptorPool, nullptr); in ~CompositorVk() 177 m_vk.vkUnmapMemory(m_vkDevice, m_uniformStorage.m_vkDeviceMemory); in ~CompositorVk() 179 m_vk.vkDestroyBuffer(m_vkDevice, m_uniformStorage.m_vkBuffer, nullptr); in ~CompositorVk() [all …]
|
D | DebugUtilsHelper.cpp | 37 : m_debugUtilsEnabled(enabled), m_vkDevice(device), m_vk(dispatch) {} in DebugUtilsHelper() 60 VkResult result = m_vk->vkSetDebugUtilsObjectNameEXT(m_vkDevice, &objectNameInfo); in addDebugLabelToHandle() 84 m_vk->vkCmdBeginDebugUtilsLabelEXT(commandBuffer, &labelInfo); in cmdBeginDebugLabel() 92 m_vk->vkCmdEndDebugUtilsLabelEXT(commandBuffer); in cmdEndDebugLabel()
|
D | SwapChainStateVk.cpp | 88 : m_vk(vk), in SwapChainStateVk() 95 VkResult res = m_vk.vkCreateSwapchainKHR(m_vkDevice, &swapChainCi, nullptr, &m_vkSwapChain); in initSwapChainStateVk() 99 VK_CHECK(m_vk.vkGetSwapchainImagesKHR(m_vkDevice, m_vkSwapChain, &imageCount, nullptr)); in initSwapChainStateVk() 103 m_vk.vkGetSwapchainImagesKHR(m_vkDevice, m_vkSwapChain, &imageCount, m_vkImages.data())); in initSwapChainStateVk() 120 VK_CHECK(m_vk.vkCreateImageView(m_vkDevice, &imageViewCi, nullptr, &vkImageView)); in initSwapChainStateVk() 128 m_vk.vkDestroyImageView(m_vkDevice, imageView, nullptr); in ~SwapChainStateVk() 131 m_vk.vkDestroySwapchainKHR(m_vkDevice, m_vkSwapChain, nullptr); in ~SwapChainStateVk()
|
D | DisplayVk.h | 59 const VulkanDispatch& m_vk; variable 84 const VulkanDispatch& m_vk; variable 106 const VulkanDispatch& m_vk; variable
|
D | vk_util.h | 423 return vk_util::findMemoryType(&self.m_vk, self.m_vkPhysicalDevice, typeFilter, properties); in findMemoryType() 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() 456 self.m_vk.vkFreeCommandBuffers(self.m_vkDevice, self.m_vkCommandPool, 1, &cmdBuff); in runSingleTimeCommands() 480 self.m_vk.vkCmdPipelineBarrier(cmdBuff, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, in recordImageLayoutTransformCommands()
|
D | VkDecoderInternalStructs.h | 47 : m_vk(dispatch), mDevice(device), mMaxSize(5) {} in ExternalFencePool() 71 VkResult status = m_vk->vkGetFenceStatus(mDevice, fence); in pop() 91 VK_CHECK(m_vk->vkResetFences(mDevice, 1, &fence)); in pop() 105 TDispatch* m_vk;
|
D | CompositorVk.h | 40 const VulkanDispatch& m_vk; member 127 : m_vk(vk), in CompositorVkBase() 233 const VulkanDispatch& m_vk; variable
|
D | SwapChainStateVk.h | 67 const VulkanDispatch& m_vk; variable
|
D | DebugUtilsHelper.h | 82 const VulkanDispatch* m_vk = nullptr; variable
|
D | VkDecoderGlobalState.cpp | 353 : m_vk(vkDispatch()), in Impl() 886 if (m_vk->vkEnumerateInstanceVersion) { in on_vkEnumerateInstanceVersion() 887 VkResult res = m_vk->vkEnumerateInstanceVersion(pApiVersion); in on_vkEnumerateInstanceVersion() 910 if (m_vk->vkEnumerateInstanceVersion) { in on_vkCreateInstance() 912 VkResult result = m_vk->vkEnumerateInstanceVersion(&instanceVersion); in on_vkCreateInstance() 962 VkResult res = m_vk->vkCreateInstance(&createInfoFiltered, pAllocator, pInstance); in on_vkCreateInstance() 995 init_vulkan_dispatch_from_instance(m_vk, *pInstance, dispatch_VkInstance(boxed)); in on_vkCreateInstance() 1000 if (!m_vk->vkSetMTLTextureMVK) { in on_vkCreateInstance() 1052 m_vk->vkDestroyInstance(instance, pAllocator); in vkDestroyInstanceImpl() 1110 m_vk->vkGetInstanceProcAddr, in on_vkEnumeratePhysicalDevices() [all …]
|
D | VkDecoder.cpp | 68 m_vk(vkDispatch()), in Impl() 91 VulkanDispatch* m_vk; member in gfxstream::vk::VkDecoder::Impl 223 auto vk = m_vk; in decode()
|