mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
xrt: Add a way to say that timeline semaphores have been enabled
This commit is contained in:
parent
d0f6ea10bc
commit
f4f2196e34
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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); //
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue