Update Monado

This commit is contained in:
Patrick Nicolas
2025-09-22 22:56:48 +02:00
parent 13c7f8fbc2
commit 6e9afab96b
10 changed files with 16 additions and 98 deletions
+1 -1
View File
@@ -44,7 +44,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-DPIvJb23bK7SDjZr9mK0Wt6Zbo3Ari3Ar8TtPe5QgKY=";
hash = "sha256-K8DbHvyDmNwOxTxhTn9e/6++9wmY14ryVrqDOQCXcsw=";
};
};
+1 -1
View File
@@ -1 +1 @@
7a4018e2d89151e60e562fac79eba90ca7a328d8
c4417629ac099e24001bb50bd327b769901cbb0a
@@ -1,7 +1,7 @@
From 5a4505efc60c9252176b73775278b6f5b775fe8e Mon Sep 17 00:00:00 2001
From 84758f77a11a31e144d2120a465a954287eb0f67 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
Subject: [PATCH 1/7] c/multi: early wake of compositor
---
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
@@ -1,7 +1,7 @@
From e118393925294a3b57cbf149fdc28685b27aec94 Mon Sep 17 00:00:00 2001
From b73d7a32daa626ae401543e1c3ed8fd8d8290f8d Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 2 Apr 2024 17:14:42 +0200
Subject: [PATCH 2/8] ipc/server: Always listen to stdin
Subject: [PATCH 2/7] ipc/server: Always listen to stdin
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +-
@@ -1,7 +1,7 @@
From d4b4c209e9106edf5e6b1c3efbcac2b88364518b Mon Sep 17 00:00:00 2001
From a85beae795aba8f82abab849e9e5c2ce74511357 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 3/8] Use extern socket fd
Subject: [PATCH 3/7] Use extern socket fd
---
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
@@ -1,7 +1,7 @@
From a0eafb7370e319386bdd790059e2f13147706a9f Mon Sep 17 00:00:00 2001
From f472a02f86bd98e0cb88847fd8c9104bbd5c74f5 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 4/8] change environment blend mode selection logic
Subject: [PATCH 4/7] change environment blend mode selection logic
---
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
@@ -1,82 +0,0 @@
From 406114aa32a71e04b43b44b0aec04472f9fa82c3 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Thu, 27 Feb 2025 22:45:36 +0100
Subject: [PATCH 5/8] c/main: allow custom pacing app factory
---
src/xrt/compositor/main/comp_compositor.c | 10 ++++++----
src/xrt/compositor/main/comp_main_interface.h | 4 ++++
src/xrt/targets/common/target_instance.c | 2 +-
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 805683d70..8220808ff 100644
--- a/src/xrt/compositor/main/comp_compositor.c
+++ b/src/xrt/compositor/main/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,
+ struct u_pacing_app_factory *upaf,
struct xrt_system_compositor **out_xsysc)
{
COMP_TRACE_MARKER();
@@ -1187,10 +1188,11 @@ comp_main_create_system_compositor(struct xrt_device *xdev,
}
// Standard app pacer.
- struct u_pacing_app_factory *upaf = NULL;
- xrt_result_t xret = u_pa_factory_create(&upaf);
- assert(xret == XRT_SUCCESS && upaf != NULL);
- (void)xret;
+ if (upaf == NULL) {
+ xrt_result_t xret = u_pa_factory_create(&upaf);
+ assert(xret == XRT_SUCCESS && upaf != NULL);
+ (void)xret;
+ }
return comp_multi_create_system_compositor(&c->base.base, upaf, sys_info, !c->deferred_surface, out_xsysc);
}
diff --git a/src/xrt/compositor/main/comp_main_interface.h b/src/xrt/compositor/main/comp_main_interface.h
index 0f0678358..f60568b43 100644
--- a/src/xrt/compositor/main/comp_main_interface.h
+++ b/src/xrt/compositor/main/comp_main_interface.h
@@ -15,6 +15,7 @@
#include "xrt/xrt_compositor.h"
struct comp_target_factory;
+struct u_pacing_app_factory;
#ifdef __cplusplus
extern "C" {
@@ -31,11 +32,14 @@ extern "C" {
* @param xdev The head device
* @param ctf A compositor target factory to force the output device, must remain valid for the lifetime of the
* compositor. If NULL, factory is automatically selected
+ * @param upaf A pacing app factory to customize the application pacer, compositor takes ownership.
+ * If NULL, a default factory is used
* @param out_xsysc The output compositor
*/
xrt_result_t
comp_main_create_system_compositor(struct xrt_device *xdev,
const struct comp_target_factory *ctf,
+ struct u_pacing_app_factory *upaf,
struct xrt_system_compositor **out_xsysc);
diff --git a/src/xrt/targets/common/target_instance.c b/src/xrt/targets/common/target_instance.c
index 617561c37..e10ba8358 100644
--- a/src/xrt/targets/common/target_instance.c
+++ b/src/xrt/targets/common/target_instance.c
@@ -109,7 +109,7 @@ t_instance_create_system(struct xrt_instance *xinst,
#ifdef XRT_MODULE_COMPOSITOR_MAIN
if (xret == XRT_SUCCESS && xsysc == NULL) {
- xret = comp_main_create_system_compositor(head, NULL, &xsysc);
+ xret = comp_main_create_system_compositor(head, NULL, NULL, &xsysc);
}
#else
if (!use_null) {
--
2.51.0
@@ -1,7 +1,7 @@
From aa73e7d05747374760b22333495cde8c3d9d3f10 Mon Sep 17 00:00:00 2001
From 7c01c47b2a1c4da040e0d25f4b9cb760ae88aa25 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 6/8] st/oxr: forward 0 refresh rate
Subject: [PATCH 5/7] st/oxr: forward 0 refresh rate
---
src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +-----
@@ -1,7 +1,7 @@
From 3172d537740d2a334dbb009f63c6e6f039554181 Mon Sep 17 00:00:00 2001
From 240edeee8136b72b0c108b39f9eb032138683a46 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Wed, 11 Sep 2024 22:56:29 +0200
Subject: [PATCH 7/8] Replace distortion with foveation
Subject: [PATCH 6/7] Replace distortion with foveation
---
src/xrt/compositor/CMakeLists.txt | 4 +-
@@ -1,7 +1,7 @@
From 4de55a9bc2ab7d3931d38b6697268af5421c0328 Mon Sep 17 00:00:00 2001
From db19f48adcc6e9395bf93a920623b48b86a9f378 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sun, 31 Aug 2025 17:05:49 +0200
Subject: [PATCH 8/8] Limit foveation samples per pixel
Subject: [PATCH 7/7] Limit foveation samples per pixel
---
src/xrt/compositor/shaders/distortion.comp | 12 +++++++++---