From e5fd6a69dc69a2d095f445f1bf51437bf509895b Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 7 Jun 2025 12:41:52 +0200 Subject: [PATCH] Update monado --- flake.nix | 2 +- monado-rev | 2 +- .../monado/0001-c-multi-early-wake-of-compositor.patch | 10 +++++----- .../0002-ipc-server-Always-listen-to-stdin.patch | 2 +- patches/monado/0003-Use-extern-socket-fd.patch | 2 +- ...c-render-Add-storage-usage-to-distortion-mesh.patch | 2 +- ...change-environment-blend-mode-selection-logic.patch | 4 ++-- patches/monado/0006-Convert-to-YCbCr-in-Monado.patch | 2 +- .../monado/0007-store-alpha-channel-in-layer-1.patch | 2 +- .../0008-st-oxr-bind-to-dynamic-role-s-profile.patch | 2 +- .../0009-c-main-allow-custom-pacing-app-factory.patch | 2 +- .../monado/0010-st-oxr-forward-0-refresh-rate.patch | 2 +- ...place-distortion-with-pixel-aligned-foveation.patch | 2 +- 13 files changed, 18 insertions(+), 18 deletions(-) diff --git a/flake.nix b/flake.nix index fbbd5071..67bd4600 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,7 @@ # Keep in sync with CMakeLists.txt monado rev rev = builtins.readFile ./monado-rev; # Nix will output the correct hash when it doesn't match - hash = "sha256-Bus9GTNC4+nOSwN8pUsMaFsiXjlpHYioQfBLxbQEF+0="; + hash = "sha256-KSHnJ+H/JdLFg/oFERDk+dXTJY44yUP04WHxa7xp6LY="; }; }; diff --git a/monado-rev b/monado-rev index f81195e6..26d0187f 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -f46d3cdefba6fa220a473fc3db7f24767d1b9f26 +9f9d26270ef5131f94adaecc4d6b87aebe50d841 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 e7a959aa..6bd0fb26 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 1fb49a24efe49e99776ff84bf72af4124b466b8c Mon Sep 17 00:00:00 2001 +From 4c22024929342b69b4a1c7d30334b994ea8c78c1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 22 Oct 2024 15:23:19 +0200 Subject: [PATCH 01/11] c/multi: early wake of compositor @@ -51,7 +51,7 @@ index 3351defa4..e8f0c8295 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 b06b03a58..249e07d7d 100644 +index a0bd04e08..9d7610d02 100644 --- a/src/xrt/compositor/multi/comp_multi_system.c +++ b/src/xrt/compositor/multi/comp_multi_system.c @@ -23,6 +23,8 @@ @@ -93,7 +93,7 @@ index b06b03a58..249e07d7d 100644 } static void -@@ -525,10 +534,13 @@ multi_main_loop(struct multi_system_compositor *msc) +@@ -526,10 +535,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 b06b03a58..249e07d7d 100644 // Now we know the diff, broadcast to pacers. broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns); -@@ -705,6 +717,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc) +@@ -706,6 +718,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 b06b03a58..249e07d7d 100644 free(msc); } -@@ -759,6 +773,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn, +@@ -760,6 +774,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn, msc->sessions.state = do_warm_start ? MULTI_SYSTEM_STATE_INIT_WARM_START : MULTI_SYSTEM_STATE_STOPPED; os_mutex_init(&msc->list_and_timing_lock); diff --git a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch index 223d012d..7b170603 100644 --- a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch +++ b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch @@ -1,4 +1,4 @@ -From 0bbc60f44d226a4da375bbca774ddb6804815ad9 Mon Sep 17 00:00:00 2001 +From dab0f39ec43bd1eb7d17d3bc32d1a2404cfa3702 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 2 Apr 2024 17:14:42 +0200 Subject: [PATCH 02/11] ipc/server: Always listen to stdin diff --git a/patches/monado/0003-Use-extern-socket-fd.patch b/patches/monado/0003-Use-extern-socket-fd.patch index a2dc1cb6..aa6a4f28 100644 --- a/patches/monado/0003-Use-extern-socket-fd.patch +++ b/patches/monado/0003-Use-extern-socket-fd.patch @@ -1,4 +1,4 @@ -From 32acb282e86e85c24c276a8b55d948b09fe77f13 Mon Sep 17 00:00:00 2001 +From 4abefae5f0c3bfbe959368d2708384e4cb503ef5 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 8 Oct 2024 22:13:15 +0200 Subject: [PATCH 03/11] Use extern socket fd diff --git a/patches/monado/0004-c-render-Add-storage-usage-to-distortion-mesh.patch b/patches/monado/0004-c-render-Add-storage-usage-to-distortion-mesh.patch index ad453507..bfd3f08d 100644 --- a/patches/monado/0004-c-render-Add-storage-usage-to-distortion-mesh.patch +++ b/patches/monado/0004-c-render-Add-storage-usage-to-distortion-mesh.patch @@ -1,4 +1,4 @@ -From e5f9b59f15df9e1902612bec6b038d435e42c5f1 Mon Sep 17 00:00:00 2001 +From da5a76a27abe3b9b44bc0dd432eb273c89cd4575 Mon Sep 17 00:00:00 2001 From: galister <3123227-galister@users.noreply.gitlab.com> Date: Mon, 19 Aug 2024 18:51:45 +0900 Subject: [PATCH 04/11] c/render: Add storage usage to distortion mesh diff --git a/patches/monado/0005-change-environment-blend-mode-selection-logic.patch b/patches/monado/0005-change-environment-blend-mode-selection-logic.patch index 34042bd7..386bea85 100644 --- a/patches/monado/0005-change-environment-blend-mode-selection-logic.patch +++ b/patches/monado/0005-change-environment-blend-mode-selection-logic.patch @@ -1,4 +1,4 @@ -From 158d65a9870dedee447e48b63edd7e5539499c30 Mon Sep 17 00:00:00 2001 +From 322b8b36d52afe7f5b57f5785c8b07bc37d315e8 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 05/11] change environment blend mode selection logic @@ -8,7 +8,7 @@ Subject: [PATCH 05/11] 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 249e07d7d..12c8fc455 100644 +index 9d7610d02..f3131e810 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 diff --git a/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch b/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch index faa8e6ee..12180fdb 100644 --- a/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch +++ b/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch @@ -1,4 +1,4 @@ -From 404e894924ea3aea43bcc8a810b452e03a8fb100 Mon Sep 17 00:00:00 2001 +From 52417118d51d284ab5c0cd3d2c9a93c487b66f5f Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 11 Sep 2024 22:56:29 +0200 Subject: [PATCH 06/11] Convert to YCbCr in Monado diff --git a/patches/monado/0007-store-alpha-channel-in-layer-1.patch b/patches/monado/0007-store-alpha-channel-in-layer-1.patch index 40f8ea96..3e98a8bf 100644 --- a/patches/monado/0007-store-alpha-channel-in-layer-1.patch +++ b/patches/monado/0007-store-alpha-channel-in-layer-1.patch @@ -1,4 +1,4 @@ -From 39d6494d479f4337dad4108f465d3b62c8f4bc88 Mon Sep 17 00:00:00 2001 +From 40c05c4cae8af77048580a83631aa51b0f48dfec Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 3 Nov 2024 13:40:00 +0100 Subject: [PATCH 07/11] store alpha channel in layer 1 diff --git a/patches/monado/0008-st-oxr-bind-to-dynamic-role-s-profile.patch b/patches/monado/0008-st-oxr-bind-to-dynamic-role-s-profile.patch index ba0bfcae..4585bbb3 100644 --- a/patches/monado/0008-st-oxr-bind-to-dynamic-role-s-profile.patch +++ b/patches/monado/0008-st-oxr-bind-to-dynamic-role-s-profile.patch @@ -1,4 +1,4 @@ -From cbd5dcee4a70e265853c40f5517a7700c521d813 Mon Sep 17 00:00:00 2001 +From e92fb94901fc652bde712af1e90c14237ea26f8f Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Wed, 19 Feb 2025 10:13:36 +0100 Subject: [PATCH 08/11] st/oxr: bind to dynamic role's profile diff --git a/patches/monado/0009-c-main-allow-custom-pacing-app-factory.patch b/patches/monado/0009-c-main-allow-custom-pacing-app-factory.patch index 4b8172f2..f54e5557 100644 --- a/patches/monado/0009-c-main-allow-custom-pacing-app-factory.patch +++ b/patches/monado/0009-c-main-allow-custom-pacing-app-factory.patch @@ -1,4 +1,4 @@ -From b6289de166fc95aea2b350ddb8f3c3ddaacefd99 Mon Sep 17 00:00:00 2001 +From 685e9804eb0abe3fcd6da67ffbc180db35ca4e1d Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Thu, 27 Feb 2025 22:45:36 +0100 Subject: [PATCH 09/11] c/main: allow custom pacing app factory diff --git a/patches/monado/0010-st-oxr-forward-0-refresh-rate.patch b/patches/monado/0010-st-oxr-forward-0-refresh-rate.patch index 9fa50e79..dd1ed8c2 100644 --- a/patches/monado/0010-st-oxr-forward-0-refresh-rate.patch +++ b/patches/monado/0010-st-oxr-forward-0-refresh-rate.patch @@ -1,4 +1,4 @@ -From bcd94f8cdb871a34f16cb236d59734701b125612 Mon Sep 17 00:00:00 2001 +From cbb5662aacc68f28e6628c9fda86a156b08d63a9 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 15 Mar 2025 22:19:48 +0100 Subject: [PATCH 10/11] st/oxr: forward 0 refresh rate diff --git a/patches/monado/0011-Replace-distortion-with-pixel-aligned-foveation.patch b/patches/monado/0011-Replace-distortion-with-pixel-aligned-foveation.patch index 2e612c30..78594608 100644 --- a/patches/monado/0011-Replace-distortion-with-pixel-aligned-foveation.patch +++ b/patches/monado/0011-Replace-distortion-with-pixel-aligned-foveation.patch @@ -1,4 +1,4 @@ -From 223392cfd24edfd937335279b7fb505dcd0c03a0 Mon Sep 17 00:00:00 2001 +From b659d6c6034b8714a014fc6a5819bb2556c6f0bb Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 2 Jun 2025 14:51:11 +0200 Subject: [PATCH 11/11] Replace distortion with pixel-aligned foveation