xrt: Add a way to say that timeline semaphores have been enabled

This commit is contained in:
Jakob Bornecrantz 2022-03-10 13:12:26 +00:00
parent d0f6ea10bc
commit f4f2196e34
5 changed files with 14 additions and 5 deletions

View file

@ -626,6 +626,7 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
PFN_vkGetInstanceProcAddr getProc, PFN_vkGetInstanceProcAddr getProc,
VkPhysicalDevice physicalDevice, VkPhysicalDevice physicalDevice,
VkDevice device, VkDevice device,
bool timeline_semaphore_enabled,
uint32_t queueFamilyIndex, uint32_t queueFamilyIndex,
uint32_t queueIndex) uint32_t queueIndex)
{ {
@ -663,9 +664,6 @@ client_vk_compositor_create(struct xrt_compositor_native *xcn,
// Default to info. // Default to info.
enum u_logging_level log_level = U_LOGGING_INFO; enum u_logging_level log_level = U_LOGGING_INFO;
// For now always disabled.
bool timeline_semaphore_enabled = false;
ret = vk_init_from_given( // ret = vk_init_from_given( //
&c->vk, // vk_bundle &c->vk, // vk_bundle
getProc, // vkGetInstanceProcAddr getProc, // vkGetInstanceProcAddr

View file

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

View file

@ -69,11 +69,19 @@ xrt_gfx_vk_provider_create(struct xrt_compositor_native *xcn,
PFN_vkGetInstanceProcAddr get_instance_proc_addr, PFN_vkGetInstanceProcAddr get_instance_proc_addr,
VkPhysicalDevice physical_device, VkPhysicalDevice physical_device,
VkDevice device, VkDevice device,
bool timeline_semaphore_enabled,
uint32_t queue_family_index, uint32_t queue_family_index,
uint32_t queue_index) uint32_t queue_index)
{ {
struct client_vk_compositor *vcc = client_vk_compositor_create( struct client_vk_compositor *vcc = client_vk_compositor_create( //
xcn, instance, get_instance_proc_addr, physical_device, device, queue_family_index, queue_index); xcn, //
instance, //
get_instance_proc_addr, //
physical_device, //
device, //
timeline_semaphore_enabled, //
queue_family_index, //
queue_index); //
return &vcc->base; return &vcc->base;
} }

View file

@ -61,6 +61,7 @@ xrt_gfx_vk_provider_create(struct xrt_compositor_native *xcn,
PFN_vkGetInstanceProcAddr get_instance_proc_addr, PFN_vkGetInstanceProcAddr get_instance_proc_addr,
VkPhysicalDevice physical_device, VkPhysicalDevice physical_device,
VkDevice device, VkDevice device,
bool timeline_semaphore_enabled,
uint32_t queue_family_index, uint32_t queue_family_index,
uint32_t queue_index); uint32_t queue_index);

View file

@ -34,6 +34,7 @@ oxr_session_populate_vk(struct oxr_logger *log,
vkGetInstanceProcAddr, // vkGetInstanceProcAddr, //
next->physicalDevice, // next->physicalDevice, //
next->device, // next->device, //
false, //
next->queueFamilyIndex, // next->queueFamilyIndex, //
next->queueIndex); // next->queueIndex); //