Update Monado

This commit is contained in:
Patrick Nicolas
2026-06-06 11:06:44 +02:00
parent dc678fc1df
commit 245c45b9f9
10 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -57,7 +57,7 @@
# Keep in sync with CMakeLists.txt monado rev
rev = lib.strings.trim (builtins.readFile ./monado-rev);
# Nix will output the correct hash when it doesn't match
hash = "sha256-x8VuG9N1P0UL3Hy3XSI0gVVyF3sbWIhr6t2iu5Z+Flc=";
hash = "sha256-DS+B+BdRLVEhqjIQxOCNeXXM1NV2rdBtnr5Ly8sC4rk=";
};
};
+1 -1
View File
@@ -1 +1 @@
6578e7ec7f971deaa96d87c91427f1c4b09c10e4
be3a8fef61c5d2b4ec26c10d77ba0f14e3667d06
@@ -1,4 +1,4 @@
From 56bc78165b70a84e40bfc22ca5c2b95b0612d0cd Mon Sep 17 00:00:00 2001
From de3b592fc26d7b26b4850fcc78d7e6b21147f76b 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
@@ -10,7 +10,7 @@ Subject: [PATCH 1/8] c/multi: early wake of compositor
3 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/src/xrt/compositor/multi/comp_multi_compositor.c b/src/xrt/compositor/multi/comp_multi_compositor.c
index 1fc135ce4..25b64aca8 100644
index 33675d43f..71c5ebf9e 100644
--- a/src/xrt/compositor/multi/comp_multi_compositor.c
+++ b/src/xrt/compositor/multi/comp_multi_compositor.c
@@ -236,7 +236,21 @@ wait_for_scheduled_free(struct multi_compositor *mc)
@@ -36,10 +36,10 @@ index 1fc135ce4..25b64aca8 100644
static void *
diff --git a/src/xrt/compositor/multi/comp_multi_private.h b/src/xrt/compositor/multi/comp_multi_private.h
index 0e777f442..d39b8d76d 100644
index 6c7ec05f8..588878e38 100644
--- a/src/xrt/compositor/multi/comp_multi_private.h
+++ b/src/xrt/compositor/multi/comp_multi_private.h
@@ -364,6 +364,10 @@ struct multi_system_compositor
@@ -365,6 +365,10 @@ struct multi_system_compositor
*/
struct os_mutex list_and_timing_lock;
@@ -51,19 +51,19 @@ index 0e777f442..d39b8d76d 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 e673afcb0..cf07a2d1c 100644
index 5a4f35b81..cbda39c24 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -24,6 +24,8 @@
#include "util/u_trace_marker.h"
#include "util/u_distortion_mesh.h"
@@ -14,6 +14,8 @@
#include "xrt/xrt_defines.h"
#include "xrt/xrt_session.h"
+#include "math/m_api.h"
+
#ifdef XRT_OS_LINUX
#include "util/u_linux.h"
#endif
@@ -393,17 +395,24 @@ broadcast_timings_to_pacers(struct multi_system_compositor *msc,
#include "os/os_time.h"
#include "os/os_threading.h"
@@ -426,17 +428,24 @@ broadcast_timings_to_pacers(struct multi_system_compositor *msc,
}
static void
@@ -93,7 +93,7 @@ index e673afcb0..cf07a2d1c 100644
}
static void
@@ -530,10 +539,13 @@ multi_main_loop(struct multi_system_compositor *msc)
@@ -562,10 +571,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 e673afcb0..cf07a2d1c 100644
// Now we know the diff, broadcast to pacers.
broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns);
@@ -731,6 +743,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
@@ -785,6 +797,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 e673afcb0..cf07a2d1c 100644
free(msc);
}
@@ -788,6 +802,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
@@ -843,6 +857,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 e673afcb0..cf07a2d1c 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.53.0
2.54.0
@@ -1,4 +1,4 @@
From 8d323aae4c6436644e62a8e50f536672e09e7df1 Mon Sep 17 00:00:00 2001
From 22d9bf87e9dd6a0d5970258a6b6cd6ca82c3bb26 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
@@ -34,5 +34,5 @@ index a0bef3dde..453dd38ca 100644
// We may have been launched with socket activation
int num_fds = sd_listen_fds(0);
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From 021c00d87dc8a956984a255c651658f4b6f76cc6 Mon Sep 17 00:00:00 2001
From 3c7450d800b0e3f35440f41d3bfcf5b5abe6dfe8 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
@@ -8,10 +8,10 @@ Subject: [PATCH 3/8] 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 cf07a2d1c..417964770 100644
index cbda39c24..c0c6c9f60 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -233,23 +233,31 @@ find_active_blend_mode(struct multi_compositor **overlay_sorted_clients, size_t
@@ -231,23 +231,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 cf07a2d1c..417964770 100644
}
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From acd0e5bd5845f43fe443f70d54ae2df27bbec823 Mon Sep 17 00:00:00 2001
From b26876c29205f2d2fb07fbdbe009d5635eb32bfd 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
@@ -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 0d35fcb42..b54a8f048 100644
index b44271622..a1e112e89 100644
--- a/src/xrt/compositor/main/comp_compositor.c
+++ b/src/xrt/compositor/main/comp_compositor.c
@@ -380,7 +380,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display
@@ -391,7 +391,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
@@ -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.53.0
2.54.0
@@ -1,4 +1,4 @@
From f592eb8af17a15b8cd6a20c308ee0f254c88463f Mon Sep 17 00:00:00 2001
From 7230746571d1256d32557fd99528ac90a1d75957 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
@@ -8,10 +8,10 @@ Subject: [PATCH 5/8] 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 5c36e4e89..b77288bd0 100644
index 347d22068..d34d3331e 100644
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
@@ -956,7 +956,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
@@ -985,7 +985,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 5c36e4e89..b77288bd0 100644
}
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From e013455ead67f79e18afc5a6bbb453caae76dac9 Mon Sep 17 00:00:00 2001
From f400f0e63259bcadd9a7955ae0275caa5aea3ded 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
@@ -23,5 +23,5 @@ index 2bd3ea009..93659ba35 100644
action_context->X = path; \
interaction_profile_changed = true; \
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From 6834120e579093e2f2bfa0d4269a051e7047b9ee Mon Sep 17 00:00:00 2001
From 0832cc9a2ccd0f67b3bd3a11ec1b1d1398dfebda 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
@@ -29,5 +29,5 @@ index 8f35222cf..1418a8231 100644
}
--
2.53.0
2.54.0
@@ -1,4 +1,4 @@
From c28b6f2c536e1a0db93389f050cf61a506b286e4 Mon Sep 17 00:00:00 2001
From d79de5d82def9641484b8d88212d3c2e97e38734 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
@@ -8,7 +8,7 @@ Subject: [PATCH 8/8] 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 a30c3c5a6..983d44f04 100644
index 79646b181..21adcd446 100644
--- a/src/xrt/auxiliary/util/CMakeLists.txt
+++ b/src/xrt/auxiliary/util/CMakeLists.txt
@@ -10,11 +10,6 @@
@@ -23,7 +23,7 @@ index a30c3c5a6..983d44f04 100644
add_library(
aux_util STATIC
u_autoexpgain.c
@@ -116,7 +111,7 @@ add_library(
@@ -120,7 +115,7 @@ add_library(
u_worker.cpp
u_worker.h
u_worker.hpp
@@ -33,5 +33,5 @@ index a30c3c5a6..983d44f04 100644
target_link_libraries(
aux_util
--
2.53.0
2.54.0