From 2c65b43969c77a59f9727146952b7d8cfd074948 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 5 Aug 2025 13:24:30 +0200 Subject: [PATCH 1/7] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- ...001-c-multi-early-wake-of-compositor.patch | 8 +-- ...02-ipc-server-Always-listen-to-stdin.patch | 4 +- .../monado/0003-Use-extern-socket-fd.patch | 4 +- ...Add-storage-usage-to-distortion-mesh.patch | 4 +- ...vironment-blend-mode-selection-logic.patch | 4 +- .../0006-Convert-to-YCbCr-in-Monado.patch | 56 +++++++++---------- .../0007-store-alpha-channel-in-layer-1.patch | 4 +- ...t-oxr-bind-to-dynamic-role-s-profile.patch | 2 +- ...main-allow-custom-pacing-app-factory.patch | 10 ++-- .../0010-st-oxr-forward-0-refresh-rate.patch | 4 +- ...tortion-with-pixel-aligned-foveation.patch | 6 +- 13 files changed, 54 insertions(+), 56 deletions(-) diff --git a/flake.nix b/flake.nix index dde66d16..e490c997 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-BiqNLYTQseymHgkZ3RLHOesxi6qaf4L0j8dgpgaG7LI="; + hash = "sha256-9t+v3+i5lD7eBapDQ1VE5q/3DG+UPpmibNvXzfTu8do="; }; }; diff --git a/monado-rev b/monado-rev index 800d79e2..0adfe2a2 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -2bf7f5c14b947ab3528e37551eb49753fe982dcb +ea9fff0517614ecbd21f2c918c0496cc025d218c 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 6d59f358..1e4a784f 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 20aa4cc8fd841df0498a3ea34cccbe475db5b800 Mon Sep 17 00:00:00 2001 +From 98c30d9d240c7763b829bace57203e1cd4ab869d 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 @@ -10,10 +10,10 @@ Subject: [PATCH 01/11] 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 d19eda4ff..b9fcd0ca6 100644 +index 553565db4..789a2d042 100644 --- a/src/xrt/compositor/multi/comp_multi_compositor.c +++ b/src/xrt/compositor/multi/comp_multi_compositor.c -@@ -231,7 +231,21 @@ wait_for_scheduled_free(struct multi_compositor *mc) +@@ -232,7 +232,21 @@ wait_for_scheduled_free(struct multi_compositor *mc) os_mutex_lock(&mc->slot_lock); slot_move_and_clear_locked(mc, &mc->scheduled, &mc->progress); os_mutex_unlock(&mc->slot_lock); @@ -128,5 +128,5 @@ index a0bd04e08..9d7610d02 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.50.0 +2.50.1 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 01c8f297..0a18b010 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 328076ce8b74e32e6e41c3a53de3e000a43720a4 Mon Sep 17 00:00:00 2001 +From 006c23e5c59dba924d716f482ea13964ba5ea906 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 @@ -21,5 +21,5 @@ index d364fbed3..ad6b473b7 100644 // default. // This polls stdin. -- -2.50.0 +2.50.1 diff --git a/patches/monado/0003-Use-extern-socket-fd.patch b/patches/monado/0003-Use-extern-socket-fd.patch index e7f27e2c..34a4dae7 100644 --- a/patches/monado/0003-Use-extern-socket-fd.patch +++ b/patches/monado/0003-Use-extern-socket-fd.patch @@ -1,4 +1,4 @@ -From e1c5cdf2de5f1ef5c9556004ffc44a75e0fadc10 Mon Sep 17 00:00:00 2001 +From 35d4d3a774ca65f883aad708de1591e5e142ab43 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 @@ -34,5 +34,5 @@ index ad6b473b7..ea6fad65b 100644 // We may have been launched with socket activation int num_fds = sd_listen_fds(0); -- -2.50.0 +2.50.1 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 040c2b6c..d6e81359 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 8aa74c49f98d57c44c7ee9ad4bfa30c91aae8e67 Mon Sep 17 00:00:00 2001 +From 3a9aec50d2487b873562304406e520107a546189 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 @@ -21,5 +21,5 @@ index 8ac24db8e..5a7e400c3 100644 &image); // out_image VK_CHK_AND_RET(ret, "vk_create_image_simple"); -- -2.50.0 +2.50.1 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 fb014060..657359c1 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 6e97c25c737f0eb2fda9683caf9d38be66ea5aa9 Mon Sep 17 00:00:00 2001 +From 847328febed05f01d6cd55fea1cb6fd9e89ead6c 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 @@ -53,5 +53,5 @@ index 9d7610d02..f3131e810 100644 } -- -2.50.0 +2.50.1 diff --git a/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch b/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch index 0bc80fca..f2918f30 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 a8d3eae0afd8b61aacc18824982c5b6066b5e4d6 Mon Sep 17 00:00:00 2001 +From 5fcfe965429f8c49b2b77f365de44935d4573a0c 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 @@ -10,15 +10,15 @@ Subject: [PATCH 06/11] Convert to YCbCr in Monado src/xrt/compositor/render/render_interface.h | 15 ++- src/xrt/compositor/render/render_resources.c | 35 +++++-- src/xrt/compositor/shaders/distortion.comp | 62 +++++++---- - src/xrt/compositor/util/comp_render.h | 12 ++- + src/xrt/compositor/util/comp_render.h | 11 +- src/xrt/compositor/util/comp_render_cs.c | 19 ++-- - 8 files changed, 175 insertions(+), 81 deletions(-) + 8 files changed, 174 insertions(+), 81 deletions(-) diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c -index 06d1cb72a..80678b9f1 100644 +index f5227e02b..782ef0283 100644 --- a/src/xrt/compositor/main/comp_renderer.c +++ b/src/xrt/compositor/main/comp_renderer.c -@@ -1022,7 +1022,8 @@ dispatch_compute(struct comp_renderer *r, +@@ -1081,7 +1081,8 @@ dispatch_compute(struct comp_renderer *r, // Target Vulkan resources.. VkImage target_image = r->c->target->images[r->acquired_buffer].handle; @@ -28,18 +28,18 @@ index 06d1cb72a..80678b9f1 100644 // Target view information. struct render_viewport_data views[XRT_MAX_VIEWS]; -@@ -1033,7 +1034,8 @@ dispatch_compute(struct comp_renderer *r, - comp_render_cs_initial_init( // - &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 - fast_path, // fast_path - do_timewarp); // do_timewarp +@@ -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 + // Start the compute pipeline. + render_compute_begin(render); diff --git a/src/xrt/compositor/main/comp_target.h b/src/xrt/compositor/main/comp_target.h -index 143d41639..98301d596 100644 +index 2122f46e7..53dcd631b 100644 --- a/src/xrt/compositor/main/comp_target.h +++ b/src/xrt/compositor/main/comp_target.h @@ -62,7 +62,8 @@ enum comp_target_display_timing_usage @@ -584,10 +584,10 @@ index 08b44d4cf..e1dd1cb58 100644 + imageStore(chroma, ivec2(offset.xy/2 + gl_GlobalInvocationID.xy), vec4(cbcr.x, cbcr.y, 0, 0)); } diff --git a/src/xrt/compositor/util/comp_render.h b/src/xrt/compositor/util/comp_render.h -index 0afe87393..550c014a0 100644 +index 334464256..f4a9140a2 100644 --- a/src/xrt/compositor/util/comp_render.h +++ b/src/xrt/compositor/util/comp_render.h -@@ -189,7 +189,8 @@ struct comp_render_dispatch_data +@@ -202,7 +202,8 @@ struct comp_render_dispatch_data VkImage image; //! Target image view for distortion. @@ -597,17 +597,15 @@ index 0afe87393..550c014a0 100644 } cs; } target; }; -@@ -465,7 +466,8 @@ comp_render_gfx_dispatch(struct render_gfx *render, +@@ -503,14 +504,15 @@ comp_render_gfx_dispatch(struct render_gfx *render, + * @param target_storage_view Corresponding image view + */ static inline void - comp_render_cs_initial_init(struct comp_render_dispatch_data *data, - VkImage target_image, -- VkImageView target_storage_view, -+ VkImageView target_storage_view_y, -+ VkImageView target_storage_view_cbcr, - bool fast_path, - bool do_timewarp) +-comp_render_cs_add_target(struct comp_render_dispatch_data *data, VkImage target_image, VkImageView target_storage_view) ++comp_render_cs_add_target(struct comp_render_dispatch_data *data, VkImage target_image, VkImageView target_storage_view_y, VkImageView target_storage_view_cbcr) { -@@ -476,7 +478,8 @@ comp_render_cs_initial_init(struct comp_render_dispatch_data *data, + // Error tracking. + data->target.initialized = true; // When writing into the target. data->target.cs.image = target_image; @@ -617,7 +615,7 @@ index 0afe87393..550c014a0 100644 } /*! -@@ -565,7 +568,8 @@ comp_render_cs_layer(struct render_compute *render, +@@ -607,7 +609,8 @@ comp_render_cs_layer(struct render_compute *render, const struct xrt_pose *world_pose, const struct xrt_pose *eye_pose, const VkImage target_image, @@ -628,7 +626,7 @@ index 0afe87393..550c014a0 100644 bool do_timewarp); diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c -index d9d9ea8a4..29c645bff 100644 +index 4e20b32f0..b2d3ce10d 100644 --- a/src/xrt/compositor/util/comp_render_cs.c +++ b/src/xrt/compositor/util/comp_render_cs.c @@ -347,7 +347,8 @@ crc_clear_output(struct render_compute *render, const struct comp_render_dispatc @@ -700,5 +698,5 @@ index d9d9ea8a4..29c645bff 100644 d->do_timewarp); // } -- -2.50.0 +2.50.1 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 dee47064..ae0370e1 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 9d54ac2408a56556529de2f9173ffcd3d5775bd1 Mon Sep 17 00:00:00 2001 +From a548af96b22969a85e75454d7d136a4cdbd46f36 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 @@ -90,5 +90,5 @@ index e1dd1cb58..9ce46fe6f 100644 + imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha); } -- -2.50.0 +2.50.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 74754df4..556fbb51 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 a7fbfaf2407a805efa31b3e1a7f0565b46a9004e Mon Sep 17 00:00:00 2001 +From 35c2915478e736fa1013160fd320401a2a947535 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 ee2ebe44..7c00efd3 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 8779248b08863b7a7dda3f9822cb9037372cbd3e Mon Sep 17 00:00:00 2001 +From 0616565306836fa24c1a5c92fe7742a060f411f9 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 eecb14c17..24d061627 100644 +index ada9421df..f0017314f 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c -@@ -984,6 +984,7 @@ compositor_init_renderer(struct comp_compositor *c) +@@ -990,6 +990,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 eecb14c17..24d061627 100644 struct xrt_system_compositor **out_xsysc) { COMP_TRACE_MARKER(); -@@ -1184,10 +1185,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev, +@@ -1190,10 +1191,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev, } // Standard app pacer. @@ -78,5 +78,5 @@ index 617561c37..e10ba8358 100644 #else if (!use_null) { -- -2.50.0 +2.50.1 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 c0bffc25..324753e6 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 723732637613edd61b51039544ec69eaaddb8a69 Mon Sep 17 00:00:00 2001 +From e7282236100a88cbdc3f606f1acab6eb51831d77 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 @@ -29,5 +29,5 @@ index b3dac8c8a..27d80be9a 100644 if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) { found = true; -- -2.50.0 +2.50.1 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 1f7d31ff..53538d71 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 89d5e71f70d70958e8c03a038ab4bc0fc262a455 Mon Sep 17 00:00:00 2001 +From 6888508cb1ba85ffc23623c76bd479d1e5ab23a6 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 @@ -652,7 +652,7 @@ index 9ce46fe6f..f3be617bd 100644 - imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha); } diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c -index 29c645bff..322b0f761 100644 +index b2d3ce10d..69429dc97 100644 --- a/src/xrt/compositor/util/comp_render_cs.c +++ b/src/xrt/compositor/util/comp_render_cs.c @@ -466,30 +466,15 @@ crc_distortion_fast_path(struct render_compute *render, @@ -696,5 +696,5 @@ index 29c645bff..322b0f761 100644 -- -2.50.0 +2.50.1 From 81abdfee3e49b51b6dfe8648a98bbe32c2d456b0 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 5 Aug 2025 13:31:45 +0200 Subject: [PATCH 2/7] 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 | 79 ++++++++++++++++--- .../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 | 2 +- .../0010-st-oxr-forward-0-refresh-rate.patch | 2 +- ...tortion-with-pixel-aligned-foveation.patch | 4 +- 13 files changed, 82 insertions(+), 23 deletions(-) diff --git a/flake.nix b/flake.nix index e490c997..302d44fa 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-9t+v3+i5lD7eBapDQ1VE5q/3DG+UPpmibNvXzfTu8do="; + hash = "sha256-o3gh/8kDoRMfcC54TcaRWyvf1smyx8xVvn7ZssiqjF0="; }; }; diff --git a/monado-rev b/monado-rev index 0adfe2a2..1601391d 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -ea9fff0517614ecbd21f2c918c0496cc025d218c +37fcdbb4d78549c27416922f131a8d6d6905465c 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 1e4a784f..7644e618 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 98c30d9d240c7763b829bace57203e1cd4ab869d Mon Sep 17 00:00:00 2001 +From e9c8b10fe0f9d52c171a49474d5cd5b96d5456db 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 0a18b010..2948ee8b 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 006c23e5c59dba924d716f482ea13964ba5ea906 Mon Sep 17 00:00:00 2001 +From 8f16a8ee15d2d553fb95ca7a317f1177fa8a42ae 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 34a4dae7..6ccc317e 100644 --- a/patches/monado/0003-Use-extern-socket-fd.patch +++ b/patches/monado/0003-Use-extern-socket-fd.patch @@ -1,4 +1,4 @@ -From 35d4d3a774ca65f883aad708de1591e5e142ab43 Mon Sep 17 00:00:00 2001 +From 14ae1c3a6bb93a07918659177db1b22f33e5181a 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 d6e81359..00539e7a 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 3a9aec50d2487b873562304406e520107a546189 Mon Sep 17 00:00:00 2001 +From fbef8daefb312712f4f54254c80e84240b7b515f 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 657359c1..4bf5e220 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 847328febed05f01d6cd55fea1cb6fd9e89ead6c Mon Sep 17 00:00:00 2001 +From 284c14f5b62f43404dd1f6c233693bed51ddae90 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 f2918f30..3c4b770b 100644 --- a/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch +++ b/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch @@ -1,18 +1,20 @@ -From 5fcfe965429f8c49b2b77f365de44935d4573a0c Mon Sep 17 00:00:00 2001 +From 851f5276b1cf1be5fccd3147e6b45e91de5ad053 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 --- - src/xrt/compositor/main/comp_renderer.c | 6 +- - src/xrt/compositor/main/comp_target.h | 3 +- - src/xrt/compositor/render/render_compute.c | 104 +++++++++++++------ - src/xrt/compositor/render/render_interface.h | 15 ++- - src/xrt/compositor/render/render_resources.c | 35 +++++-- - src/xrt/compositor/shaders/distortion.comp | 62 +++++++---- - src/xrt/compositor/util/comp_render.h | 11 +- - src/xrt/compositor/util/comp_render_cs.c | 19 ++-- - 8 files changed, 174 insertions(+), 81 deletions(-) + src/xrt/compositor/main/comp_renderer.c | 6 +- + src/xrt/compositor/main/comp_target.h | 3 +- + src/xrt/compositor/render/render_compute.c | 104 ++++++++++++------ + src/xrt/compositor/render/render_interface.h | 15 ++- + src/xrt/compositor/render/render_resources.c | 35 ++++-- + src/xrt/compositor/shaders/distortion.comp | 62 +++++++---- + .../compositor/util/comp_high_level_render.c | 6 +- + .../compositor/util/comp_high_level_render.h | 9 +- + src/xrt/compositor/util/comp_render.h | 11 +- + src/xrt/compositor/util/comp_render_cs.c | 19 +++- + 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 @@ -583,6 +585,63 @@ index 08b44d4cf..e1dd1cb58 100644 + vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5); + imageStore(chroma, ivec2(offset.xy/2 + gl_GlobalInvocationID.xy), vec4(cbcr.x, cbcr.y, 0, 0)); } +diff --git a/src/xrt/compositor/util/comp_high_level_render.c b/src/xrt/compositor/util/comp_high_level_render.c +index f1c9aa145..2e5e048a5 100644 +--- a/src/xrt/compositor/util/comp_high_level_render.c ++++ b/src/xrt/compositor/util/comp_high_level_render.c +@@ -192,14 +192,16 @@ chl_frame_state_cs_set_views(struct chl_frame_state *frame_state, + void + chl_frame_state_cs_set_target(struct chl_frame_state *frame_state, + VkImage target_image, +- VkImageView target_storage_view, ++ VkImageView target_storage_view_y, ++ VkImageView target_storage_view_cbcr, + const struct render_viewport_data views[XRT_MAX_VIEWS]) + { + // Add the target info. + comp_render_cs_add_target( // + &frame_state->data, // data + target_image, // target_image +- target_storage_view); // target_unorm_view ++ target_storage_view_y, ++ target_storage_view_cbcr); // target_unorm_view + + for (uint32_t i = 0; i < frame_state->view_count; i++) { + // Which image of the scratch images for this view are we using. +diff --git a/src/xrt/compositor/util/comp_high_level_render.h b/src/xrt/compositor/util/comp_high_level_render.h +index 46edfd669..ba5f3f45f 100644 +--- a/src/xrt/compositor/util/comp_high_level_render.h ++++ b/src/xrt/compositor/util/comp_high_level_render.h +@@ -187,7 +187,8 @@ chl_frame_state_cs_set_views(struct chl_frame_state *frame_state, + void + chl_frame_state_cs_set_target(struct chl_frame_state *frame_state, + VkImage target_image, +- VkImageView target_storage_view, ++ VkImageView target_storage_view_y, ++ VkImageView target_storage_view_cbcr, + const struct render_viewport_data views[XRT_MAX_VIEWS]); + + /*! +@@ -204,7 +205,8 @@ chl_frame_state_cs_default_pipeline(struct chl_frame_state *frame_state, + const struct xrt_pose eye_poses[XRT_MAX_VIEWS], + const struct xrt_fov fovs[XRT_MAX_VIEWS], + VkImage target_image, +- VkImageView target_storage_view, ++ VkImageView target_storage_view_y, ++ VkImageView target_storage_view_cbcr, + const struct render_viewport_data target_viewport_datas[XRT_MAX_VIEWS]) + { + chl_frame_state_cs_set_views( // +@@ -217,7 +219,8 @@ chl_frame_state_cs_default_pipeline(struct chl_frame_state *frame_state, + chl_frame_state_cs_set_target( // + frame_state, // + target_image, // +- target_storage_view, // ++ target_storage_view_y, // ++ target_storage_view_cbcr, // + target_viewport_datas); // + + // Start the compute pipeline. diff --git a/src/xrt/compositor/util/comp_render.h b/src/xrt/compositor/util/comp_render.h index 334464256..f4a9140a2 100644 --- a/src/xrt/compositor/util/comp_render.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 ae0370e1..f3aba717 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 a548af96b22969a85e75454d7d136a4cdbd46f36 Mon Sep 17 00:00:00 2001 +From 293e895f98e2ae8bd11acb63b42271d76a5b5427 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 556fbb51..499d4e87 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 35c2915478e736fa1013160fd320401a2a947535 Mon Sep 17 00:00:00 2001 +From 49fc1df97203114bc1421f8404bcba9a1df9c8b3 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 7c00efd3..df45684e 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 0616565306836fa24c1a5c92fe7742a060f411f9 Mon Sep 17 00:00:00 2001 +From 57c79e9f03cc99365d48cfebef84387a3c04a170 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 324753e6..75a6b0f6 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 e7282236100a88cbdc3f606f1acab6eb51831d77 Mon Sep 17 00:00:00 2001 +From f335c0e9660ac37ea461d67c6ea048ec5795531a 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 53538d71..a97565d6 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 6888508cb1ba85ffc23623c76bd479d1e5ab23a6 Mon Sep 17 00:00:00 2001 +From 0e1001f8a885140b239ce183c21171f5b1409e4b 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 @@ -13,7 +13,7 @@ Subject: [PATCH 11/11] Replace distortion with pixel-aligned foveation 6 files changed, 76 insertions(+), 378 deletions(-) diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt -index 46834bde8..e76c69dd0 100644 +index 1ba5ec438..f1defe77a 100644 --- a/src/xrt/compositor/CMakeLists.txt +++ b/src/xrt/compositor/CMakeLists.txt @@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN) From 443de59d73e6424234a2fc8993756b6b47258d9e Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 5 Aug 2025 13:36:27 +0200 Subject: [PATCH 3/7] 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 From 89c5921fc8b1e5c3a1065f1bf2cd5dce677a6f60 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 5 Aug 2025 13:42:49 +0200 Subject: [PATCH 4/7] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- server/driver/wivrn_controller.cpp | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index b6c921d2..ed598c23 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-jKh9gx3lJQZtrgNqE5ghlGDKZr7WjxO0uhrBEOGPeh8="; + hash = "sha256-QscyxJ0XtWDtyKUIEiM0iVJLTfO1QjiSr5c94FGjai4="; }; }; diff --git a/monado-rev b/monado-rev index 5f3f9a86..bb59f4d2 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -bc47ec56e1121c1bffe0c0e1b1ace24ecaaf66ec +74725a28889677be718991c0f135a43c7573bc78 diff --git a/server/driver/wivrn_controller.cpp b/server/driver/wivrn_controller.cpp index 29578bd8..f5f6633f 100644 --- a/server/driver/wivrn_controller.cpp +++ b/server/driver/wivrn_controller.cpp @@ -604,7 +604,8 @@ wivrn_controller::wivrn_controller(int hand_id, if (hand_id == 0) { - SET_INPUT(GENERIC, HAND_TRACKING_LEFT); + inputs[WIVRN_CONTROLLER_HAND_TRACKING_LEFT].name = XRT_INPUT_HT_UNOBSTRUCTED_LEFT; + inputs[WIVRN_CONTROLLER_HAND_TRACKING_LEFT].active = true; SET_INPUT(TOUCH, MENU_CLICK); SET_INPUT(TOUCH, X_CLICK); SET_INPUT(TOUCH, Y_CLICK); @@ -613,7 +614,8 @@ wivrn_controller::wivrn_controller(int hand_id, } else { - SET_INPUT(GENERIC, HAND_TRACKING_RIGHT); + inputs[WIVRN_CONTROLLER_HAND_TRACKING_RIGHT].name = XRT_INPUT_HT_UNOBSTRUCTED_RIGHT; + inputs[WIVRN_CONTROLLER_HAND_TRACKING_RIGHT].active = true; SET_INPUT(TOUCH, SYSTEM_CLICK); SET_INPUT(TOUCH, A_CLICK); SET_INPUT(TOUCH, B_CLICK); @@ -786,8 +788,8 @@ xrt_result_t wivrn_controller::get_hand_tracking(xrt_input_name name, int64_t de { switch (name) { - case XRT_INPUT_GENERIC_HAND_TRACKING_LEFT: - case XRT_INPUT_GENERIC_HAND_TRACKING_RIGHT: { + case XRT_INPUT_HT_UNOBSTRUCTED_LEFT: + case XRT_INPUT_HT_UNOBSTRUCTED_RIGHT: { *out_timestamp_ns = desired_timestamp_ns; std::chrono::nanoseconds extrapolation_time; std::tie(extrapolation_time, *out_value) = joints.get_at(desired_timestamp_ns); From d624f74f83ae81c2bfe35e2b56c0b160e9827a06 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 5 Aug 2025 13:46:19 +0200 Subject: [PATCH 5/7] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- server/driver/wivrn_session.cpp | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index ed598c23..63aa2d46 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-QscyxJ0XtWDtyKUIEiM0iVJLTfO1QjiSr5c94FGjai4="; + hash = "sha256-zYvfQmGLRpKEHRih0DPduLRgjSrxeaEGVNEER+OoV0Y="; }; }; diff --git a/monado-rev b/monado-rev index bb59f4d2..2f642bed 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -74725a28889677be718991c0f135a43c7573bc78 +105abaa0030167bf2f7fc635efa74698083cb2f8 diff --git a/server/driver/wivrn_session.cpp b/server/driver/wivrn_session.cpp index b822b315..b5ae4186 100644 --- a/server/driver/wivrn_session.cpp +++ b/server/driver/wivrn_session.cpp @@ -177,11 +177,11 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection static_roles.face = &hmd; roles.left = left_controller_index = xdev_count++; - static_roles.hand_tracking.left = xdevs[left_controller_index] = &left_controller; + static_roles.hand_tracking.unobstructed.left = xdevs[left_controller_index] = &left_controller; xdevs[left_hand_interaction_index = xdev_count++] = &left_hand_interaction; roles.right = right_controller_index = xdev_count++; - static_roles.hand_tracking.right = xdevs[right_controller_index] = &right_controller; + static_roles.hand_tracking.unobstructed.right = xdevs[right_controller_index] = &right_controller; xdevs[right_hand_interaction_index = xdev_count++] = &right_hand_interaction; #if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE @@ -197,11 +197,11 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr connection { case XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER: roles.left = xdev_count; - static_roles.hand_tracking.left = lhdev; + static_roles.hand_tracking.unobstructed.left = lhdev; // FIXME: certainly wrong break; case XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER: roles.right = xdev_count; - static_roles.hand_tracking.right = lhdev; + static_roles.hand_tracking.unobstructed.right = lhdev; // FIXME: certainly wrong break; default: break; From 677d303d433c2af0c5f94abe5de24d6d1be32c47 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 5 Aug 2025 13:49:51 +0200 Subject: [PATCH 6/7] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- ...001-c-multi-early-wake-of-compositor.patch | 12 +-- ...02-ipc-server-Always-listen-to-stdin.patch | 4 +- .../monado/0003-Use-extern-socket-fd.patch | 4 +- ...Add-storage-usage-to-distortion-mesh.patch | 4 +- ...vironment-blend-mode-selection-logic.patch | 6 +- .../0006-Convert-to-YCbCr-in-Monado.patch | 4 +- .../0007-store-alpha-channel-in-layer-1.patch | 4 +- ...ain-allow-custom-pacing-app-factory.patch} | 4 +- ...t-oxr-bind-to-dynamic-role-s-profile.patch | 91 ------------------- ... 0009-st-oxr-forward-0-refresh-rate.patch} | 8 +- ...ortion-with-pixel-aligned-foveation.patch} | 4 +- 13 files changed, 29 insertions(+), 120 deletions(-) rename patches/monado/{0009-c-main-allow-custom-pacing-app-factory.patch => 0008-c-main-allow-custom-pacing-app-factory.patch} (96%) delete mode 100644 patches/monado/0008-st-oxr-bind-to-dynamic-role-s-profile.patch rename patches/monado/{0010-st-oxr-forward-0-refresh-rate.patch => 0009-st-oxr-forward-0-refresh-rate.patch} (83%) rename patches/monado/{0011-Replace-distortion-with-pixel-aligned-foveation.patch => 0010-Replace-distortion-with-pixel-aligned-foveation.patch} (99%) diff --git a/flake.nix b/flake.nix index 63aa2d46..aaf72fe2 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-zYvfQmGLRpKEHRih0DPduLRgjSrxeaEGVNEER+OoV0Y="; + hash = "sha256-V0sLap5Y6U2Zu4OYN9/0cunKHOPCXNiLN2aj9R6I8gw="; }; }; diff --git a/monado-rev b/monado-rev index 2f642bed..57cda024 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -105abaa0030167bf2f7fc635efa74698083cb2f8 +6e4b8c097c32884951828d2ebbe41a3b2fe3ccbe 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 25db3a59..ee810261 100644 --- a/patches/monado/0001-c-multi-early-wake-of-compositor.patch +++ b/patches/monado/0001-c-multi-early-wake-of-compositor.patch @@ -1,7 +1,7 @@ -From 0fba9a2d609d8f7add5981e2148b907a96311429 Mon Sep 17 00:00:00 2001 +From 18e184e504d9f55dbba3f02c87f96410b2ce04ab 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 +Subject: [PATCH 01/10] c/multi: early wake of compositor --- .../compositor/multi/comp_multi_compositor.c | 14 +++++++++ @@ -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 a0bd04e08..9d7610d02 100644 +index be763d1c1..22c801f65 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 a0bd04e08..9d7610d02 100644 } static void -@@ -526,10 +535,13 @@ multi_main_loop(struct multi_system_compositor *msc) +@@ -527,10 +536,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 a0bd04e08..9d7610d02 100644 // Now we know the diff, broadcast to pacers. broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns); -@@ -706,6 +718,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc) +@@ -707,6 +719,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 a0bd04e08..9d7610d02 100644 free(msc); } -@@ -760,6 +774,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn, +@@ -761,6 +775,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 1fddb135..ef9c355d 100644 --- a/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch +++ b/patches/monado/0002-ipc-server-Always-listen-to-stdin.patch @@ -1,7 +1,7 @@ -From 1657cd2662ef1560a1e8af792237aba1983837e3 Mon Sep 17 00:00:00 2001 +From b31b5aa4e7e890ae079ae2953a1ce3fc2e47b954 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 +Subject: [PATCH 02/10] ipc/server: Always listen to stdin --- src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +- diff --git a/patches/monado/0003-Use-extern-socket-fd.patch b/patches/monado/0003-Use-extern-socket-fd.patch index f47b8a9c..ca626a54 100644 --- a/patches/monado/0003-Use-extern-socket-fd.patch +++ b/patches/monado/0003-Use-extern-socket-fd.patch @@ -1,7 +1,7 @@ -From 7af983bfc40a8757517f5f2874a2f20d2c0d770d Mon Sep 17 00:00:00 2001 +From 46cacda03c5552ffb70601dd89e0abe38e97c1d3 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 +Subject: [PATCH 03/10] Use extern socket fd --- src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++ 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 b207d088..ab8399ef 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,7 +1,7 @@ -From 2ad7fb8ce1d73aaac05b2a91293ebaf9ea82bb91 Mon Sep 17 00:00:00 2001 +From 90c3842f38985e0f8f06bb51d0e58cccf437526f 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 +Subject: [PATCH 04/10] c/render: Add storage usage to distortion mesh --- src/xrt/compositor/render/render_distortion.c | 2 +- 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 e5d1a223..d06ff96f 100644 --- a/patches/monado/0005-change-environment-blend-mode-selection-logic.patch +++ b/patches/monado/0005-change-environment-blend-mode-selection-logic.patch @@ -1,14 +1,14 @@ -From f6eceed56d41d550e772c928dc8b452592ccc904 Mon Sep 17 00:00:00 2001 +From 9e2288bc85a5be9bb0228a42dc5a9419c4357eb8 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 +Subject: [PATCH 05/10] 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 9d7610d02..f3131e810 100644 +index 22c801f65..1155bc67e 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 2a7127a6..6de3da68 100644 --- a/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch +++ b/patches/monado/0006-Convert-to-YCbCr-in-Monado.patch @@ -1,7 +1,7 @@ -From a2cba2e362287fd7c7ad906ee8d5d8afb7449482 Mon Sep 17 00:00:00 2001 +From 437469e6a4de72ab69719cce92b841e4de19156f 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 +Subject: [PATCH 06/10] Convert to YCbCr in Monado --- src/xrt/compositor/main/comp_renderer.c | 6 +- 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 1aca5c0d..0782d747 100644 --- a/patches/monado/0007-store-alpha-channel-in-layer-1.patch +++ b/patches/monado/0007-store-alpha-channel-in-layer-1.patch @@ -1,7 +1,7 @@ -From 689cc6eca8ee06f53e10f7a9957a576060591526 Mon Sep 17 00:00:00 2001 +From 5a791919ce1e01f2cb0034e4055bf22767a41121 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 +Subject: [PATCH 07/10] store alpha channel in layer 1 --- src/xrt/compositor/shaders/clear.comp | 4 ++-- diff --git a/patches/monado/0009-c-main-allow-custom-pacing-app-factory.patch b/patches/monado/0008-c-main-allow-custom-pacing-app-factory.patch similarity index 96% rename from patches/monado/0009-c-main-allow-custom-pacing-app-factory.patch rename to patches/monado/0008-c-main-allow-custom-pacing-app-factory.patch index baa6345a..63607d0d 100644 --- a/patches/monado/0009-c-main-allow-custom-pacing-app-factory.patch +++ b/patches/monado/0008-c-main-allow-custom-pacing-app-factory.patch @@ -1,7 +1,7 @@ -From 46c341566c4763dbc391f184227e7f8018ca0abb Mon Sep 17 00:00:00 2001 +From 877709160be24c4bd504b8d8cd04197cc2bf2b69 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 +Subject: [PATCH 08/10] c/main: allow custom pacing app factory --- src/xrt/compositor/main/comp_compositor.c | 10 ++++++---- 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 deleted file mode 100644 index 52a18d0d..00000000 --- a/patches/monado/0008-st-oxr-bind-to-dynamic-role-s-profile.patch +++ /dev/null @@ -1,91 +0,0 @@ -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 - ---- - src/xrt/state_trackers/oxr/oxr_binding.c | 8 +++++--- - src/xrt/state_trackers/oxr/oxr_input.c | 19 +++++++++++++------ - src/xrt/state_trackers/oxr/oxr_objects.h | 2 +- - 3 files changed, 19 insertions(+), 10 deletions(-) - -diff --git a/src/xrt/state_trackers/oxr/oxr_binding.c b/src/xrt/state_trackers/oxr/oxr_binding.c -index ce4c0cca1..9645a507a 100644 ---- a/src/xrt/state_trackers/oxr/oxr_binding.c -+++ b/src/xrt/state_trackers/oxr/oxr_binding.c -@@ -453,7 +453,7 @@ get_identifier_str_in_profile(struct oxr_logger *log, - return str; - } - --void -+bool - oxr_get_profile_for_device_name(struct oxr_logger *log, - struct oxr_session *sess, - enum xrt_device_name name, -@@ -465,10 +465,12 @@ oxr_get_profile_for_device_name(struct oxr_logger *log, - */ - for (uint32_t i = 0; i < ARRAY_SIZE(profile_templates); i++) { - if (name == profile_templates[i].name) { -- interaction_profile_find_in_session(log, sess, profile_templates[i].path_cache, out_p); -- return; -+ if (interaction_profile_find_in_session(log, sess, profile_templates[i].path_cache, out_p)) { -+ return true; -+ } - } - } -+ return false; - } - - -diff --git a/src/xrt/state_trackers/oxr/oxr_input.c b/src/xrt/state_trackers/oxr/oxr_input.c -index 3d8da24a9..7bd3e7678 100644 ---- a/src/xrt/state_trackers/oxr/oxr_input.c -+++ b/src/xrt/state_trackers/oxr/oxr_input.c -@@ -800,18 +800,25 @@ oxr_find_profiles_from_roles(struct oxr_logger *log, - { - #define FIND_PROFILE(X) \ - { \ -- struct xrt_device *xdev = GET_XDEV_BY_ROLE(sess->sys, X); \ -- if (xdev != NULL) { \ -- oxr_find_profile_for_device(log, sess, xdev, &out_profiles->X); \ -- } else { \ -- oxr_get_profile_for_device_name(log, sess, GET_PROFILE_NAME_BY_ROLE(sess->sys, X), \ -- &out_profiles->X); \ -+ bool profile_found = false; \ -+ const enum xrt_device_name role_profile_name = GET_PROFILE_NAME_BY_ROLE(sess->sys, X); \ -+ if (role_profile_name != XRT_DEVICE_INVALID) { \ -+ profile_found = \ -+ oxr_get_profile_for_device_name(log, sess, role_profile_name, &out_profiles->X); \ -+ } \ -+ \ -+ if (!profile_found) { \ -+ struct xrt_device *xdev = GET_XDEV_BY_ROLE(sess->sys, X); \ -+ if (xdev != NULL) { \ -+ oxr_find_profile_for_device(log, sess, xdev, &out_profiles->X); \ -+ } \ - } \ - } - OXR_FOR_EACH_VALID_SUBACTION_PATH(FIND_PROFILE) - #undef FIND_PROFILE - } - -+ - /*! - * @public @memberof oxr_action_attachment - */ -diff --git a/src/xrt/state_trackers/oxr/oxr_objects.h b/src/xrt/state_trackers/oxr/oxr_objects.h -index c4d2bcbe3..f9f1ac5a8 100644 ---- a/src/xrt/state_trackers/oxr/oxr_objects.h -+++ b/src/xrt/state_trackers/oxr/oxr_objects.h -@@ -651,7 +651,7 @@ oxr_find_profile_for_device(struct oxr_logger *log, - struct xrt_device *xdev, - struct oxr_interaction_profile **out_p); - --void -+bool - oxr_get_profile_for_device_name(struct oxr_logger *log, - struct oxr_session *sess, - enum xrt_device_name name, --- -2.50.1 - diff --git a/patches/monado/0010-st-oxr-forward-0-refresh-rate.patch b/patches/monado/0009-st-oxr-forward-0-refresh-rate.patch similarity index 83% rename from patches/monado/0010-st-oxr-forward-0-refresh-rate.patch rename to patches/monado/0009-st-oxr-forward-0-refresh-rate.patch index 1b7cdc54..d3c7b63a 100644 --- a/patches/monado/0010-st-oxr-forward-0-refresh-rate.patch +++ b/patches/monado/0009-st-oxr-forward-0-refresh-rate.patch @@ -1,17 +1,17 @@ -From 98858578fdf31a9b4cab6e400bc0b9841f856370 Mon Sep 17 00:00:00 2001 +From 53d8509dff69caccecdc38b443864b1a755486dd 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 +Subject: [PATCH 09/10] st/oxr: forward 0 refresh rate --- src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/xrt/state_trackers/oxr/oxr_api_session.c b/src/xrt/state_trackers/oxr/oxr_api_session.c -index b3dac8c8a..27d80be9a 100644 +index 9c5889f12..c4cdaf8c3 100644 --- a/src/xrt/state_trackers/oxr/oxr_api_session.c +++ b/src/xrt/state_trackers/oxr/oxr_api_session.c -@@ -645,15 +645,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate) +@@ -717,15 +717,11 @@ oxr_xrRequestDisplayRefreshRateFB(XrSession session, float displayRefreshRate) OXR_VERIFY_SESSION_AND_INIT_LOG(&log, session, sess, "xrRequestDisplayRefreshRateFB"); OXR_VERIFY_SESSION_NOT_LOST(&log, sess); diff --git a/patches/monado/0011-Replace-distortion-with-pixel-aligned-foveation.patch b/patches/monado/0010-Replace-distortion-with-pixel-aligned-foveation.patch similarity index 99% rename from patches/monado/0011-Replace-distortion-with-pixel-aligned-foveation.patch rename to patches/monado/0010-Replace-distortion-with-pixel-aligned-foveation.patch index cdfeaa23..4898d7a2 100644 --- a/patches/monado/0011-Replace-distortion-with-pixel-aligned-foveation.patch +++ b/patches/monado/0010-Replace-distortion-with-pixel-aligned-foveation.patch @@ -1,7 +1,7 @@ -From dffbea9f32efb942d591aa3b1e2a1ac2ca02d204 Mon Sep 17 00:00:00 2001 +From 1bc74f74b613cce9d32c0f4bf16de70ddb7fb482 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 +Subject: [PATCH 10/10] Replace distortion with pixel-aligned foveation --- src/xrt/compositor/CMakeLists.txt | 2 +- From c485bcb01537cba2a7c79f100c8b7a72807dc2ec Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Tue, 5 Aug 2025 13:52:10 +0200 Subject: [PATCH 7/7] Update Monado --- flake.nix | 2 +- monado-rev | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index aaf72fe2..ed7ac917 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-V0sLap5Y6U2Zu4OYN9/0cunKHOPCXNiLN2aj9R6I8gw="; + hash = "sha256-4P/ejRAitrYn8hXZPaDOcx27utfm+aVLjtqL6JxZYAg="; }; }; diff --git a/monado-rev b/monado-rev index 57cda024..16e87975 100644 --- a/monado-rev +++ b/monado-rev @@ -1 +1 @@ -6e4b8c097c32884951828d2ebbe41a3b2fe3ccbe +5c137fe28b232fe460f9b03defa7749adc32ee48