From 78d7fc40f2f6ed282191b1d4a918e2126fa13d7a Mon Sep 17 00:00:00 2001 From: Sapphire Date: Fri, 20 Mar 2026 00:53:18 -0500 Subject: [PATCH] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- ...001-c-multi-early-wake-of-compositor.patch | 4 +- .../monado/0002-Use-extern-socket-fd.patch | 2 +- ...vironment-blend-mode-selection-logic.patch | 2 +- .../0004-st-oxr-forward-0-refresh-rate.patch | 6 +-- ...05-Replace-distortion-with-foveation.patch | 2 +- ..._lh-prevent-crash-on-vive-pro2-WiVRn.patch | 2 +- ...entDataInteractionProfileChanged-whe.patch | 38 ++++--------------- ...08-Don-t-get-pose-data-in-compositor.patch | 2 +- .../monado/0009-don-t-verify-GL-stuff.patch | 2 +- 11 files changed, 21 insertions(+), 43 deletions(-) diff --git a/flake.nix b/flake.nix index 18f0cdca..c3f58b8f 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,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-aIHry5C30pZVIkB5fptJ0Ncbmg8EKf0M7evB4IJZEI0="; + hash = "sha256-II+jtlMrFsea6I69azABFiI92NjckxoXbenaw5+JnXE="; }; }; diff --git a/monado-rev b/monado-rev index 74481bea..9573b344 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -ee655a920cb4b50bafa2af2c92333a503e40cae6 +6d503d082fa31b5f3e53dfbe7a76bc8f72863efc diff --git a/patches/monado/0001-c-multi-early-wake-of-compositor.patch b/patches/monado/0001-c-multi-early-wake-of-compositor.patch index 487f061f..42e63340 100644 --- a/patches/monado/0001-c-multi-early-wake-of-compositor.patch +++ b/patches/monado/0001-c-multi-early-wake-of-compositor.patch @@ -1,4 +1,4 @@ -From 563f347bf4d59b4a82144e25c3be894a0cd17c8d Mon Sep 17 00:00:00 2001 +From 6317d6556f2510cc63aa5f71d86585830a38b2a1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 22 Oct 2024 15:23:19 +0200 Subject: [PATCH 1/9] c/multi: early wake of compositor @@ -10,7 +10,7 @@ Subject: [PATCH 1/9] 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 94cea110e..88347a092 100644 +index 1fc135ce4..25b64aca8 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) diff --git a/patches/monado/0002-Use-extern-socket-fd.patch b/patches/monado/0002-Use-extern-socket-fd.patch index 077363b3..2f73da74 100644 --- a/patches/monado/0002-Use-extern-socket-fd.patch +++ b/patches/monado/0002-Use-extern-socket-fd.patch @@ -1,4 +1,4 @@ -From 7d7c139b9ed03ec492256760c6acd1c7364c2e2a Mon Sep 17 00:00:00 2001 +From 71b4f13a8b7cb90edf83f75bef8459d2db66c386 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 8 Oct 2024 22:13:15 +0200 Subject: [PATCH 2/9] Use extern socket fd diff --git a/patches/monado/0003-change-environment-blend-mode-selection-logic.patch b/patches/monado/0003-change-environment-blend-mode-selection-logic.patch index 3e0450f2..435bebd3 100644 --- a/patches/monado/0003-change-environment-blend-mode-selection-logic.patch +++ b/patches/monado/0003-change-environment-blend-mode-selection-logic.patch @@ -1,4 +1,4 @@ -From 1328192bc28f312e728460d6c29ab150a9b655bd Mon Sep 17 00:00:00 2001 +From d3fc5ebb88a59ce5fc1120ed33de921eec03384f 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 diff --git a/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch b/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch index dd3a2967..e3bbdce6 100644 --- a/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch +++ b/patches/monado/0004-st-oxr-forward-0-refresh-rate.patch @@ -1,4 +1,4 @@ -From 18f87ff2f292e2f4cab8718601e6d5ba236a5013 Mon Sep 17 00:00:00 2001 +From 42e1e561a98f5c9fd6f757232bd4821124ae9bb3 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 15 Mar 2025 22:19:48 +0100 Subject: [PATCH 4/9] st/oxr: forward 0 refresh rate @@ -9,10 +9,10 @@ Subject: [PATCH 4/9] 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 b6c4947bf..0e8ed02b7 100644 +index 3364aaead..deec90a73 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c -@@ -372,7 +372,7 @@ compositor_request_display_refresh_rate(struct xrt_compositor *xc, float display +@@ -377,7 +377,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 diff --git a/patches/monado/0005-Replace-distortion-with-foveation.patch b/patches/monado/0005-Replace-distortion-with-foveation.patch index f35b0569..83d1d7e3 100644 --- a/patches/monado/0005-Replace-distortion-with-foveation.patch +++ b/patches/monado/0005-Replace-distortion-with-foveation.patch @@ -1,4 +1,4 @@ -From 8c322edfafa6179875bfe1dca1517c4043f0c5b4 Mon Sep 17 00:00:00 2001 +From 4b5685fc3177fd2f54996e0a87c1efe985db9c7b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 11 Sep 2024 22:56:29 +0200 Subject: [PATCH 5/9] Replace distortion with foveation diff --git a/patches/monado/0006-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch b/patches/monado/0006-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch index 076c45a3..b6107ea3 100644 --- a/patches/monado/0006-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch +++ b/patches/monado/0006-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch @@ -1,4 +1,4 @@ -From b9acd6d83db324c6f31572615fb6738a6f93d63c Mon Sep 17 00:00:00 2001 +From 5664ae214c09deb241507526e749f83f3a16298c Mon Sep 17 00:00:00 2001 From: no name Date: Sun, 28 Sep 2025 11:33:10 +0200 Subject: [PATCH 6/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn diff --git a/patches/monado/0007-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch b/patches/monado/0007-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch index 6447c583..5b5515b9 100644 --- a/patches/monado/0007-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch +++ b/patches/monado/0007-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch @@ -1,49 +1,27 @@ -From 8c6580e84690ffe8f082cdff5ead8443d1f6bf23 Mon Sep 17 00:00:00 2001 +From 4fdc8798f4810145c446fe147ae94e4c717b6b28 Mon Sep 17 00:00:00 2001 From: Sapphire Date: Fri, 7 Nov 2025 20:41:16 -0600 Subject: [PATCH 7/9] st/oxr: push XrEventDataInteractionProfileChanged when profile changes to NULL --- - src/xrt/state_trackers/oxr/actions/oxr_input.c | 15 +++++---------- - 1 file changed, 5 insertions(+), 10 deletions(-) + src/xrt/state_trackers/oxr/actions/oxr_input.c | 3 --- + 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 349c9adcb..667163142 100644 +index 269c6ec62..05a747f74 100644 --- a/src/xrt/state_trackers/oxr/actions/oxr_input.c +++ b/src/xrt/state_trackers/oxr/actions/oxr_input.c -@@ -1945,26 +1945,21 @@ oxr_session_update_action_bindings(struct oxr_logger *log, struct oxr_session *s - } - } - -- /* -- * This code will only send events (and update the bindings) if there -- * is a profile mapped to the subaction path. Meaning it won't update -- * the cache or generate events when a controller goes away, basically -- * latching the interaction profile to the last active device. -- */ -+ bool any_profile_changed = false; +@@ -1947,9 +1947,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; \ - if (path == XR_NULL_PATH) { \ - break; /* Only update on "active" interaction profiles per sub-action path. */ \ - } \ - if (sess->X != path) { \ - sess->X = path; \ -- oxr_event_push_XrEventDataInteractionProfileChanged(log, sess); \ -+ any_profile_changed = true; \ - } \ - } while (false); - OXR_FOR_EACH_VALID_SUBACTION_PATH(POPULATE_PROFILE) - #undef POPULATE_PROFILE - -+ if (any_profile_changed) { -+ oxr_event_push_XrEventDataInteractionProfileChanged(log, sess); -+ } - return oxr_session_success_result(sess); - } - + if (action_context->X != path) { \ + action_context->X = path; \ + interaction_profile_changed = true; \ -- 2.53.0 diff --git a/patches/monado/0008-Don-t-get-pose-data-in-compositor.patch b/patches/monado/0008-Don-t-get-pose-data-in-compositor.patch index 1d6eb084..f9e2eed1 100644 --- a/patches/monado/0008-Don-t-get-pose-data-in-compositor.patch +++ b/patches/monado/0008-Don-t-get-pose-data-in-compositor.patch @@ -1,4 +1,4 @@ -From 959707499b31f8db80f28492d1bfc01e34b23368 Mon Sep 17 00:00:00 2001 +From 025dcad51542cd6c23d9a6ad16cca982bf2fa5ca Mon Sep 17 00:00:00 2001 From: no name Date: Thu, 15 Jan 2026 12:13:06 +0100 Subject: [PATCH 8/9] Don't get pose data in compositor diff --git a/patches/monado/0009-don-t-verify-GL-stuff.patch b/patches/monado/0009-don-t-verify-GL-stuff.patch index d9e62ff7..f15a5228 100644 --- a/patches/monado/0009-don-t-verify-GL-stuff.patch +++ b/patches/monado/0009-don-t-verify-GL-stuff.patch @@ -1,4 +1,4 @@ -From 14e5d4a2f29b95f0f7933dbf2dde5000c0a98866 Mon Sep 17 00:00:00 2001 +From dfacf60061206ca6f41b8bc44e9cd7166230d77e Mon Sep 17 00:00:00 2001 From: no name Date: Sun, 25 Jan 2026 10:09:10 +0100 Subject: [PATCH 9/9] don't verify GL stuff