mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-03 21:56:06 +00:00
c/client: Pass external_[fence|semaphore]_fd status in
This commit is contained in:
parent
c8de67ad94
commit
989c4334a3
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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); //
|
||||
|
|
Loading…
Reference in a new issue