Update Monado

This commit is contained in:
Patrick Nicolas
2025-11-15 20:34:57 +01:00
committed by xytovl
parent 1af4ae760c
commit f880a987b2
10 changed files with 566 additions and 267 deletions
+1 -1
View File
@@ -58,7 +58,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-Li3aG0QpzWvJoiGc2s70WiFmwf9anbMvpUWIncMIZx8=";
hash = "sha256-gDYioBfBmTtKEQ0b8GwV9CeNhEDhSzAonzGxOvhey9g=";
};
};
+1 -1
View File
@@ -1 +1 @@
57a9631a2f11069557039b08c9897ee6c4aec6be
ef0f552c3d773a2a4a04236c5d5ca78e3f90aad4
@@ -1,7 +1,7 @@
From 84a3c13c5db96e6a80a1420f3995f5e7acbfbb1f Mon Sep 17 00:00:00 2001
From d42bb722366501e7d9026cd1b2a18fc95da562f3 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 7fe376f6732a82861a207700bc3ab8541ed9f4d8 Mon Sep 17 00:00:00 2001
From 7c6c7401c70fa4f1935ddd5404cddcda86bb891d 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 0a362b551b49349aea040106a56269abf39c0f18 Mon Sep 17 00:00:00 2001
From 8681efcccdcf2a428bfca52f869560dcdcb8d76b 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 05263a4f548d9f745d6d96d2a3dc0d46d0b4e7a6 Mon Sep 17 00:00:00 2001
From a3ed1a033480b4a3bb72b326a0ca8cff49fee771 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,7 +1,7 @@
From 4097ddb56d19b3fc73fa92bffc79385eda0d39c5 Mon Sep 17 00:00:00 2001
From dd29abe017730f618e43abec0e4df8491aab13cc Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 5/8] st/oxr: forward 0 refresh rate
Subject: [PATCH 5/7] st/oxr: forward 0 refresh rate
---
src/xrt/compositor/main/comp_compositor.c | 2 +-
File diff suppressed because it is too large Load Diff
@@ -1,46 +0,0 @@
From 8d5c814af6d9bbc7977fa36f1ca258c161dfbbcb Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sun, 31 Aug 2025 17:05:49 +0200
Subject: [PATCH 7/8] Limit foveation samples per pixel
---
src/xrt/compositor/shaders/distortion.comp | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/xrt/compositor/shaders/distortion.comp b/src/xrt/compositor/shaders/distortion.comp
index cd1828ac9..41de849e6 100644
--- a/src/xrt/compositor/shaders/distortion.comp
+++ b/src/xrt/compositor/shaders/distortion.comp
@@ -12,6 +12,7 @@
layout(local_size_x = 8, local_size_y = 8, local_size_z = 1) in;
#define MAX_DIM 4097
+#define MAX_SAMPLES 4
layout(set = 0, binding = 0) uniform sampler2D source[2];
layout(set = 0, binding = 1, std430) buffer restrict Foveation
@@ -67,13 +68,18 @@ void main()
if (xmin == xmax)
return;
+ uint xstep = (xmax - xmin + MAX_SAMPLES - 1) / MAX_SAMPLES;
+ uint ystep = (ymax - ymin + MAX_SAMPLES - 1) / MAX_SAMPLES;
+
vec4 colour = vec4(0);
- for (uint y = ymin ; y < ymax; y += 1) {
- for (uint x = xmin ; x < xmax; x += 1) {
+ uint count = 0;
+ for (uint y = ymin ; y < ymax; y += ystep) {
+ for (uint x = xmin ; x < xmax; x += xstep) {
colour += texelFetch(source[iz], ivec2(x, y), 0);
+ ++count;
}
}
- colour /= (xmax - xmin) * (ymax - ymin);
+ colour /= count;
colour.xyz = rgb_to_ycbcr(from_linear_to_srgb(colour.rgb));
imageStore(luma, ivec3(offset.x + ix, offset.y + iy, 0), vec4(colour.x));
--
2.51.2
@@ -1,7 +1,7 @@
From 057b015a3f8a9eac0c97f42d00734ca7b7356bf6 Mon Sep 17 00:00:00 2001
From 76f5a14ffa428a716c3076b7029539a6f8072f1a Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 28 Sep 2025 11:33:10 +0200
Subject: [PATCH 8/8] d/steamvr_lh: prevent crash on vive pro2/WiVRn
Subject: [PATCH 7/7] d/steamvr_lh: prevent crash on vive pro2/WiVRn
---
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp | 2 +-