public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/wivrn] f44: Update to v26.11 (fedora#2585676).
@ 2026-11-28 20:22 Jonathan Steffan
0 siblings, 0 replies; only message in thread
From: Jonathan Steffan @ 2026-11-28 20:22 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/wivrn
Branch : f44
Commit : 1c7d0ff5e9bb90611aae7726abad1b8e0dc1c9a3
Author : Jonathan Steffan <jsteffan@fedoraproject.org>
Date : 2026-11-28T11:52:39-07:00
Stats : +751/-271 in 19 file(s)
URL : https://src.fedoraproject.org/rpms/wivrn/c/1c7d0ff5e9bb90611aae7726abad1b8e0dc1c9a3?branch=f44
Log:
Update to v26.11 (fedora#2585676).
---
diff --git a/.gitignore b/.gitignore
index ef984b7..bbf91ce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,3 +32,5 @@
/WiVRn-v26.6.2.tar.gz
/WiVRn-v26.9.tar.gz
/monado-src-f037264d23e2472a444a157370647fcd601ed81b.tar.bz2
+/WiVRn-v26.11.tar.gz
+/monado-src-8b259763fdd23c46592fd4cdd30b4eea997d4b70.tar.bz2
diff --git a/0001-c-multi-early-wake-of-compositor.patch b/0001-c-multi-early-wake-of-compositor.patch
index a269ca4..5210545 100644
--- a/0001-c-multi-early-wake-of-compositor.patch
+++ b/0001-c-multi-early-wake-of-compositor.patch
@@ -1,4 +1,4 @@
-From 0276080e671cdefb7e88eda9492049727223689a Mon Sep 17 00:00:00 2001
+From 337ab13148cddef8ba9a21b3829a3bc6bedebed8 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/9] c/multi: early wake of compositor
@@ -51,7 +51,7 @@ index 6c7ec05f8..588878e38 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 51d1c2827..363def34f 100644
+index 37bdc3bc5..717f6ae4c 100644
--- a/src/xrt/compositor/multi/comp_multi_system.c
+++ b/src/xrt/compositor/multi/comp_multi_system.c
@@ -15,6 +15,8 @@
@@ -93,7 +93,7 @@ index 51d1c2827..363def34f 100644
}
static void
-@@ -574,10 +583,13 @@ multi_main_loop(struct multi_system_compositor *msc)
+@@ -576,10 +585,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 51d1c2827..363def34f 100644
// Now we know the diff, broadcast to pacers.
broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns);
-@@ -797,6 +809,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
+@@ -798,6 +810,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 51d1c2827..363def34f 100644
free(msc);
}
-@@ -855,6 +869,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
+@@ -856,6 +870,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
msc->get_view_config_callback = get_view_config_callback;
os_mutex_init(&msc->list_and_timing_lock);
diff --git a/0002-Use-extern-socket-fd.patch b/0002-Use-extern-socket-fd.patch
index 353ae8a..295f76a 100644
--- a/0002-Use-extern-socket-fd.patch
+++ b/0002-Use-extern-socket-fd.patch
@@ -1,4 +1,4 @@
-From fb7e9dcb19dc23cb5a20cbfede6f3bd96a02b2b9 Mon Sep 17 00:00:00 2001
+From 5f15e2e67ce644ef3146952b3976517487f26ed6 Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Tue, 8 Oct 2024 22:13:15 +0200
Subject: [PATCH 2/9] Use extern socket fd
diff --git a/0003-change-environment-blend-mode-selection-logic.patch b/0003-change-environment-blend-mode-selection-logic.patch
index e297482..f816658 100644
--- a/0003-change-environment-blend-mode-selection-logic.patch
+++ b/0003-change-environment-blend-mode-selection-logic.patch
@@ -1,4 +1,4 @@
-From 6d0479029790d9db188b0111bf7301e2dcf6e10c Mon Sep 17 00:00:00 2001
+From aa54091b55d59696de47718d440af6e203348541 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 3/9] change environment blend mode selection logic
@@ -8,7 +8,7 @@ Subject: [PATCH 3/9] 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 363def34f..b98d9b27d 100644
+index 717f6ae4c..8c02280b0 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/0004-st-oxr-forward-0-refresh-rate.patch b/0004-st-oxr-forward-0-refresh-rate.patch
index 7b046a5..1f5f5f3 100644
--- a/0004-st-oxr-forward-0-refresh-rate.patch
+++ b/0004-st-oxr-forward-0-refresh-rate.patch
@@ -1,4 +1,4 @@
-From d03b94d252682b5da6ac80bbf1e4346575c78cf3 Mon Sep 17 00:00:00 2001
+From 1ba737ef0e908056cc35cdd909d8738569abb70e Mon Sep 17 00:00:00 2001
From: Patrick Nicolas <patricknicolas@laposte.net>
Date: Sat, 15 Mar 2025 22:19:48 +0100
Subject: [PATCH 4/9] st/oxr: forward 0 refresh rate
diff --git a/0005-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch b/0005-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch
index 06437d8..a4f8eb9 100644
--- a/0005-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch
+++ b/0005-d-steamvr_lh-prevent-crash-on-vive-pro2-WiVRn.patch
@@ -1,4 +1,4 @@
-From cee540ab542a1e1386b86f437aa05cb758e7b5b6 Mon Sep 17 00:00:00 2001
+From d317b89542b5156b0a6c823aa7b93dea882880cc Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 28 Sep 2025 11:33:10 +0200
Subject: [PATCH 5/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
@@ -8,15 +8,15 @@ Subject: [PATCH 5/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
-index 947376ca8..45443180e 100644
+index ae4981c3c..e7a13a9c9 100644
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
-@@ -1019,7 +1019,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
+@@ -1078,7 +1078,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices *xsys
// Include the HMD
- if (svrs->ctx->hmd) {
-- if (svrs->ctx->hmd->variant == VIVE_VARIANT_PRO2 && !svrs->ctx->hmd->init_vive_pro_2(xp)) {
-+ if (xp && svrs->ctx->hmd->variant == VIVE_VARIANT_PRO2 && !svrs->ctx->hmd->init_vive_pro_2(xp)) {
+ if (ctx->hmd) {
+- if (ctx->hmd->variant == VIVE_VARIANT_PRO2 && !ctx->hmd->init_vive_pro_2(xp)) {
++ if (xp && ctx->hmd->variant == VIVE_VARIANT_PRO2 && !ctx->hmd->init_vive_pro_2(xp)) {
U_LOG_IFL_W(level, "Found Vive Pro 2, but failed to initialize.");
}
diff --git a/0006-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch b/0006-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch
index 8588e78..f4938d0 100644
--- a/0006-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch
+++ b/0006-st-oxr-push-XrEventDataInteractionProfileChanged-whe.patch
@@ -1,4 +1,4 @@
-From cf589697b28a175802d9a61d2baf498211cdde53 Mon Sep 17 00:00:00 2001
+From ea2748ddda22a4527a1ac1fc2ef20f691ef4cc5c Mon Sep 17 00:00:00 2001
From: Sapphire <imsapphire0@gmail.com>
Date: Fri, 7 Nov 2025 20:41:16 -0600
Subject: [PATCH 6/9] st/oxr: push XrEventDataInteractionProfileChanged when
diff --git a/0007-don-t-verify-GL-stuff.patch b/0007-don-t-verify-GL-stuff.patch
index ca92f97..c748ebf 100644
--- a/0007-don-t-verify-GL-stuff.patch
+++ b/0007-don-t-verify-GL-stuff.patch
@@ -1,4 +1,4 @@
-From 766d4264e50911205b9041e56978780b324e7486 Mon Sep 17 00:00:00 2001
+From f4851833957c41dfd6635e78000dba1d20cbc658 Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Sun, 25 Jan 2026 10:09:10 +0100
Subject: [PATCH 7/9] don't verify GL stuff
diff --git a/0008-configure-u_git_tag-in-WiVRn.patch b/0008-configure-u_git_tag-in-WiVRn.patch
index b638716..c35880b 100644
--- a/0008-configure-u_git_tag-in-WiVRn.patch
+++ b/0008-configure-u_git_tag-in-WiVRn.patch
@@ -1,4 +1,4 @@
-From f7f1e6fa6dfc8cd6fc58617d9fca49c9bbae3373 Mon Sep 17 00:00:00 2001
+From 3710f8ba7a8ba8948f489dc028f8dba5a1fe71bc Mon Sep 17 00:00:00 2001
From: no name <git-am@invalid>
Date: Fri, 20 Mar 2026 16:51:18 +0100
Subject: [PATCH 8/9] configure u_git_tag in WiVRn
@@ -8,7 +8,7 @@ Subject: [PATCH 8/9] configure u_git_tag in WiVRn
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/xrt/auxiliary/util/CMakeLists.txt b/src/xrt/auxiliary/util/CMakeLists.txt
-index 0ec4e95ee..9f82f915e 100644
+index 8dee896e0..497b18cbc 100644
--- a/src/xrt/auxiliary/util/CMakeLists.txt
+++ b/src/xrt/auxiliary/util/CMakeLists.txt
@@ -10,11 +10,6 @@
@@ -23,7 +23,7 @@ index 0ec4e95ee..9f82f915e 100644
add_library(
aux_util STATIC
u_autoexpgain.c
-@@ -128,7 +123,7 @@ add_library(
+@@ -132,7 +127,7 @@ add_library(
u_worker.cpp
u_worker.h
u_worker.hpp
diff --git a/0009-a-math-Add-m_relation_history_get_clamped.patch b/0009-a-math-Add-m_relation_history_get_clamped.patch
new file mode 100644
index 0000000..d523a49
--- /dev/null
+++ b/0009-a-math-Add-m_relation_history_get_clamped.patch
@@ -0,0 +1,138 @@
+From 99722fde70de23bad66f47ab7a53748ce0e498d0 Mon Sep 17 00:00:00 2001
+From: Sapphire <imsapphire0@gmail.com>
+Date: Wed, 26 Aug 2026 06:14:13 -0500
+Subject: [PATCH 1/2] a/math: Add m_relation_history_get_clamped
+
+Signed-off-by: Sapphire <imsapphire0@gmail.com>
+---
+ src/xrt/auxiliary/math/m_relation_history.cpp | 33 ++++++++++++++++---
+ src/xrt/auxiliary/math/m_relation_history.h | 23 ++++++++++++-
+ 2 files changed, 50 insertions(+), 6 deletions(-)
+
+diff --git a/src/xrt/auxiliary/math/m_relation_history.cpp b/src/xrt/auxiliary/math/m_relation_history.cpp
+index 700f9e7fc..47a61ed6d 100644
+--- a/src/xrt/auxiliary/math/m_relation_history.cpp
++++ b/src/xrt/auxiliary/math/m_relation_history.cpp
+@@ -84,15 +84,20 @@ m_relation_history_push(struct m_relation_history *rh, struct xrt_space_relation
+ }
+
+ enum m_relation_history_result
+-m_relation_history_get(const struct m_relation_history *rh,
+- int64_t at_timestamp_ns,
+- struct xrt_space_relation *out_relation)
++m_relation_history_get_clamped(const struct m_relation_history *rh,
++ int64_t at_timestamp_ns,
++ int64_t max_extrapolation_ns,
++ int64_t *out_timestamp_ns,
++ struct xrt_space_relation *out_relation)
+ {
+ XRT_TRACE_MARKER();
+ std::unique_lock<os::Mutex> lock(rh->mutex);
+ try {
+ if (rh->impl.empty() || at_timestamp_ns == 0) {
+ // Do nothing. You push nothing to the buffer you get nothing from the buffer.
++ if (out_timestamp_ns) {
++ *out_timestamp_ns = 0;
++ }
+ *out_relation = {};
+ return M_RELATION_HISTORY_RESULT_INVALID;
+ }
+@@ -111,18 +116,26 @@ m_relation_history_get(const struct m_relation_history *rh,
+ // The desired timestamp is after what our buffer contains.
+ // (pose-prediction)
+ // Output flags match the most recent buffer entry.
+- int64_t diff_prediction_ns = static_cast<int64_t>(at_timestamp_ns) - rh->impl.back().timestamp;
++ int64_t diff_prediction_ns = MIN(
++ static_cast<int64_t>(at_timestamp_ns) - rh->impl.back().timestamp, max_extrapolation_ns);
+ double delta_s = time_ns_to_s(diff_prediction_ns);
+
+ U_LOG_T("Extrapolating %f s past the back of the buffer!", delta_s);
+
+ m_predict_relation(&rh->impl.back().relation, delta_s, out_relation);
++ if (out_timestamp_ns) {
++ // We extrapolated to the requested timestamp.
++ *out_timestamp_ns = at_timestamp_ns + diff_prediction_ns;
++ }
+ return M_RELATION_HISTORY_RESULT_PREDICTED;
+ }
+ if (at_timestamp_ns == it->timestamp) {
+ // exact match:
+ // Flags copied directly along with everything else.
+ U_LOG_T("Exact match in the buffer!");
++ if (out_timestamp_ns) {
++ *out_timestamp_ns = at_timestamp_ns;
++ }
+ *out_relation = it->relation;
+ return M_RELATION_HISTORY_RESULT_EXACT;
+ }
+@@ -131,10 +144,16 @@ m_relation_history_get(const struct m_relation_history *rh,
+ // The desired timestamp is before what our buffer contains.
+ // (an edge case where somebody asks for a really old pose and we do our best)
+ // Output flags are the same as the input flags for the history entry we use
+- int64_t diff_prediction_ns = static_cast<int64_t>(at_timestamp_ns) - rh->impl.front().timestamp;
++ int64_t diff_prediction_ns =
++ -MIN(abs(static_cast<int64_t>(at_timestamp_ns) - rh->impl.front().timestamp),
++ max_extrapolation_ns);
+ double delta_s = time_ns_to_s(diff_prediction_ns);
+ U_LOG_T("Extrapolating %f s before the front of the buffer!", delta_s);
+ m_predict_relation(&rh->impl.front().relation, delta_s, out_relation);
++ if (out_timestamp_ns) {
++ // We extrapolated to the requested timestamp.
++ *out_timestamp_ns = at_timestamp_ns + diff_prediction_ns;
++ }
+ return M_RELATION_HISTORY_RESULT_REVERSE_PREDICTED;
+ }
+ U_LOG_T("Interpolating within buffer!");
+@@ -174,6 +193,10 @@ m_relation_history_get(const struct m_relation_history *rh,
+ result.linear_velocity = m_vec3_lerp(predecessor.relation.linear_velocity,
+ successor.relation.linear_velocity, amount_to_lerp);
+ }
++ if (out_timestamp_ns) {
++ // We interpolated to the requested timestamp.
++ *out_timestamp_ns = at_timestamp_ns;
++ }
+ *out_relation = result;
+ return M_RELATION_HISTORY_RESULT_INTERPOLATED;
+
+diff --git a/src/xrt/auxiliary/math/m_relation_history.h b/src/xrt/auxiliary/math/m_relation_history.h
+index 86e08ef5e..5aaa94404 100644
+--- a/src/xrt/auxiliary/math/m_relation_history.h
++++ b/src/xrt/auxiliary/math/m_relation_history.h
+@@ -83,12 +83,33 @@ m_relation_history_push_with_motion_estimation(struct m_relation_history *rh,
+ * Read-only operation - doesn't remove anything from the buffer or anything like that - you can call this as often
+ * as you want.
+ *
++ * @param max_extrapolation_ns Maximum time the pose may be extrapolated to. INT64_MAX means extrapolation is unlimited.
++ * @param out_timestamp_ns Optional out parameter for the timestamp of the pose.
++ * @param out_relation Out parameter for the resulting @ref xrt_space_relation.
++ *
+ * @public @memberof m_relation_history
+ */
+ enum m_relation_history_result
++m_relation_history_get_clamped(const struct m_relation_history *rh,
++ int64_t at_timestamp_ns,
++ int64_t max_extrapolation_ns,
++ int64_t *out_timestamp_ns,
++ struct xrt_space_relation *out_relation);
++
++/*!
++ * Wrapper for @ref m_relation_history_get_clamped with unlimited extrapolation.
++ *
++ * @copydoc m_relation_history_get_clamped
++ *
++ * @public @memberof m_relation_history
++ */
++static inline enum m_relation_history_result
+ m_relation_history_get(const struct m_relation_history *rh,
+ int64_t at_timestamp_ns,
+- struct xrt_space_relation *out_relation);
++ struct xrt_space_relation *out_relation)
++{
++ return m_relation_history_get_clamped(rh, at_timestamp_ns, INT64_MAX, NULL, out_relation);
++}
+
+ /*!
+ * Get the latest report in the buffer, if any.
+--
+2.55.0
+
diff --git a/0009-ipc-join-client-threads-before-teardown.patch b/0009-ipc-join-client-threads-before-teardown.patch
deleted file mode 100644
index cfea77c..0000000
--- a/0009-ipc-join-client-threads-before-teardown.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From 3f4451bf117b197b0177844f8fa818a838ebf965 Mon Sep 17 00:00:00 2001
-From: no name <git-am@invalid>
-Date: Sun, 28 Jun 2026 11:36:08 -0600
-Subject: [PATCH 9/9] ipc: join client threads before teardown
-
-On shutdown main_loop() returns as soon as s->running is cleared, but the
-per-client threads may still be in common_shutdown() destroying their
-compositor and dereferencing s->xsysd/s->xso. teardown_all() then frees
-those resources concurrently, so a client thread can lock a mutex the main
-thread has already destroyed (assert om->initialized in
-multi_compositor_destroy). Join the client threads first.
----
- src/xrt/ipc/server/ipc_server_process.c | 28 +++++++++++++++++++++++++
- 1 file changed, 28 insertions(+)
-
-diff --git a/src/xrt/ipc/server/ipc_server_process.c b/src/xrt/ipc/server/ipc_server_process.c
-index 4f9a6e2a4..3cad2dab1 100644
---- a/src/xrt/ipc/server/ipc_server_process.c
-+++ b/src/xrt/ipc/server/ipc_server_process.c
-@@ -163,11 +163,39 @@ print_linux_end_user_started_information(enum u_logging_level log_level)
- U_LOG_IFL_I(log_level, "%s", sink.buffer);
- }
-
-+/*!
-+ * Join any still-running per-client threads.
-+ *
-+ * On shutdown @ref main_loop returns as soon as `s->running` is cleared, but the
-+ * per-client threads may still be inside common_shutdown(), which destroys each
-+ * client's compositor and dereferences `s->xsysd` / `s->xso`. Waiting for them
-+ * here, before teardown_all() destroys those resources, avoids a race where a
-+ * client thread locks a mutex the teardown below has already freed (observed as
-+ * an `om->initialized` assertion in multi_compositor_destroy). `s->running` is
-+ * already false by this point, so each client loop exits within its poll timeout.
-+ */
-+static void
-+join_all_client_threads(struct ipc_server *s)
-+{
-+ for (uint32_t i = 0; i < IPC_MAX_CLIENTS; i++) {
-+ struct ipc_thread *it = &s->threads[i];
-+ if (it->state == IPC_THREAD_READY) {
-+ continue;
-+ }
-+ os_thread_join(&it->thread);
-+ os_thread_destroy(&it->thread);
-+ it->state = IPC_THREAD_READY;
-+ }
-+}
-+
- static void
- teardown_all(struct ipc_server *s)
- {
- u_var_remove_root(s);
-
-+ // Client threads reference the resources destroyed below; wait them out first.
-+ join_all_client_threads(s);
-+
- xrt_syscomp_destroy(&s->xsysc);
-
- xrt_space_overseer_destroy(&s->xso);
---
-2.55.0
-
diff --git a/0010-a-math-Add-m_relation_history_get_clamped.patch b/0010-a-math-Add-m_relation_history_get_clamped.patch
deleted file mode 100644
index d523a49..0000000
--- a/0010-a-math-Add-m_relation_history_get_clamped.patch
+++ /dev/null
@@ -1,138 +0,0 @@
-From 99722fde70de23bad66f47ab7a53748ce0e498d0 Mon Sep 17 00:00:00 2001
-From: Sapphire <imsapphire0@gmail.com>
-Date: Wed, 26 Aug 2026 06:14:13 -0500
-Subject: [PATCH 1/2] a/math: Add m_relation_history_get_clamped
-
-Signed-off-by: Sapphire <imsapphire0@gmail.com>
----
- src/xrt/auxiliary/math/m_relation_history.cpp | 33 ++++++++++++++++---
- src/xrt/auxiliary/math/m_relation_history.h | 23 ++++++++++++-
- 2 files changed, 50 insertions(+), 6 deletions(-)
-
-diff --git a/src/xrt/auxiliary/math/m_relation_history.cpp b/src/xrt/auxiliary/math/m_relation_history.cpp
-index 700f9e7fc..47a61ed6d 100644
---- a/src/xrt/auxiliary/math/m_relation_history.cpp
-+++ b/src/xrt/auxiliary/math/m_relation_history.cpp
-@@ -84,15 +84,20 @@ m_relation_history_push(struct m_relation_history *rh, struct xrt_space_relation
- }
-
- enum m_relation_history_result
--m_relation_history_get(const struct m_relation_history *rh,
-- int64_t at_timestamp_ns,
-- struct xrt_space_relation *out_relation)
-+m_relation_history_get_clamped(const struct m_relation_history *rh,
-+ int64_t at_timestamp_ns,
-+ int64_t max_extrapolation_ns,
-+ int64_t *out_timestamp_ns,
-+ struct xrt_space_relation *out_relation)
- {
- XRT_TRACE_MARKER();
- std::unique_lock<os::Mutex> lock(rh->mutex);
- try {
- if (rh->impl.empty() || at_timestamp_ns == 0) {
- // Do nothing. You push nothing to the buffer you get nothing from the buffer.
-+ if (out_timestamp_ns) {
-+ *out_timestamp_ns = 0;
-+ }
- *out_relation = {};
- return M_RELATION_HISTORY_RESULT_INVALID;
- }
-@@ -111,18 +116,26 @@ m_relation_history_get(const struct m_relation_history *rh,
- // The desired timestamp is after what our buffer contains.
- // (pose-prediction)
- // Output flags match the most recent buffer entry.
-- int64_t diff_prediction_ns = static_cast<int64_t>(at_timestamp_ns) - rh->impl.back().timestamp;
-+ int64_t diff_prediction_ns = MIN(
-+ static_cast<int64_t>(at_timestamp_ns) - rh->impl.back().timestamp, max_extrapolation_ns);
- double delta_s = time_ns_to_s(diff_prediction_ns);
-
- U_LOG_T("Extrapolating %f s past the back of the buffer!", delta_s);
-
- m_predict_relation(&rh->impl.back().relation, delta_s, out_relation);
-+ if (out_timestamp_ns) {
-+ // We extrapolated to the requested timestamp.
-+ *out_timestamp_ns = at_timestamp_ns + diff_prediction_ns;
-+ }
- return M_RELATION_HISTORY_RESULT_PREDICTED;
- }
- if (at_timestamp_ns == it->timestamp) {
- // exact match:
- // Flags copied directly along with everything else.
- U_LOG_T("Exact match in the buffer!");
-+ if (out_timestamp_ns) {
-+ *out_timestamp_ns = at_timestamp_ns;
-+ }
- *out_relation = it->relation;
- return M_RELATION_HISTORY_RESULT_EXACT;
- }
-@@ -131,10 +144,16 @@ m_relation_history_get(const struct m_relation_history *rh,
- // The desired timestamp is before what our buffer contains.
- // (an edge case where somebody asks for a really old pose and we do our best)
- // Output flags are the same as the input flags for the history entry we use
-- int64_t diff_prediction_ns = static_cast<int64_t>(at_timestamp_ns) - rh->impl.front().timestamp;
-+ int64_t diff_prediction_ns =
-+ -MIN(abs(static_cast<int64_t>(at_timestamp_ns) - rh->impl.front().timestamp),
-+ max_extrapolation_ns);
- double delta_s = time_ns_to_s(diff_prediction_ns);
- U_LOG_T("Extrapolating %f s before the front of the buffer!", delta_s);
- m_predict_relation(&rh->impl.front().relation, delta_s, out_relation);
-+ if (out_timestamp_ns) {
-+ // We extrapolated to the requested timestamp.
-+ *out_timestamp_ns = at_timestamp_ns + diff_prediction_ns;
-+ }
- return M_RELATION_HISTORY_RESULT_REVERSE_PREDICTED;
- }
- U_LOG_T("Interpolating within buffer!");
-@@ -174,6 +193,10 @@ m_relation_history_get(const struct m_relation_history *rh,
- result.linear_velocity = m_vec3_lerp(predecessor.relation.linear_velocity,
- successor.relation.linear_velocity, amount_to_lerp);
- }
-+ if (out_timestamp_ns) {
-+ // We interpolated to the requested timestamp.
-+ *out_timestamp_ns = at_timestamp_ns;
-+ }
- *out_relation = result;
- return M_RELATION_HISTORY_RESULT_INTERPOLATED;
-
-diff --git a/src/xrt/auxiliary/math/m_relation_history.h b/src/xrt/auxiliary/math/m_relation_history.h
-index 86e08ef5e..5aaa94404 100644
---- a/src/xrt/auxiliary/math/m_relation_history.h
-+++ b/src/xrt/auxiliary/math/m_relation_history.h
-@@ -83,12 +83,33 @@ m_relation_history_push_with_motion_estimation(struct m_relation_history *rh,
- * Read-only operation - doesn't remove anything from the buffer or anything like that - you can call this as often
- * as you want.
- *
-+ * @param max_extrapolation_ns Maximum time the pose may be extrapolated to. INT64_MAX means extrapolation is unlimited.
-+ * @param out_timestamp_ns Optional out parameter for the timestamp of the pose.
-+ * @param out_relation Out parameter for the resulting @ref xrt_space_relation.
-+ *
- * @public @memberof m_relation_history
- */
- enum m_relation_history_result
-+m_relation_history_get_clamped(const struct m_relation_history *rh,
-+ int64_t at_timestamp_ns,
-+ int64_t max_extrapolation_ns,
-+ int64_t *out_timestamp_ns,
-+ struct xrt_space_relation *out_relation);
-+
-+/*!
-+ * Wrapper for @ref m_relation_history_get_clamped with unlimited extrapolation.
-+ *
-+ * @copydoc m_relation_history_get_clamped
-+ *
-+ * @public @memberof m_relation_history
-+ */
-+static inline enum m_relation_history_result
- m_relation_history_get(const struct m_relation_history *rh,
- int64_t at_timestamp_ns,
-- struct xrt_space_relation *out_relation);
-+ struct xrt_space_relation *out_relation)
-+{
-+ return m_relation_history_get_clamped(rh, at_timestamp_ns, INT64_MAX, NULL, out_relation);
-+}
-
- /*!
- * Get the latest report in the buffer, if any.
---
-2.55.0
-
diff --git a/0010-d-steamvr_lh-Add-LH_MAX_EXTRAPOLATION_MS.patch b/0010-d-steamvr_lh-Add-LH_MAX_EXTRAPOLATION_MS.patch
new file mode 100644
index 0000000..0d80366
--- /dev/null
+++ b/0010-d-steamvr_lh-Add-LH_MAX_EXTRAPOLATION_MS.patch
@@ -0,0 +1,44 @@
+From d098ae99f41017945c2bacb8fcdb317c8b859085 Mon Sep 17 00:00:00 2001
+From: Sapphire <imsapphire0@gmail.com>
+Date: Wed, 26 Aug 2026 06:17:10 -0500
+Subject: [PATCH 2/2] d/steamvr_lh: Add LH_MAX_EXTRAPOLATION_MS
+
+Signed-off-by: Sapphire <imsapphire0@gmail.com>
+---
+ src/xrt/drivers/steamvr_lh/device.cpp | 13 ++++++++++++-
+ 1 file changed, 12 insertions(+), 1 deletion(-)
+
+diff --git a/src/xrt/drivers/steamvr_lh/device.cpp b/src/xrt/drivers/steamvr_lh/device.cpp
+index fc3da6066..29304677f 100644
+--- a/src/xrt/drivers/steamvr_lh/device.cpp
++++ b/src/xrt/drivers/steamvr_lh/device.cpp
+@@ -53,6 +53,7 @@
+ DEBUG_GET_ONCE_BOOL_OPTION(lh_emulate_hand, "LH_EMULATE_HAND", true)
+ DEBUG_GET_ONCE_FLOAT_OPTION(lh_override_ipd, "LH_OVERRIDE_IPD_MM", -1.0f)
+ DEBUG_GET_ONCE_BOOL_OPTION(lh_standby_on_exit, "LH_STANDBY_ON_EXIT", false)
++DEBUG_GET_ONCE_NUM_OPTION(lh_max_extrapolation_ms, "LH_MAX_EXTRAPOLATION_MS", 50)
+
+ // Each device will have its own input class.
+ struct InputClass
+@@ -740,7 +741,17 @@ ControllerDevice::get_hand_tracking(enum xrt_input_name name,
+ void
+ Device::get_pose(uint64_t at_timestamp_ns, xrt_space_relation *out_relation)
+ {
+- m_relation_history_get(this->relation_hist, at_timestamp_ns, out_relation);
++ static const int64_t max_extrapolation_ns = []() -> int64_t {
++ int64_t raw = debug_get_num_option_lh_max_extrapolation_ms();
++ if (raw == -1) {
++ return INT64_MAX;
++ }
++
++ return raw * U_TIME_1MS_IN_NS;
++ }();
++
++ m_relation_history_get_clamped(this->relation_hist, at_timestamp_ns, max_extrapolation_ns, nullptr,
++ out_relation);
+ }
+
+ xrt_result_t
+--
+2.55.0
+
diff --git a/0011-d-steamvr_lh-Add-LH_MAX_EXTRAPOLATION_MS.patch b/0011-d-steamvr_lh-Add-LH_MAX_EXTRAPOLATION_MS.patch
deleted file mode 100644
index 0d80366..0000000
--- a/0011-d-steamvr_lh-Add-LH_MAX_EXTRAPOLATION_MS.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From d098ae99f41017945c2bacb8fcdb317c8b859085 Mon Sep 17 00:00:00 2001
-From: Sapphire <imsapphire0@gmail.com>
-Date: Wed, 26 Aug 2026 06:17:10 -0500
-Subject: [PATCH 2/2] d/steamvr_lh: Add LH_MAX_EXTRAPOLATION_MS
-
-Signed-off-by: Sapphire <imsapphire0@gmail.com>
----
- src/xrt/drivers/steamvr_lh/device.cpp | 13 ++++++++++++-
- 1 file changed, 12 insertions(+), 1 deletion(-)
-
-diff --git a/src/xrt/drivers/steamvr_lh/device.cpp b/src/xrt/drivers/steamvr_lh/device.cpp
-index fc3da6066..29304677f 100644
---- a/src/xrt/drivers/steamvr_lh/device.cpp
-+++ b/src/xrt/drivers/steamvr_lh/device.cpp
-@@ -53,6 +53,7 @@
- DEBUG_GET_ONCE_BOOL_OPTION(lh_emulate_hand, "LH_EMULATE_HAND", true)
- DEBUG_GET_ONCE_FLOAT_OPTION(lh_override_ipd, "LH_OVERRIDE_IPD_MM", -1.0f)
- DEBUG_GET_ONCE_BOOL_OPTION(lh_standby_on_exit, "LH_STANDBY_ON_EXIT", false)
-+DEBUG_GET_ONCE_NUM_OPTION(lh_max_extrapolation_ms, "LH_MAX_EXTRAPOLATION_MS", 50)
-
- // Each device will have its own input class.
- struct InputClass
-@@ -740,7 +741,17 @@ ControllerDevice::get_hand_tracking(enum xrt_input_name name,
- void
- Device::get_pose(uint64_t at_timestamp_ns, xrt_space_relation *out_relation)
- {
-- m_relation_history_get(this->relation_hist, at_timestamp_ns, out_relation);
-+ static const int64_t max_extrapolation_ns = []() -> int64_t {
-+ int64_t raw = debug_get_num_option_lh_max_extrapolation_ms();
-+ if (raw == -1) {
-+ return INT64_MAX;
-+ }
-+
-+ return raw * U_TIME_1MS_IN_NS;
-+ }();
-+
-+ m_relation_history_get_clamped(this->relation_hist, at_timestamp_ns, max_extrapolation_ns, nullptr,
-+ out_relation);
- }
-
- xrt_result_t
---
-2.55.0
-
diff --git a/0011-st-oxr-add-XR_VALVE_frame_controller_interaction.patch b/0011-st-oxr-add-XR_VALVE_frame_controller_interaction.patch
new file mode 100644
index 0000000..45be3f1
--- /dev/null
+++ b/0011-st-oxr-add-XR_VALVE_frame_controller_interaction.patch
@@ -0,0 +1,393 @@
+From 9873bdc4f2432a2530c4bd559d5d80610ffbacbb Mon Sep 17 00:00:00 2001
+From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
+Date: Fri, 18 Sep 2026 14:59:50 +0900
+Subject: [PATCH 11/13] st/oxr: add XR_VALVE_frame_controller_interaction
+
+Signed-off-by: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
+---
+ CMakeLists.txt | 2 +
+ cmake/MonadoSetOptions.cmake | 1 +
+ .../XR_VALVE_frame_controller_interaction.h | 25 +++
+ src/xrt/auxiliary/bindings/bindings.json | 191 ++++++++++++++++++
+ .../include/xrt/xrt_config_build.h.cmake_in | 1 +
+ src/xrt/include/xrt/xrt_defines.h | 48 +++++
+ src/xrt/include/xrt/xrt_openxr_includes.h | 1 +
+ .../oxr_extension_support.py | 1 +
+ 8 files changed, 270 insertions(+)
+ create mode 100644 src/external/openxr_includes/openxr/XR_VALVE_frame_controller_interaction.h
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7f35c711d..f24211755 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -444,6 +444,7 @@ option(XRT_FEATURE_OPENXR_INTERACTION_CONTACTGLOVE2 "Enable XR_MND_contactglove2
+ option(XRT_FEATURE_OPENXR_INTERACTION_VIVE_COSMOS "Enable XR_HTC_vive_cosmos_controller_interaction" ON)
+ option(XRT_FEATURE_OPENXR_INTERACTION_VIVE_FOCUS3 "Enable XR_HTC_vive_focus3_controller_interaction" ON)
+ option(XRT_FEATURE_OPENXR_INTERACTION_FB_PROXIMITY "Enable XR_FB_touch_controller_proximity" ON)
++option(XRT_FEATURE_OPENXR_INTERACTION_FRAME "Enable XR_VALVE_frame_controller_interaction" ON)
+ option(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PRO "Enable XR_FB_touch_controller_pro" ON)
+ option(XRT_FEATURE_OPENXR_INTERACTION_TOUCH_PLUS "Enable XR_META_touch_controller_plus" ON)
+ option(XRT_FEATURE_OPENXR_INTERACTION_LOGITECH_MX_INK "Enable XR_LOGITECH_mx_ink_stylus_interaction" OFF)
+@@ -707,6 +708,7 @@ if(XRT_MODULE_OPENXR_STATE_TRACKER)
+ message(STATUS "# FEATURE_OPENXR_INTERACTION_EXT_EYE_GAZE: ${XRT_FEATURE_OPENXR_INTERACTION_EXT_EYE_GAZE}")
+ message(STATUS "# FEATURE_OPENXR_INTERACTION_EXT_HAND: ${XRT_FEATURE_OPENXR_INTERACTION_EXT_HAND}")
+ message(STATUS "# FEATURE_OPENXR_INTERACTION_EXT_PALM_POSE: ${XRT_FEATURE_OPENXR_INTERACTION_EXT_PALM_POSE}")
++ message(STATUS "# FEATURE_OPENXR_INTERACTION_FRAME: ${XRT_FEATURE_OPENXR_INTERACTION_FRAME}")
+ message(STATUS "# FEATURE_OPENXR_INTERACTION_KHR_GENERIC: ${XRT_FEATURE_OPENXR_INTERACTION_KHR_GENERIC}")
+ message(STATUS "# FEATURE_OPENXR_INTERACTION_LOGITECH_MX_INK: ${XRT_FEATURE_OPENXR_INTERACTION_LOGITECH_MX_INK}")
+ message(STATUS "# FEATURE_OPENXR_INTERACTION_ML2: ${XRT_FEATURE_OPENXR_INTERACTION_ML2}")
+diff --git a/cmake/MonadoSetOptions.cmake b/cmake/MonadoSetOptions.cmake
+index 8f7fa6f85..a53089d7a 100644
+--- a/cmake/MonadoSetOptions.cmake
++++ b/cmake/MonadoSetOptions.cmake
+@@ -134,6 +134,7 @@ function(monado_set_options)
+ XRT_FEATURE_OPENXR_INTERACTION_EXT_HAND
+ XRT_FEATURE_OPENXR_INTERACTION_EXT_PALM_POSE
+ XRT_FEATURE_OPENXR_INTERACTION_FB_PROXIMITY
++ XRT_FEATURE_OPENXR_INTERACTION_FRAME
+ XRT_FEATURE_OPENXR_INTERACTION_KHR_GENERIC
+ XRT_FEATURE_OPENXR_INTERACTION_ML2
+ XRT_FEATURE_OPENXR_INTERACTION_MNDX
+diff --git a/src/external/openxr_includes/openxr/XR_VALVE_frame_controller_interaction.h b/src/external/openxr_includes/openxr/XR_VALVE_frame_controller_interaction.h
+new file mode 100644
+index 000000000..d67826910
+--- /dev/null
++++ b/src/external/openxr_includes/openxr/XR_VALVE_frame_controller_interaction.h
+@@ -0,0 +1,25 @@
++// Copyright 2026, Collabora, Ltd.
++// SPDX-License-Identifier: BSL-1.0
++/*!
++ * @file
++ * @brief Preview header for XR_VALVE_frame_controller_interaction extension
++ * @ingroup external_openxr
++ */
++#ifndef XR_VALVE_FRAME_CONTROLLER_INTERACTION_H
++#define XR_VALVE_FRAME_CONTROLLER_INTERACTION_H 1
++
++#include <openxr/openxr.h>
++
++#ifdef __cplusplus
++extern "C" {
++#endif
++
++#define XR_VALVE_frame_controller_interaction 1
++#define XR_VALVE_frame_controller_interaction_SPEC_VERSION 1
++#define XR_VALVE_FRAME_CONTROLLER_INTERACTION_EXTENSION_NAME "XR_VALVE_frame_controller_interaction"
++
++#ifdef __cplusplus
++}
++#endif
++
++#endif
+\ No newline at end of file
+diff --git a/src/xrt/auxiliary/bindings/bindings.json b/src/xrt/auxiliary/bindings/bindings.json
+index 462ffbf43..003716a98 100644
+--- a/src/xrt/auxiliary/bindings/bindings.json
++++ b/src/xrt/auxiliary/bindings/bindings.json
+@@ -3258,6 +3258,197 @@
+ }
+ },
+
++ "/interaction_profiles/valve/frame_controller_valve": {
++ "title": "Steam Frame Controller",
++ "type": "tracked_controller",
++ "extension": "VALVE_frame_controller_interaction",
++ "monado_device": "XRT_DEVICE_FRAME_CONTROLLER",
++ "extended_by": ["ext/palm_pose", "grip_surface", "ext/hand_interaction_poses"],
++ "subaction_paths": [
++ "/user/hand/left",
++ "/user/hand/right"
++ ],
++ "subpaths": {
++ "/input/a": {
++ "type": "button",
++ "localized_name": "A",
++ "components": ["click", "touch"],
++ "side": "right",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_A_CLICK",
++ "touch": "XRT_INPUT_FRAME_A_TOUCH"
++ }
++ },
++ "/input/b": {
++ "type": "button",
++ "localized_name": "B",
++ "components": ["click", "touch"],
++ "side": "right",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_B_CLICK",
++ "touch": "XRT_INPUT_FRAME_B_TOUCH"
++ }
++ },
++ "/input/x": {
++ "type": "button",
++ "localized_name": "X",
++ "components": ["click", "touch"],
++ "side": "right",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_X_CLICK",
++ "touch": "XRT_INPUT_FRAME_X_TOUCH"
++ }
++ },
++ "/input/y": {
++ "type": "button",
++ "localized_name": "Y",
++ "components": ["click", "touch"],
++ "side": "right",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_Y_CLICK",
++ "touch": "XRT_INPUT_FRAME_Y_TOUCH"
++ }
++ },
++ "/input/menu": {
++ "type": "button",
++ "localized_name": "Menu",
++ "components": ["click", "touch"],
++ "side": "right",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_MENU_CLICK",
++ "touch": "XRT_INPUT_FRAME_MENU_TOUCH"
++ }
++ },
++ "/input/system": {
++ "type": "button",
++ "localized_name": "System",
++ "components": ["click", "touch"],
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_SYSTEM_CLICK",
++ "touch": "XRT_INPUT_FRAME_SYSTEM_TOUCH"
++ }
++ },
++ "/input/bumper": {
++ "type": "button",
++ "localized_name": "Bumper",
++ "components": ["click", "touch"],
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_BUMPER_CLICK",
++ "touch": "XRT_INPUT_FRAME_BUMPER_TOUCH"
++ }
++ },
++ "/input/squeeze": {
++ "type": "button",
++ "localized_name": "Squeeze",
++ "components": ["click", "touch", "value"],
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_SQUEEZE_CLICK",
++ "touch": "XRT_INPUT_FRAME_SQUEEZE_TOUCH",
++ "value": "XRT_INPUT_FRAME_SQUEEZE_VALUE"
++ }
++ },
++ "/input/trigger": {
++ "type": "trigger",
++ "localized_name": "Trigger",
++ "components": ["click", "value", "touch"],
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_TRIGGER_CLICK",
++ "value": "XRT_INPUT_FRAME_TRIGGER_VALUE",
++ "touch": "XRT_INPUT_FRAME_TRIGGER_TOUCH"
++ }
++ },
++ "/input/thumbstick": {
++ "type": "joystick",
++ "localized_name": "Thumbstick",
++ "components": ["click", "touch", "position"],
++ "dpad_emulation": {
++ "position": "position",
++ "activate": "click",
++ "center": true
++ },
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_THUMBSTICK_CLICK",
++ "touch": "XRT_INPUT_FRAME_THUMBSTICK_TOUCH",
++ "position": "XRT_INPUT_FRAME_THUMBSTICK"
++ }
++ },
++ "/input/grip": {
++ "type": "pose",
++ "localized_name": "Grip",
++ "components": ["pose"],
++ "monado_bindings": {
++ "pose": "XRT_INPUT_FRAME_GRIP_POSE"
++ }
++ },
++ "/input/aim": {
++ "type": "pose",
++ "localized_name": "Aim",
++ "components": ["pose"],
++ "monado_bindings": {
++ "pose": "XRT_INPUT_FRAME_AIM_POSE"
++ }
++ },
++ "/input/dpad_up": {
++ "type": "button",
++ "localized_name": "D-Pad Up",
++ "components": ["click", "touch"],
++ "side": "left",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_DPAD_UP_CLICK",
++ "touch": "XRT_INPUT_FRAME_DPAD_UP_TOUCH"
++ }
++ },
++ "/input/dpad_down": {
++ "type": "button",
++ "localized_name": "D-Pad Down",
++ "components": ["click", "touch"],
++ "side": "left",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_DPAD_DOWN_CLICK",
++ "touch": "XRT_INPUT_FRAME_DPAD_DOWN_TOUCH"
++ }
++ },
++ "/input/dpad_left": {
++ "type": "button",
++ "localized_name": "D-Pad Left",
++ "components": ["click", "touch"],
++ "side": "left",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_DPAD_LEFT_CLICK",
++ "touch": "XRT_INPUT_FRAME_DPAD_LEFT_TOUCH"
++ }
++ },
++ "/input/dpad_right": {
++ "type": "button",
++ "localized_name": "D-Pad Right",
++ "components": ["click", "touch"],
++ "side": "left",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_DPAD_RIGHT_CLICK",
++ "touch": "XRT_INPUT_FRAME_DPAD_RIGHT_TOUCH"
++ }
++ },
++ "/input/view": {
++ "type": "button",
++ "localized_name": "View",
++ "components": ["click", "touch"],
++ "side": "left",
++ "monado_bindings": {
++ "click": "XRT_INPUT_FRAME_VIEW_CLICK",
++ "touch": "XRT_INPUT_FRAME_VIEW_TOUCH"
++ }
++ },
++ "/output/haptic": {
++ "type": "vibration",
++ "localized_name": "Haptic",
++ "components": ["haptic"],
++ "monado_bindings": {
++ "haptic": "XRT_OUTPUT_NAME_FRAME_HAPTIC"
++ }
++ }
++ }
++ },
++
+ "/interaction_profiles/facebook/touch_controller_pro": {
+ "title": "Meta Quest Touch Pro Controller",
+ "type": "tracked_controller",
+diff --git a/src/xrt/include/xrt/xrt_config_build.h.cmake_in b/src/xrt/include/xrt/xrt_config_build.h.cmake_in
+index 873b15b0a..81c547b90 100644
+--- a/src/xrt/include/xrt/xrt_config_build.h.cmake_in
++++ b/src/xrt/include/xrt/xrt_config_build.h.cmake_in
+@@ -75,6 +75,7 @@
+ #cmakedefine XRT_FEATURE_OPENXR_INTERACTION_EXT_HAND
+ #cmakedefine XRT_FEATURE_OPENXR_INTERACTION_EXT_PALM_POSE
+ #cmakedefine XRT_FEATURE_OPENXR_INTERACTION_FB_PROXIMITY
++#cmakedefine XRT_FEATURE_OPENXR_INTERACTION_FRAME
+ #cmakedefine XRT_FEATURE_OPENXR_INTERACTION_KHR_GENERIC
+ #cmakedefine XRT_FEATURE_OPENXR_INTERACTION_LOGITECH_MX_INK
+ #cmakedefine XRT_FEATURE_OPENXR_INTERACTION_ML2
+diff --git a/src/xrt/include/xrt/xrt_defines.h b/src/xrt/include/xrt/xrt_defines.h
+index 996010e1a..3fa2bdd6a 100644
+--- a/src/xrt/include/xrt/xrt_defines.h
++++ b/src/xrt/include/xrt/xrt_defines.h
+@@ -832,6 +832,9 @@ enum xrt_device_name
+ XRT_DEVICE_TOUCH_CONTROLLER_QUEST_1_RIFT_S,
+ XRT_DEVICE_TOUCH_CONTROLLER_QUEST_2,
+
++ //! XR_VALVE_frame_controller_interaction
++ XRT_DEVICE_FRAME_CONTROLLER,
++
+ // XR_KHR_generic_controller
+ XRT_DEVICE_GENERIC_CONTROLLER,
+
+@@ -1443,6 +1446,48 @@ enum xrt_input_name
+ XRT_INPUT_MAGNETRA2_GRIP_POSE = XRT_INPUT_NAME(0X150B, POSE),
+ XRT_INPUT_MAGNETRA2_AIM_POSE = XRT_INPUT_NAME(0X150C, POSE),
+
++ // XR_VALVE_frame_controller_interaction
++ // Right controller: a, b, x, y, menu
++ XRT_INPUT_FRAME_A_CLICK = XRT_INPUT_NAME(0x1600, BOOLEAN),
++ XRT_INPUT_FRAME_A_TOUCH = XRT_INPUT_NAME(0x1601, BOOLEAN),
++ XRT_INPUT_FRAME_B_CLICK = XRT_INPUT_NAME(0x1602, BOOLEAN),
++ XRT_INPUT_FRAME_B_TOUCH = XRT_INPUT_NAME(0x1603, BOOLEAN),
++ XRT_INPUT_FRAME_X_CLICK = XRT_INPUT_NAME(0x1604, BOOLEAN),
++ XRT_INPUT_FRAME_X_TOUCH = XRT_INPUT_NAME(0x1605, BOOLEAN),
++ XRT_INPUT_FRAME_Y_CLICK = XRT_INPUT_NAME(0x1606, BOOLEAN),
++ XRT_INPUT_FRAME_Y_TOUCH = XRT_INPUT_NAME(0x1607, BOOLEAN),
++ XRT_INPUT_FRAME_MENU_CLICK = XRT_INPUT_NAME(0x1608, BOOLEAN),
++ XRT_INPUT_FRAME_MENU_TOUCH = XRT_INPUT_NAME(0x1609, BOOLEAN),
++
++ // Left controller: dpad, view
++ XRT_INPUT_FRAME_DPAD_UP_CLICK = XRT_INPUT_NAME(0x160A, BOOLEAN),
++ XRT_INPUT_FRAME_DPAD_UP_TOUCH = XRT_INPUT_NAME(0x160B, BOOLEAN),
++ XRT_INPUT_FRAME_DPAD_DOWN_CLICK = XRT_INPUT_NAME(0x160C, BOOLEAN),
++ XRT_INPUT_FRAME_DPAD_DOWN_TOUCH = XRT_INPUT_NAME(0x160D, BOOLEAN),
++ XRT_INPUT_FRAME_DPAD_LEFT_CLICK = XRT_INPUT_NAME(0x160E, BOOLEAN),
++ XRT_INPUT_FRAME_DPAD_LEFT_TOUCH = XRT_INPUT_NAME(0x160F, BOOLEAN),
++ XRT_INPUT_FRAME_DPAD_RIGHT_CLICK = XRT_INPUT_NAME(0x1610, BOOLEAN),
++ XRT_INPUT_FRAME_DPAD_RIGHT_TOUCH = XRT_INPUT_NAME(0x1611, BOOLEAN),
++ XRT_INPUT_FRAME_VIEW_CLICK = XRT_INPUT_NAME(0x1612, BOOLEAN),
++ XRT_INPUT_FRAME_VIEW_TOUCH = XRT_INPUT_NAME(0x1613, BOOLEAN),
++
++ // Both: system, bumper, squeeze, trigger, thumbstick
++ XRT_INPUT_FRAME_SYSTEM_CLICK = XRT_INPUT_NAME(0x1614, BOOLEAN),
++ XRT_INPUT_FRAME_SYSTEM_TOUCH = XRT_INPUT_NAME(0x1615, BOOLEAN),
++ XRT_INPUT_FRAME_BUMPER_CLICK = XRT_INPUT_NAME(0x1616, BOOLEAN),
++ XRT_INPUT_FRAME_BUMPER_TOUCH = XRT_INPUT_NAME(0x1617, BOOLEAN),
++ XRT_INPUT_FRAME_SQUEEZE_CLICK = XRT_INPUT_NAME(0x1618, BOOLEAN),
++ XRT_INPUT_FRAME_SQUEEZE_TOUCH = XRT_INPUT_NAME(0x1619, BOOLEAN),
++ XRT_INPUT_FRAME_SQUEEZE_VALUE = XRT_INPUT_NAME(0x161A, VEC1_ZERO_TO_ONE),
++ XRT_INPUT_FRAME_TRIGGER_CLICK = XRT_INPUT_NAME(0x161B, BOOLEAN),
++ XRT_INPUT_FRAME_TRIGGER_TOUCH = XRT_INPUT_NAME(0x161C, BOOLEAN),
++ XRT_INPUT_FRAME_TRIGGER_VALUE = XRT_INPUT_NAME(0x161D, VEC1_ZERO_TO_ONE),
++ XRT_INPUT_FRAME_THUMBSTICK_CLICK = XRT_INPUT_NAME(0x161E, BOOLEAN),
++ XRT_INPUT_FRAME_THUMBSTICK_TOUCH = XRT_INPUT_NAME(0x161F, BOOLEAN),
++ XRT_INPUT_FRAME_THUMBSTICK = XRT_INPUT_NAME(0x1620, VEC2_MINUS_ONE_TO_ONE),
++ XRT_INPUT_FRAME_GRIP_POSE = XRT_INPUT_NAME(0x1621, POSE),
++ XRT_INPUT_FRAME_AIM_POSE = XRT_INPUT_NAME(0x1622, POSE),
++
+ // clang-format on
+ };
+
+@@ -1681,6 +1726,9 @@ enum xrt_output_name
+
+ XRT_OUTPUT_NAME_CONTACTGLOVE2_HAPTIC = XRT_OUTPUT_NAME(0x0C00, VIBRATION),
+
++ //! XR_VALVE_frame_controller_interaction
++ XRT_OUTPUT_NAME_FRAME_HAPTIC = XRT_OUTPUT_NAME(0x0D00, VIBRATION),
++
+ // clang-format on
+ // Make sure to add a trailing comma to any new entries.
+ };
+diff --git a/src/xrt/include/xrt/xrt_openxr_includes.h b/src/xrt/include/xrt/xrt_openxr_includes.h
+index e92948fb8..78f73a26c 100644
+--- a/src/xrt/include/xrt/xrt_openxr_includes.h
++++ b/src/xrt/include/xrt/xrt_openxr_includes.h
+@@ -75,3 +75,4 @@ typedef __eglMustCastToProperFunctionPointerType (*PFNEGLGETPROCADDRESSPROC)(con
+ #include "openxr/XR_MNDX_flipvr.h"
+ #include "openxr/XR_MND_query_egl_device.h"
+ #include "openxr/XR_MND_contactglove2_interaction.h"
++#include "openxr/XR_VALVE_frame_controller_interaction.h"
+diff --git a/src/xrt/state_trackers/oxr/extension_support/oxr_extension_support.py b/src/xrt/state_trackers/oxr/extension_support/oxr_extension_support.py
+index e9be594f9..12b54fec4 100644
+--- a/src/xrt/state_trackers/oxr/extension_support/oxr_extension_support.py
++++ b/src/xrt/state_trackers/oxr/extension_support/oxr_extension_support.py
+@@ -116,6 +116,7 @@ EXTENSIONS = (
+ ['XR_MSFT_unbounded_reference_space', 'XRT_FEATURE_OPENXR_SPACE_UNBOUNDED'],
+ ['XR_OPPO_controller_interaction', 'XRT_FEATURE_OPENXR_INTERACTION_OPPO'],
+ ['XR_VARJO_quad_views', 'XRT_FEATURE_OPENXR_VARJO_QUAD_VIEWS'],
++ ['XR_VALVE_frame_controller_interaction', 'XRT_FEATURE_OPENXR_INTERACTION_FRAME'],
+ # Experimental extensions, sorted alphabetically.
+ ['XR_EXTX_overlay', 'XRT_FEATURE_OPENXR_OVERLAY'],
+ ['XR_HTCX_vive_tracker_interaction', 'ALWAYS_DISABLED'],
+--
+2.56.0
+
diff --git a/0012-st-oxr-Add-quirk-to-disable-layerFlags-validation.patch b/0012-st-oxr-Add-quirk-to-disable-layerFlags-validation.patch
new file mode 100644
index 0000000..9a915d0
--- /dev/null
+++ b/0012-st-oxr-Add-quirk-to-disable-layerFlags-validation.patch
@@ -0,0 +1,111 @@
+From 6b03fa953e4309e1dd7c011434a4147435bca803 Mon Sep 17 00:00:00 2001
+From: Patrick Nicolas <patricknicolas@laposte.net>
+Date: Mon, 26 Oct 2026 18:58:21 +0100
+Subject: [PATCH 12/13] st/oxr: Add quirk to disable layerFlags validation
+
+Signed-off-by: Patrick Nicolas <patricknicolas@laposte.net>
+Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/3063>
+---
+ src/xrt/state_trackers/oxr/oxr_instance.c | 45 ++++++++++---------
+ src/xrt/state_trackers/oxr/oxr_objects.h | 7 +++
+ .../oxr/oxr_session_frame_end.c | 3 ++
+ 3 files changed, 34 insertions(+), 21 deletions(-)
+
+diff --git a/src/xrt/state_trackers/oxr/oxr_instance.c b/src/xrt/state_trackers/oxr/oxr_instance.c
+index 82e4ed4f8..4ecf12770 100644
+--- a/src/xrt/state_trackers/oxr/oxr_instance.c
++++ b/src/xrt/state_trackers/oxr/oxr_instance.c
+@@ -209,6 +209,7 @@ apply_quirks(struct oxr_logger *log, struct oxr_instance *inst, const XrInstance
+ inst->quirks.parallel_views = false;
+ inst->quirks.no_texture_source_alpha = false;
+ inst->quirks.no_usage_bit_validation_in_create_swapchain = false;
++ inst->quirks.no_layer_flags_bit_validation = false;
+
+ if (starts_with("UnrealEngine", inst->appinfo.detected.engine.name) && //
+ inst->appinfo.detected.engine.major == 4 && //
+@@ -426,27 +427,29 @@ oxr_instance_create(struct oxr_logger *log,
+ "\tquirks.skip_end_session: %s\n"
+ "\tquirks.parallel_views: %s\n"
+ "\tquirks.no_texture_source_alpha: %s\n"
+- "\tquirks.ignore_invalid_swapchain_usage_bits: %s\n",
+- createInfo->applicationInfo.applicationName, //
+- createInfo->applicationInfo.applicationVersion, //
+- createInfo->applicationInfo.engineName, //
+- createInfo->applicationInfo.engineVersion, //
+- XR_VERSION_MAJOR(createInfo->applicationInfo.apiVersion), //
+- XR_VERSION_MINOR(createInfo->applicationInfo.apiVersion), //
+- XR_VERSION_PATCH(createInfo->applicationInfo.apiVersion), //
+- inst->appinfo.detected.engine.name, //
+- inst->appinfo.detected.engine.major, //
+- inst->appinfo.detected.engine.minor, //
+- inst->appinfo.detected.engine.patch, //
+- inst->quirks.disable_vulkan_format_depth ? "true" : "false", //
+- inst->quirks.disable_vulkan_format_depth_stencil ? "true" : "false", //
+- inst->quirks.disable_quad_views ? "true" : "false", //
+- inst->quirks.no_validation_error_in_create_ref_space ? "true" : "false", //
+- inst->quirks.skip_end_session ? "true" : "false", //
+- inst->quirks.parallel_views ? "true" : "false", //
+- inst->quirks.no_texture_source_alpha ? "true" : "false", //
+- inst->quirks.no_usage_bit_validation_in_create_swapchain ? "true" : "false" //
+- ); //
++ "\tquirks.ignore_invalid_swapchain_usage_bits: %s\n"
++ "\tquirks.ignore_invalid_layer_flags_bits: %s\n",
++ createInfo->applicationInfo.applicationName, //
++ createInfo->applicationInfo.applicationVersion, //
++ createInfo->applicationInfo.engineName, //
++ createInfo->applicationInfo.engineVersion, //
++ XR_VERSION_MAJOR(createInfo->applicationInfo.apiVersion), //
++ XR_VERSION_MINOR(createInfo->applicationInfo.apiVersion), //
++ XR_VERSION_PATCH(createInfo->applicationInfo.apiVersion), //
++ inst->appinfo.detected.engine.name, //
++ inst->appinfo.detected.engine.major, //
++ inst->appinfo.detected.engine.minor, //
++ inst->appinfo.detected.engine.patch, //
++ inst->quirks.disable_vulkan_format_depth ? "true" : "false", //
++ inst->quirks.disable_vulkan_format_depth_stencil ? "true" : "false", //
++ inst->quirks.disable_quad_views ? "true" : "false", //
++ inst->quirks.no_validation_error_in_create_ref_space ? "true" : "false", //
++ inst->quirks.skip_end_session ? "true" : "false", //
++ inst->quirks.parallel_views ? "true" : "false", //
++ inst->quirks.no_texture_source_alpha ? "true" : "false", //
++ inst->quirks.no_usage_bit_validation_in_create_swapchain ? "true" : "false", //
++ inst->quirks.no_layer_flags_bit_validation ? "true" : "false" //
++ ); //
+
+ #ifdef XRT_FEATURE_RENDERDOC
+
+diff --git a/src/xrt/state_trackers/oxr/oxr_objects.h b/src/xrt/state_trackers/oxr/oxr_objects.h
+index c8fbdadcd..0839b1606 100644
+--- a/src/xrt/state_trackers/oxr/oxr_objects.h
++++ b/src/xrt/state_trackers/oxr/oxr_objects.h
+@@ -1286,6 +1286,13 @@ struct oxr_instance
+ * calling xrCreateSwapchain.
+ */
+ bool no_usage_bit_validation_in_create_swapchain;
++
++ /*!
++ * Don't return XR_ERROR_VALIDATION_FAILURE if an
++ * application sets unsupported flags in XrCompositionLayer
++ * when calling xrEndFrame.
++ */
++ bool no_layer_flags_bit_validation;
+ } quirks;
+
+ //! Debug messengers
+diff --git a/src/xrt/state_trackers/oxr/oxr_session_frame_end.c b/src/xrt/state_trackers/oxr/oxr_session_frame_end.c
+index 5bc5d81fb..fb6cf09f9 100644
+--- a/src/xrt/state_trackers/oxr/oxr_session_frame_end.c
++++ b/src/xrt/state_trackers/oxr/oxr_session_frame_end.c
+@@ -412,6 +412,9 @@ verify_layer_flags(struct oxr_logger *log,
+ uint32_t layer_index,
+ XrCompositionLayerFlags layerFlags)
+ {
++ if (sess->sys->inst->quirks.no_layer_flags_bit_validation) {
++ return XR_SUCCESS;
++ }
+
+ // Check if any invalid bits are set
+ if ((layerFlags & ~XR_COMPOSITION_LAYER_FLAGS_ALL_VALID) != 0) {
+--
+2.56.0
+
diff --git a/0013-st-oxr-enable-layer-flags-quirk-for-FS2020.patch b/0013-st-oxr-enable-layer-flags-quirk-for-FS2020.patch
new file mode 100644
index 0000000..4683f3f
--- /dev/null
+++ b/0013-st-oxr-enable-layer-flags-quirk-for-FS2020.patch
@@ -0,0 +1,32 @@
+From 7f8d9723e09978fd13d588cedef4815e1a8c5674 Mon Sep 17 00:00:00 2001
+From: Patrick Nicolas <patricknicolas@laposte.net>
+Date: Mon, 26 Oct 2026 19:13:17 +0100
+Subject: [PATCH 13/13] st/oxr: enable layer flags quirk for FS2020
+
+Issue reported in https://github.com/WiVRn/WiVRn/issues/1193
+
+Signed-off-by: Patrick Nicolas <patricknicolas@laposte.net>
+Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/3063>
+---
+ src/xrt/state_trackers/oxr/oxr_instance.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/src/xrt/state_trackers/oxr/oxr_instance.c b/src/xrt/state_trackers/oxr/oxr_instance.c
+index 4ecf12770..c2fcd5f25 100644
+--- a/src/xrt/state_trackers/oxr/oxr_instance.c
++++ b/src/xrt/state_trackers/oxr/oxr_instance.c
+@@ -228,6 +228,11 @@ apply_quirks(struct oxr_logger *log, struct oxr_instance *inst, const XrInstance
+ inst->quirks.no_usage_bit_validation_in_create_swapchain = true;
+ }
+
++ // Microsoft Flight Simulator 2020 writes garbage in layerFlags for xrEndFrame
++ if (strcmp("FS2020", create_info->applicationInfo.applicationName) == 0) {
++ inst->quirks.no_layer_flags_bit_validation = true;
++ }
++
+ // Currently always true.
+ inst->quirks.no_validation_error_in_create_ref_space = true;
+
+--
+2.56.0
+
diff --git a/sources b/sources
index d42ace0..9129db4 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (WiVRn-v26.9.tar.gz) = 4a550ccc698a2c8926d5d71b91551df1bb00976540b3920e90b52231d615559d4adef882afb22ded7a6789bdd71e3a52a299b0d1cee5f56a7c9bf811c41f8d47
-SHA512 (monado-src-f037264d23e2472a444a157370647fcd601ed81b.tar.bz2) = e81ae6e0afd23873e40a98506873e98ac86e9390368f52d72f19cfbe19fd2d5fb392f79071618f55a760d67ae9ba4369cf35b877318752172ab6169e0221616c
+SHA512 (WiVRn-v26.11.tar.gz) = 0557d361d13956a16be6850757b8c2c4be0313f46237f590def29d601265f0a7b00cc1682cbf3636ab169c3ee6cb493bacdabec658aad3b6da257af5258975f6
+SHA512 (monado-src-8b259763fdd23c46592fd4cdd30b4eea997d4b70.tar.bz2) = 82201c0220a02f744fd72340c9863d8627cf5de600453ea0e0a7a42902c5bb226859d99c3240207c28d4dcb268a5e89798babb4b215d5182cad224333196c194
diff --git a/wivrn.spec b/wivrn.spec
index 215ff12..a335a85 100644
--- a/wivrn.spec
+++ b/wivrn.spec
@@ -7,13 +7,13 @@
# WiVRn is based on Monado, we need the full source
# Monado base source (find in monado-rev file)
%global forgeurl1 https://gitlab.freedesktop.org/monado/monado
-%global commit1 f037264d23e2472a444a157370647fcd601ed81b
+%global commit1 8b259763fdd23c46592fd4cdd30b4eea997d4b70
%global monado_version 25.1.0
%forgemeta
Name: wivrn
-Version: 26.9
+Version: 26.11
Release: %autorelease
Summary: An OpenXR streaming application to a standalone headset
@@ -58,11 +58,15 @@ Patch0007: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/
# downstream-only - WiVRn specific Monado patches
Patch0008: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0008-configure-u_git_tag-in-WiVRn.patch
# downstream-only - WiVRn specific Monado patches
-Patch0009: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0009-ipc-join-client-threads-before-teardown.patch
+Patch0009: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0009-a-math-Add-m_relation_history_get_clamped.patch
# downstream-only - WiVRn specific Monado patches
-Patch0010: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0010-a-math-Add-m_relation_history_get_clamped.patch
+Patch0010: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0010-d-steamvr_lh-Add-LH_MAX_EXTRAPOLATION_MS.patch
# downstream-only - WiVRn specific Monado patches
-Patch0011: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0011-d-steamvr_lh-Add-LH_MAX_EXTRAPOLATION_MS.patch
+Patch0011: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0011-st-oxr-add-XR_VALVE_frame_controller_interaction.patch
+# downstream-only - WiVRn specific Monado patches
+Patch0012: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0012-st-oxr-Add-quirk-to-disable-layerFlags-validation.patch
+# downstream-only - WiVRn specific Monado patches
+Patch0013: https://raw.githubusercontent.com/WiVRn/WiVRn/refs/tags/%{tag0}/patches/monado/0013-st-oxr-enable-layer-flags-quirk-for-FS2020.patch
BuildRequires: boost-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 20:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 20:22 [rpms/wivrn] f44: Update to v26.11 (fedora#2585676) Jonathan Steffan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox