c/client: Pass external_[fence|semaphore]_fd status in

This commit is contained in:
Jakob Bornecrantz 2022-05-08 15:07:35 +01:00 committed by Christoph Haag
parent c8de67ad94
commit 989c4334a3
3 changed files with 18 additions and 12 deletions

View file

@ -770,6 +770,8 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
PFN_vkGetInstanceProcAddr getProc,
VkPhysicalDevice physicalDevice,
VkDevice device,
bool external_fence_fd_enabled,
bool external_semaphore_fd_enabled,
bool timeline_semaphore_enabled,
uint32_t queueFamilyIndex,
uint32_t queueIndex)
@ -810,18 +812,18 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
// Default to info.
enum u_logging_level log_level = U_LOGGING_INFO;
ret = vk_init_from_given( //
&c->vk, // vk_bundle
getProc, // vkGetInstanceProcAddr
instance, // instance
physicalDevice, // physical_device
device, // device
queueFamilyIndex, // queue_family_index
queueIndex, // queue_index
true, // external_fence_fd_enabled
true, // external_semaphore_fd_enabled
timeline_semaphore_enabled, // timeline_semaphore_enabled
log_level); // log_level
ret = vk_init_from_given( //
&c->vk, // vk_bundle
getProc, // vkGetInstanceProcAddr
instance, // instance
physicalDevice, // physical_device
device, // device
queueFamilyIndex, // queue_family_index
queueIndex, // queue_index
external_fence_fd_enabled, // external_fence_fd_enabled
external_semaphore_fd_enabled, // external_semaphore_fd_enabled
timeline_semaphore_enabled, // timeline_semaphore_enabled
log_level); // log_level
if (ret != VK_SUCCESS) {
goto err_free;
}

View file

@ -99,6 +99,8 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
PFN_vkGetInstanceProcAddr getProc,
VkPhysicalDevice physicalDevice,
VkDevice device,
bool external_fence_fd_enabled,
bool external_semaphore_fd_enabled,
bool timeline_semaphore_enabled,
uint32_t queueFamilyIndex,
uint32_t queueIndex);

View file

@ -79,6 +79,8 @@ xrt_gfx_vk_provider_create(struct xrt_compositor_native *xcn,
get_instance_proc_addr, //
physical_device, //
device, //
true, //
true, //
timeline_semaphore_enabled, //
queue_family_index, //
queue_index); //