Update Monado

This commit is contained in:
Patrick Nicolas
2026-07-30 19:04:46 +02:00
parent 6b3d67eb7a
commit c99db1ccd0
10 changed files with 49 additions and 49 deletions
+1 -1
View File
@@ -1 +1 @@
a5275d9692a1210ee2bafe9d4363fa6b91083c57
8053730d648e44cad798c528dd9be3b720a718eb
@@ -1,7 +1,7 @@
From de3b592fc26d7b26b4850fcc78d7e6b21147f76b Mon Sep 17 00:00:00 2001
From 0276080e671cdefb7e88eda9492049727223689a 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/8] c/multi: early wake of compositor
Subject: [PATCH 1/9] c/multi: early wake of compositor
---
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
@@ -51,11 +51,11 @@ 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 5a4f35b81..cbda39c24 100644
index 51d1c2827..363def34f 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -14,6 +14,8 @@
#include "xrt/xrt_defines.h"
@@ -15,6 +15,8 @@
#include "xrt/xrt_results.h"
#include "xrt/xrt_session.h"
+#include "math/m_api.h"
@@ -63,7 +63,7 @@ index 5a4f35b81..cbda39c24 100644
#include "os/os_time.h"
#include "os/os_threading.h"
@@ -426,17 +428,24 @@ broadcast_timings_to_pacers(struct multi_system_compositor *msc,
@@ -427,17 +429,24 @@ broadcast_timings_to_pacers(struct multi_system_compositor *msc,
}
static void
@@ -93,7 +93,7 @@ index 5a4f35b81..cbda39c24 100644
}
static void
@@ -562,10 +571,13 @@ multi_main_loop(struct multi_system_compositor *msc)
@@ -574,10 +583,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 5a4f35b81..cbda39c24 100644
// Now we know the diff, broadcast to pacers.
broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns);
@@ -785,6 +797,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
@@ -797,6 +809,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 5a4f35b81..cbda39c24 100644
free(msc);
}
@@ -843,6 +857,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
@@ -855,6 +869,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);
@@ -128,5 +128,5 @@ index 5a4f35b81..cbda39c24 100644
//! @todo Make the clients not go from IDLE to READY before we have completed a first frame.
// Make sure there is at least some sort of valid frame data here.
--
2.54.0
2.55.0
@@ -1,7 +1,7 @@
From 22d9bf87e9dd6a0d5970258a6b6cd6ca82c3bb26 Mon Sep 17 00:00:00 2001
From fb7e9dcb19dc23cb5a20cbfede6f3bd96a02b2b9 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/8] Use extern socket fd
Subject: [PATCH 2/9] Use extern socket fd
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
@@ -34,5 +34,5 @@ index a0bef3dde..453dd38ca 100644
// We may have been launched with socket activation
int num_fds = sd_listen_fds(0);
--
2.54.0
2.55.0
@@ -1,17 +1,17 @@
From 3c7450d800b0e3f35440f41d3bfcf5b5abe6dfe8 Mon Sep 17 00:00:00 2001
From 6d0479029790d9db188b0111bf7301e2dcf6e10c 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/8] change environment blend mode selection logic
Subject: [PATCH 3/9] change environment blend mode selection logic
---
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
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 cbda39c24..c0c6c9f60 100644
index 363def34f..b98d9b27d 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -231,23 +231,31 @@ find_active_blend_mode(struct multi_compositor **overlay_sorted_clients, size_t
@@ -232,23 +232,31 @@ find_active_blend_mode(struct multi_compositor **overlay_sorted_clients, size_t
if (overlay_sorted_clients == NULL)
return XRT_BLEND_MODE_OPAQUE;
@@ -53,5 +53,5 @@ index cbda39c24..c0c6c9f60 100644
}
--
2.54.0
2.55.0
@@ -1,7 +1,7 @@
From b26876c29205f2d2fb07fbdbe009d5635eb32bfd Mon Sep 17 00:00:00 2001
From d03b94d252682b5da6ac80bbf1e4346575c78cf3 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/8] st/oxr: forward 0 refresh rate
Subject: [PATCH 4/9] st/oxr: forward 0 refresh rate
---
src/xrt/compositor/main/comp_compositor.c | 2 +-
@@ -9,10 +9,10 @@ Subject: [PATCH 4/8] st/oxr: forward 0 refresh rate
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
index b44271622..a1e112e89 100644
index a8fbd01d8..88e43be19 100644
--- a/src/xrt/compositor/main/comp_compositor.c
+++ b/src/xrt/compositor/main/comp_compositor.c
@@ -391,7 +391,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
@@ -399,7 +399,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
if (c->target && c->target->request_refresh_rate) {
xrt_result_t result = comp_target_request_refresh_rate(c->target, display_refresh_rate_hz);
// Assume refresh rate change is immediate
@@ -22,7 +22,7 @@ index b44271622..a1e112e89 100644
return result;
}
diff --git a/src/xrt/state_trackers/oxr/oxr_api_session.c b/src/xrt/state_trackers/oxr/oxr_api_session.c
index 09297f885..9f3a7ebc2 100644
index 1e19da2c6..86633ef71 100644
--- a/src/xrt/state_trackers/oxr/oxr_api_session.c
+++ b/src/xrt/state_trackers/oxr/oxr_api_session.c
@@ -455,15 +455,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate)
@@ -43,5 +43,5 @@ index 09297f885..9f3a7ebc2 100644
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
found = true;
--
2.54.0
2.55.0
@@ -1,17 +1,17 @@
From 7230746571d1256d32557fd99528ac90a1d75957 Mon Sep 17 00:00:00 2001
From cee540ab542a1e1386b86f437aa05cb758e7b5b6 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/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn
Subject: [PATCH 5/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
---
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp | 2 +-
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 347d22068..d34d3331e 100644
index 947376ca8..45443180e 100644
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
@@ -985,7 +985,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
@@ -1019,7 +1019,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
// Include the HMD
if (svrs->ctx->hmd) {
@@ -21,5 +21,5 @@ index 347d22068..d34d3331e 100644
}
--
2.54.0
2.55.0
@@ -1,7 +1,7 @@
From f400f0e63259bcadd9a7955ae0275caa5aea3ded Mon Sep 17 00:00:00 2001
From cf589697b28a175802d9a61d2baf498211cdde53 Mon Sep 17 00:00:00 2001
From: Sapphire <imsapphire0@gmail.com>
Date: Fri, 7 Nov 2025 20:41:16 -0600
Subject: [PATCH 6/8] st/oxr: push XrEventDataInteractionProfileChanged when
Subject: [PATCH 6/9] st/oxr: push XrEventDataInteractionProfileChanged when
profile changes to NULL
---
@@ -9,10 +9,10 @@ Subject: [PATCH 6/8] st/oxr: push XrEventDataInteractionProfileChanged when
1 file changed, 3 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/actions/oxr_input.c b/src/xrt/state_trackers/oxr/actions/oxr_input.c
index 2bd3ea009..93659ba35 100644
index 9d677282d..ee65741a3 100644
--- a/src/xrt/state_trackers/oxr/actions/oxr_input.c
+++ b/src/xrt/state_trackers/oxr/actions/oxr_input.c
@@ -1932,9 +1932,6 @@ session_update_action_bindings(struct oxr_logger *log,
@@ -1922,9 +1922,6 @@ session_update_action_bindings(struct oxr_logger *log,
#define POPULATE_PROFILE(X) \
do { \
XrPath path = profiles.X != NULL ? profiles.X->path : XR_NULL_PATH; \
@@ -23,5 +23,5 @@ index 2bd3ea009..93659ba35 100644
action_context->X = path; \
interaction_profile_changed = true; \
--
2.54.0
2.55.0
@@ -1,17 +1,17 @@
From 0832cc9a2ccd0f67b3bd3a11ec1b1d1398dfebda Mon Sep 17 00:00:00 2001
From 766d4264e50911205b9041e56978780b324e7486 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/8] don't verify GL stuff
Subject: [PATCH 7/9] don't verify GL stuff
---
src/xrt/state_trackers/oxr/oxr_verify.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/xrt/state_trackers/oxr/oxr_verify.c b/src/xrt/state_trackers/oxr/oxr_verify.c
index 8f35222cf..1418a8231 100644
index dcdb12d96..051291e2c 100644
--- a/src/xrt/state_trackers/oxr/oxr_verify.c
+++ b/src/xrt/state_trackers/oxr/oxr_verify.c
@@ -610,16 +610,6 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(struct oxr_logger *log, const XrGraphi
@@ -676,16 +676,6 @@ oxr_verify_XrGraphicsBindingOpenGLXlibKHR(struct oxr_logger *log, const XrGraphi
"XrGraphicsBindingOpenGLXlibKHR::glxDrawable is NULL");
}
@@ -29,5 +29,5 @@ index 8f35222cf..1418a8231 100644
}
--
2.54.0
2.55.0
@@ -1,14 +1,14 @@
From d79de5d82def9641484b8d88212d3c2e97e38734 Mon Sep 17 00:00:00 2001
From f7f1e6fa6dfc8cd6fc58617d9fca49c9bbae3373 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/8] configure u_git_tag in WiVRn
Subject: [PATCH 8/9] configure u_git_tag in WiVRn
---
src/xrt/auxiliary/util/CMakeLists.txt | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/xrt/auxiliary/util/CMakeLists.txt b/src/xrt/auxiliary/util/CMakeLists.txt
index 79646b181..21adcd446 100644
index 0ec4e95ee..9f82f915e 100644
--- a/src/xrt/auxiliary/util/CMakeLists.txt
+++ b/src/xrt/auxiliary/util/CMakeLists.txt
@@ -10,11 +10,6 @@
@@ -23,7 +23,7 @@ index 79646b181..21adcd446 100644
add_library(
aux_util STATIC
u_autoexpgain.c
@@ -120,7 +115,7 @@ add_library(
@@ -128,7 +123,7 @@ add_library(
u_worker.cpp
u_worker.h
u_worker.hpp
@@ -33,5 +33,5 @@ index 79646b181..21adcd446 100644
target_link_libraries(
aux_util
--
2.54.0
2.55.0
@@ -1,7 +1,7 @@
From a149552933bda15ffab81460f38dbe90abd0dfe0 Mon Sep 17 00:00:00 2001
From 3f4451bf117b197b0177844f8fa818a838ebf965 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 28 Jun 2026 11:36:08 -0600
Subject: [PATCH] ipc: join client threads before teardown
Subject: [PATCH 9/9] ipc: join client threads before teardown
On shutdown main_loop() returns as soon as s->running is cleared, but the
per-client threads may still be in common_shutdown() destroying their
@@ -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 caa82d05d..9dfffceaa 100644
index 4f9a6e2a4..3cad2dab1 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)
@@ -58,5 +58,5 @@ index caa82d05d..9dfffceaa 100644
xrt_space_overseer_destroy(&s->xso);
--
2.54.0
2.55.0