update monado

This commit is contained in:
galister
2026-09-16 23:23:12 +09:00
parent b27f8dd831
commit 07657d7281
11 changed files with 31 additions and 32 deletions
+1 -1
View File
@@ -1 +1 @@
00f6a165f5ed0b835491991bd4ef98f581e4bf22
a3e1b05082b0ae159184361453f5b54ea2fc5dd4
@@ -1,4 +1,4 @@
From 0276080e671cdefb7e88eda9492049727223689a Mon Sep 17 00:00:00 2001
From 337ab13148cddef8ba9a21b3829a3bc6bedebed8 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 22 Oct 2024 15:23:19 +0200
Subject: [PATCH 1/9] c/multi: early wake of compositor
@@ -51,7 +51,7 @@ index 6c7ec05f8..588878e38 100644
{
int64_t predicted_display_time_ns;
diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c
index 51d1c2827..363def34f 100644
index 37bdc3bc5..717f6ae4c 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -15,6 +15,8 @@
@@ -93,7 +93,7 @@ index 51d1c2827..363def34f 100644
}
static void
@@ -574,10 +583,13 @@ multi_main_loop(struct multi_system_compositor *msc)
@@ -576,10 +585,13 @@ multi_main_loop(struct multi_system_compositor *msc)
broadcast_timings_to_clients(msc, predicted_display_time_ns);
// Now we can wait.
@@ -109,7 +109,7 @@ index 51d1c2827..363def34f 100644
// Now we know the diff, broadcast to pacers.
broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns);
@@ -797,6 +809,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
@@ -798,6 +810,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
xrt_comp_native_destroy(&msc->xcn);
os_mutex_destroy(&msc->list_and_timing_lock);
@@ -118,7 +118,7 @@ index 51d1c2827..363def34f 100644
free(msc);
}
@@ -855,6 +869,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
@@ -856,6 +870,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
msc->get_view_config_callback = get_view_config_callback;
os_mutex_init(&msc->list_and_timing_lock);
@@ -1,4 +1,4 @@
From fb7e9dcb19dc23cb5a20cbfede6f3bd96a02b2b9 Mon Sep 17 00:00:00 2001
From 5f15e2e67ce644ef3146952b3976517487f26ed6 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 2/9] Use extern socket fd
@@ -1,4 +1,4 @@
From 6d0479029790d9db188b0111bf7301e2dcf6e10c Mon Sep 17 00:00:00 2001
From aa54091b55d59696de47718d440af6e203348541 Mon Sep 17 00:00:00 2001
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
Date: Sat, 23 Nov 2024 02:42:12 +0900
Subject: [PATCH 3/9] change environment blend mode selection logic
@@ -8,7 +8,7 @@ Subject: [PATCH 3/9] change environment blend mode selection logic
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c
index 363def34f..b98d9b27d 100644
index 717f6ae4c..8c02280b0 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -232,23 +232,31 @@ find_active_blend_mode(struct multi_compositor **overlay_sorted_clients, size_t
@@ -1,4 +1,4 @@
From d03b94d252682b5da6ac80bbf1e4346575c78cf3 Mon Sep 17 00:00:00 2001
From 1ba737ef0e908056cc35cdd909d8738569abb70e Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 4/9] st/oxr: forward 0 refresh rate
@@ -1,4 +1,4 @@
From cee540ab542a1e1386b86f437aa05cb758e7b5b6 Mon Sep 17 00:00:00 2001
From d317b89542b5156b0a6c823aa7b93dea882880cc Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 28 Sep 2025 11:33:10 +0200
Subject: [PATCH 5/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
@@ -8,15 +8,15 @@ Subject: [PATCH 5/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
index 947376ca8..45443180e 100644
index ae4981c3c..e7a13a9c9 100644
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
@@ -1019,7 +1019,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
@@ -1078,7 +1078,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices *xsys
// Include the HMD
if (svrs->ctx->hmd) {
- if (svrs->ctx->hmd->variant == VIVE_VARIANT_PRO2 && !svrs->ctx->hmd->init_vive_pro_2(xp)) {
+ if (xp && svrs->ctx->hmd->variant == VIVE_VARIANT_PRO2 && !svrs->ctx->hmd->init_vive_pro_2(xp)) {
if (ctx->hmd) {
- if (ctx->hmd->variant == VIVE_VARIANT_PRO2 && !ctx->hmd->init_vive_pro_2(xp)) {
+ if (xp && ctx->hmd->variant == VIVE_VARIANT_PRO2 && !ctx->hmd->init_vive_pro_2(xp)) {
U_LOG_IFL_W(level, "Found Vive Pro 2, but failed to initialize.");
}
@@ -1,4 +1,4 @@
From cf589697b28a175802d9a61d2baf498211cdde53 Mon Sep 17 00:00:00 2001
From ea2748ddda22a4527a1ac1fc2ef20f691ef4cc5c Mon Sep 17 00:00:00 2001
From: Sapphire <imsapphire0@gmail.com>
Date: Fri, 7 Nov 2025 20:41:16 -0600
Subject: [PATCH 6/9] st/oxr: push XrEventDataInteractionProfileChanged when
@@ -1,4 +1,4 @@
From 766d4264e50911205b9041e56978780b324e7486 Mon Sep 17 00:00:00 2001
From f4851833957c41dfd6635e78000dba1d20cbc658 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 25 Jan 2026 10:09:10 +0100
Subject: [PATCH 7/9] don't verify GL stuff
@@ -1,4 +1,4 @@
From f7f1e6fa6dfc8cd6fc58617d9fca49c9bbae3373 Mon Sep 17 00:00:00 2001
From 3710f8ba7a8ba8948f489dc028f8dba5a1fe71bc Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Fri, 20 Mar 2026 16:51:18 +0100
Subject: [PATCH 8/9] configure u_git_tag in WiVRn
@@ -8,7 +8,7 @@ Subject: [PATCH 8/9] configure u_git_tag in WiVRn
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/xrt/auxiliary/util/CMakeLists.txt b/src/xrt/auxiliary/util/CMakeLists.txt
index 0ec4e95ee..9f82f915e 100644
index 8dee896e0..497b18cbc 100644
--- a/src/xrt/auxiliary/util/CMakeLists.txt
+++ b/src/xrt/auxiliary/util/CMakeLists.txt
@@ -10,11 +10,6 @@
@@ -23,7 +23,7 @@ index 0ec4e95ee..9f82f915e 100644
add_library(
aux_util STATIC
u_autoexpgain.c
@@ -128,7 +123,7 @@ add_library(
@@ -132,7 +127,7 @@ add_library(
u_worker.cpp
u_worker.h
u_worker.hpp
@@ -1,4 +1,4 @@
From 3f4451bf117b197b0177844f8fa818a838ebf965 Mon Sep 17 00:00:00 2001
From 4f0256590650672bf790cf571f5cc7b6495cb5f0 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 28 Jun 2026 11:36:08 -0600
Subject: [PATCH 9/9] ipc: join client threads before teardown
@@ -14,7 +14,7 @@ multi_compositor_destroy). Join the client threads first.
1 file changed, 28 insertions(+)
diff --git a/src/xrt/ipc/server/ipc_server_process.c b/src/xrt/ipc/server/ipc_server_process.c
index 4f9a6e2a4..3cad2dab1 100644
index 8adf617dd..9ab982396 100644
--- a/src/xrt/ipc/server/ipc_server_process.c
+++ b/src/xrt/ipc/server/ipc_server_process.c
@@ -163,11 +163,39 @@ print_linux_end_user_started_information(enum u_logging_level log_level)
+8 -9
View File
@@ -140,7 +140,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
#if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE
auto use_steamvr_lh = conf.use_steamvr_lh || std::getenv("WIVRN_USE_STEAMVR_LH");
xrt_system_devices * lhdevs = NULL;
if (use_steamvr_lh)
{
@@ -154,33 +153,34 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
U_LOG_W("Disregard lighthousedb / chaperone related error messages from the lighthouse driver. These are irrelevant in case of WiVRn.");
U_LOG_W("If getting a SIGSEGV right after this, you are likely using an unsupported SteamVR version!");
U_LOG_W("=====================");
if (steamvr_lh_create_devices(nullptr, &lhdevs) == XRT_SUCCESS)
int original_count = static_xdev_count;
if (steamvr_lh_create_devices(nullptr, this) == XRT_SUCCESS)
{
for (int i = 0; i < lhdevs->static_xdev_count; i++)
for (int i = original_count; i < static_xdev_count; i++)
{
auto lhdev = lhdevs->static_xdevs[i];
auto lhdev = static_xdevs[i];
switch (lhdev->device_type)
{
case XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER:
roles.left = static_xdev_count;
roles.left = i;
static_roles.hand_tracking.unobstructed.left = nullptr;
static_roles.hand_tracking.conforming.left = lhdev;
break;
case XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER:
roles.right = static_xdev_count;
roles.right = i;
static_roles.hand_tracking.unobstructed.right = nullptr;
static_roles.hand_tracking.conforming.right = lhdev;
break;
case XRT_DEVICE_TYPE_ANY_HAND_CONTROLLER:
if (roles.left == left_controller_index)
{
roles.left = static_xdev_count;
roles.left = i;
static_roles.hand_tracking.unobstructed.left = nullptr;
static_roles.hand_tracking.conforming.left = lhdev;
}
else if (roles.right == right_controller_index)
{
roles.right = static_xdev_count;
roles.right = i;
static_roles.hand_tracking.unobstructed.right = nullptr;
static_roles.hand_tracking.conforming.right = lhdev;
}
@@ -188,7 +188,6 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
default:
break;
}
static_xdevs[static_xdev_count++] = lhdev;
}
}
}