The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

comp/render: Use a helper

authored by

Ryan Pavlik and committed by
Jakob Bornecrantz
16c016c4 8af498aa

+1 -23
+1 -23
src/xrt/compositor/render/render_buffer.c
··· 154 154 { 155 155 VkResult ret; 156 156 157 - #if defined(XRT_GRAPHICS_BUFFER_HANDLE_IS_FD) 158 - 159 157 VkExportMemoryAllocateInfo export_alloc_info = { 160 158 .sType = VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR, 161 159 .pNext = NULL, 162 - .handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD_BIT_KHR, 163 - }; 164 - 165 - #elif defined(XRT_GRAPHICS_BUFFER_HANDLE_IS_AHARDWAREBUFFER) 166 - 167 - VkExportMemoryAllocateInfo export_alloc_info = { 168 - .sType = VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR, 169 - .pNext = NULL, 170 - .handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_ANDROID_HARDWARE_BUFFER_BIT_ANDROID, 171 - }; 172 - 173 - #elif defined(XRT_GRAPHICS_BUFFER_HANDLE_IS_WIN32_HANDLE) 174 - 175 - VkExportMemoryAllocateInfo export_alloc_info = { 176 - .sType = VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_KHR, 177 - .pNext = NULL, 178 - .handleTypes = VK_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_BIT_KHR, 160 + .handleTypes = vk_csci_get_image_external_handle_type(vk), 179 161 }; 180 - 181 - #else 182 - #error "need port" 183 - #endif 184 162 185 163 ret = create_buffer(vk, // 186 164 usage_flags, // usage_flags