/hardware/google/gfxstream/host/tests/ |
D | VkTestUtils.h | 17 VkDevice m_vkDevice; member 61 res->m_vkDevice = device; in create() 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 …]
|
D | DisplayVk_unittest.cpp | 37 k_vk->vkGetDeviceQueue(m_vkDevice, m_compositorQueueFamilyIndex, 0, &m_compositorVkQueue); in SetUp() 39 k_vk->vkGetDeviceQueue(m_vkDevice, m_swapChainQueueFamilyIndex, 0, &m_swapChainVkQueue); in SetUp() 44 ASSERT_EQ(k_vk->vkCreateCommandPool(m_vkDevice, &commandPoolCi, nullptr, &m_vkCommandPool), in SetUp() 48 m_vkDevice, m_compositorVkQueue, m_compositorVkQueueLock, m_swapChainVkQueue, in SetUp() 63 k_vk->vkDestroyCommandPool(m_vkDevice, m_vkCommandPool, nullptr); in TearDown() 64 k_vk->vkDestroyDevice(m_vkDevice, nullptr); in TearDown() 97 VkDevice m_vkDevice = VK_NULL_HANDLE; member in gfxstream::vk::__anon33c444fe0111::DisplayVkTest 206 ASSERT_EQ(k_vk->vkCreateDevice(m_vkPhysicalDevice, &deviceCi, nullptr, &m_vkDevice), in createLogicalDevice() 208 ASSERT_TRUE(m_vkDevice != VK_NULL_HANDLE); in createLogicalDevice() 220 m_compositorQueueFamilyIndex, m_vkDevice, m_compositorVkQueue, in TEST_F() [all …]
|
D | SwapChainStateVk_unittest.cpp | 31 k_vk->vkDestroyDevice(m_vkDevice, nullptr); in TearDown() 46 VkDevice m_vkDevice = VK_NULL_HANDLE; member in gfxstream::vk::__anonb2f603a70111::SwapChainStateVkTest 163 &m_vkDevice), in createLogicalDevice() 165 ASSERT_TRUE(m_vkDevice != VK_NULL_HANDLE); in createLogicalDevice() 177 SwapChainStateVk::createSwapChainVk(*k_vk, m_vkDevice, swapChainCi->mCreateInfo); in TEST_F()
|
D | CompositorVk_unittest.cpp | 66 ASSERT_EQ(k_vk->vkCreateCommandPool(m_vkDevice, &commandPoolCi, nullptr, &m_vkCommandPool), in SetUp() 69 k_vk->vkGetDeviceQueue(m_vkDevice, m_compositorQueueFamilyIndex, 0, &m_compositorVkQueue); in SetUp() 80 k_vk->vkDestroyCommandPool(m_vkDevice, m_vkCommandPool, nullptr); in TearDown() 81 k_vk->vkDestroyDevice(m_vkDevice, nullptr); in TearDown() 82 m_vkDevice = VK_NULL_HANDLE; in TearDown() 88 return CompositorVk::create(*k_vk, m_vkDevice, m_vkPhysicalDevice, m_compositorVkQueue, in createCompositor() 98 SourceOrTargetImage::create(*k_vk, m_vkDevice, m_vkPhysicalDevice, m_compositorVkQueue, in createImageWithColor() 121 SourceImage::create(*k_vk, m_vkDevice, m_vkPhysicalDevice, m_compositorVkQueue, in createSourceImageFromPng() 265 VkDevice m_vkDevice = VK_NULL_HANDLE; member in gfxstream::vk::__anon7cf6e9770111::CompositorVkTest 346 ASSERT_EQ(k_vk->vkCreateDevice(m_vkPhysicalDevice, &deviceCi, nullptr, &m_vkDevice), in createLogicalDevice() [all …]
|
/hardware/google/gfxstream/host/vulkan/ |
D | CompositorVk.cpp | 103 m_vkDevice(vkDevice), in RenderTarget() 128 m_vk.vkDestroyFramebuffer(m_vkDevice, m_vkFramebuffer, nullptr); in ~RenderTarget() 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() 180 m_vk.vkFreeMemory(m_vkDevice, m_uniformStorage.m_vkDeviceMemory, nullptr); in ~CompositorVk() 181 m_vk.vkFreeMemory(m_vkDevice, m_vertexVkDeviceMemory, nullptr); in ~CompositorVk() [all …]
|
D | DisplayVk.cpp | 65 m_vkDevice(vkDevice), 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() 157 SwapChainStateVk::createSwapChainVk(m_vk, m_vkDevice, swapChainCi->mCreateInfo); in recreateSwapchain() 163 m_freePostResources.emplace_back(PostResource::create(m_vk, m_vkDevice, m_vkCommandPool)); in recreateSwapchain() 222 m_vkDevice, imageBorrowResource->m_completeFence); in postImpl() 231 m_vkDevice, 1, &(*freeImageBorrowResource)->m_completeFence, VK_TRUE, UINT64_MAX)); in postImpl() 233 VK_CHECK(m_vk.vkResetFences(m_vkDevice, 1, &(*freeImageBorrowResource)->m_completeFence)); in postImpl() 396 m_vk.vkAcquireNextImageKHR(m_vkDevice, m_swapChainStateVk->getSwapChain(), UINT64_MAX, in postImpl() [all …]
|
D | SwapChainStateVk.cpp | 89 m_vkDevice(vkDevice), 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 | 63 VkDevice m_vkDevice; variable 85 const VkDevice m_vkDevice; variable 107 const VkDevice m_vkDevice; variable
|
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()
|
D | CompositorVk.h | 41 const VkDevice m_vkDevice; member 128 m_vkDevice(device), in CompositorVkBase() 234 VkDevice m_vkDevice; variable
|
D | SwapChainStateVk.h | 68 VkDevice m_vkDevice; variable
|
D | DebugUtilsHelper.h | 81 VkDevice m_vkDevice = VK_NULL_HANDLE; variable
|
D | vk_util.h | 439 VK_CHECK(self.m_vk.vkAllocateCommandBuffers(self.m_vkDevice, &cmdBuffAllocInfo, &cmdBuff)); in runSingleTimeCommands() 456 self.m_vk.vkFreeCommandBuffers(self.m_vkDevice, self.m_vkCommandPool, 1, &cmdBuff); in runSingleTimeCommands()
|