From 443de59d73e6424234a2fc8993756b6b47258d9e Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 5 Aug 2025 13:36:27 +0200 Subject: [PATCH] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- ...001-c-multi-early-wake-of-compositor.patch | 2 +- ...02-ipc-server-Always-listen-to-stdin.patch | 2 +- .../monado/0003-Use-extern-socket-fd.patch | 2 +- ...Add-storage-usage-to-distortion-mesh.patch | 2 +- ...vironment-blend-mode-selection-logic.patch | 2 +- .../0006-Convert-to-YCbCr-in-Monado.patch | 32 +++++++++---------- .../0007-store-alpha-channel-in-layer-1.patch | 2 +- ...t-oxr-bind-to-dynamic-role-s-profile.patch | 2 +- ...main-allow-custom-pacing-app-factory.patch | 8 ++--- .../0010-st-oxr-forward-0-refresh-rate.patch | 2 +- ...tortion-with-pixel-aligned-foveation.patch | 2 +- 13 files changed, 31 insertions(+), 31 deletions(-) diff --git a/flake.nix b/flake.nix index 302d44fa..b6c921d2 100644 --- a/flake.nix +++ b/flake.nix @@ -40,7 +40,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-o3gh/8kDoRMfcC54TcaRWyvf1smyx8xVvn7ZssiqjF0="; + hash = "sha256-jKh9gx3lJQZtrgNqE5ghlGDKZr7WjxO0uhrBEOGPeh8="; }; }; diff --git a/monado-rev b/monado-rev index 1601391d..5f3f9a86 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -37fcdbb4d78549c27416922f131a8d6d6905465c +bc47ec56e1121c1bffe0c0e1b1ace24ecaaf66ec 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 7644e618..25db3a59 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 e9c8b10fe0f9d52c171a49474d5cd5b96d5456db Mon Sep 17 00:00:00 2001 +From 0fba9a2d609d8f7add5981e2148b907a96311429 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 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 2948ee8b..1fddb135 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 8f16a8ee15d2d553fb95ca7a317f1177fa8a42ae Mon Sep 17 00:00:00 2001 +From 1657cd2662ef1560a1e8af792237aba1983837e3 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 6ccc317e..f47b8a9c 100644 --- a/patches/monado/0003-Use-extern-socket-fd.patch +++ b/patches/monado/0003-Use-extern-socket-fd.patch @@ -1,4 +1,4 @@ -From 14ae1c3a6bb93a07918659177db1b22f33e5181a Mon Sep 17 00:00:00 2001 +From 7af983bfc40a8757517f5f2874a2f20d2c0d770d 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 00539e7a..b207d088 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 fbef8daefb312712f4f54254c80e84240b7b515f Mon Sep 17 00:00:00 2001 +From 2ad7fb8ce1d73aaac05b2a91293ebaf9ea82bb91 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 4bf5e220..e5d1a223 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 284c14f5b62f43404dd1f6c233693bed51ddae90 Mon Sep 17 00:00:00 2001 +From f6eceed56d41d550e772c928dc8b452592ccc904 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 diff --git a/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch b/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch index 3c4b770b..2a7127a6 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 851f5276b1cf1be5fccd3147e6b45e91de5ad053 Mon Sep 17 00:00:00 2001 +From a2cba2e362287fd7c7ad906ee8d5d8afb7449482 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 @@ -17,29 +17,29 @@ Subject: [PATCH 06/11] Convert to YCbCr in Monado 10 files changed, 184 insertions(+), 86 deletions(-) diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c -index f5227e02b..782ef0283 100644 +index c6f589466..0895ff694 100644 --- a/src/xrt/compositor/main/comp_renderer.c +++ b/src/xrt/compositor/main/comp_renderer.c -@@ -1081,7 +1081,8 @@ dispatch_compute(struct comp_renderer *r, +@@ -933,7 +933,8 @@ dispatch_compute(struct comp_renderer *r, // Target Vulkan resources.. VkImage target_image = r->c->target->images[r->acquired_buffer].handle; -- VkImageView target_image_view = r->c->target->images[r->acquired_buffer].view; -+ VkImageView target_image_view_y = r->c->target->images[r->acquired_buffer].view; -+ VkImageView target_image_view_cbcr = r->c->target->images[r->acquired_buffer].view_cbcr; +- VkImageView target_storage_view = r->c->target->images[r->acquired_buffer].view; ++ VkImageView target_storage_view_y = r->c->target->images[r->acquired_buffer].view; ++ VkImageView target_storage_view_cbcr = r->c->target->images[r->acquired_buffer].view_cbcr; // Target view information. - struct render_viewport_data views[XRT_MAX_VIEWS]; -@@ -1144,7 +1145,8 @@ dispatch_compute(struct comp_renderer *r, - comp_render_cs_add_target( // - &data, // data - target_image, // target_image -- target_image_view); // target_unorm_view -+ target_image_view_y, // target_unorm_view_y -+ target_image_view_cbcr); // target_unorm_view_cbcr + struct render_viewport_data target_viewport_datas[XRT_MAX_VIEWS]; +@@ -949,7 +950,8 @@ dispatch_compute(struct comp_renderer *r, + eye_poses, // + fovs, // + target_image, // +- target_storage_view, // ++ target_storage_view_y, // ++ target_storage_view_cbcr, // + target_viewport_datas); // - // Start the compute pipeline. - render_compute_begin(render); + // Everything is ready, submit to the queue. diff --git a/src/xrt/compositor/main/comp_target.h b/src/xrt/compositor/main/comp_target.h index 2122f46e7..53dcd631b 100644 --- a/src/xrt/compositor/main/comp_target.h 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 f3aba717..1aca5c0d 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 293e895f98e2ae8bd11acb63b42271d76a5b5427 Mon Sep 17 00:00:00 2001 +From 689cc6eca8ee06f53e10f7a9957a576060591526 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 499d4e87..52a18d0d 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 49fc1df97203114bc1421f8404bcba9a1df9c8b3 Mon Sep 17 00:00:00 2001 +From e5c9a00964c6dca082307338c4064e1f7dcbe010 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 df45684e..baa6345a 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 57c79e9f03cc99365d48cfebef84387a3c04a170 Mon Sep 17 00:00:00 2001 +From 46c341566c4763dbc391f184227e7f8018ca0abb 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 @@ -10,10 +10,10 @@ Subject: [PATCH 09/11] c/main: allow custom pacing app factory 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c -index ada9421df..f0017314f 100644 +index 819c2c8b3..a42d25869 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c -@@ -990,6 +990,7 @@ compositor_init_renderer(struct comp_compositor *c) +@@ -987,6 +987,7 @@ compositor_init_renderer(struct comp_compositor *c) xrt_result_t comp_main_create_system_compositor(struct xrt_device *xdev, const struct comp_target_factory *ctf, @@ -21,7 +21,7 @@ index ada9421df..f0017314f 100644 struct xrt_system_compositor **out_xsysc) { COMP_TRACE_MARKER(); -@@ -1190,10 +1191,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev, +@@ -1185,10 +1186,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev, } // Standard app pacer. 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 75a6b0f6..1b7cdc54 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 f335c0e9660ac37ea461d67c6ea048ec5795531a Mon Sep 17 00:00:00 2001 +From 98858578fdf31a9b4cab6e400bc0b9841f856370 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 a97565d6..cdfeaa23 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 0e1001f8a885140b239ce183c21171f5b1409e4b Mon Sep 17 00:00:00 2001 +From dffbea9f32efb942d591aa3b1e2a1ac2ca02d204 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