Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
# Keep in sync with CMakeLists.txt monado rev
|
# Keep in sync with CMakeLists.txt monado rev
|
||||||
rev = builtins.readFile ./monado-rev;
|
rev = builtins.readFile ./monado-rev;
|
||||||
# Nix will output the correct hash when it doesn't match
|
# Nix will output the correct hash when it doesn't match
|
||||||
hash = "sha256-asb4uwuu+UEgznlOoAka+xG6Zj68lPHWiPN072LpTQQ=";
|
hash = "sha256-cVXP/iveB77Sp+TArE5ZYm3Xd/PkjN0keuNJY8GU0f0=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
62013b7403be3d9e6e8b983787331219f5925d0a
|
1cafc3a42dafa126227b7782a04fdcb62f1e403e
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 84758f77a11a31e144d2120a465a954287eb0f67 Mon Sep 17 00:00:00 2001
|
From 104babdb5929b053824a0ac4436a4a1a25d99259 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Tue, 22 Oct 2024 15:23:19 +0200
|
Date: Tue, 22 Oct 2024 15:23:19 +0200
|
||||||
Subject: [PATCH 1/7] c/multi: early wake of compositor
|
Subject: [PATCH 1/8] c/multi: early wake of compositor
|
||||||
|
|
||||||
---
|
---
|
||||||
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
|
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
|
||||||
@@ -51,7 +51,7 @@ index 3351defa4..e8f0c8295 100644
|
|||||||
{
|
{
|
||||||
int64_t predicted_display_time_ns;
|
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
|
diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c
|
||||||
index be763d1c1..22c801f65 100644
|
index cf8e2e525..94413b090 100644
|
||||||
--- a/src/xrt/compositor/multi/comp_multi_system.c
|
--- a/src/xrt/compositor/multi/comp_multi_system.c
|
||||||
+++ b/src/xrt/compositor/multi/comp_multi_system.c
|
+++ b/src/xrt/compositor/multi/comp_multi_system.c
|
||||||
@@ -23,6 +23,8 @@
|
@@ -23,6 +23,8 @@
|
||||||
@@ -93,7 +93,7 @@ index be763d1c1..22c801f65 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@@ -527,10 +536,13 @@ multi_main_loop(struct multi_system_compositor *msc)
|
@@ -528,10 +537,13 @@ multi_main_loop(struct multi_system_compositor *msc)
|
||||||
broadcast_timings_to_clients(msc, predicted_display_time_ns);
|
broadcast_timings_to_clients(msc, predicted_display_time_ns);
|
||||||
|
|
||||||
// Now we can wait.
|
// Now we can wait.
|
||||||
@@ -109,7 +109,7 @@ index be763d1c1..22c801f65 100644
|
|||||||
|
|
||||||
// Now we know the diff, broadcast to pacers.
|
// Now we know the diff, broadcast to pacers.
|
||||||
broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns);
|
broadcast_timings_to_pacers(msc, predicted_display_time_ns, predicted_display_period_ns, diff_ns);
|
||||||
@@ -707,6 +719,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
|
@@ -708,6 +720,8 @@ system_compositor_destroy(struct xrt_system_compositor *xsc)
|
||||||
xrt_comp_native_destroy(&msc->xcn);
|
xrt_comp_native_destroy(&msc->xcn);
|
||||||
|
|
||||||
os_mutex_destroy(&msc->list_and_timing_lock);
|
os_mutex_destroy(&msc->list_and_timing_lock);
|
||||||
@@ -118,7 +118,7 @@ index be763d1c1..22c801f65 100644
|
|||||||
|
|
||||||
free(msc);
|
free(msc);
|
||||||
}
|
}
|
||||||
@@ -761,6 +775,8 @@ comp_multi_create_system_compositor(struct xrt_compositor_native *xcn,
|
@@ -762,6 +776,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;
|
msc->sessions.state = do_warm_start ? MULTI_SYSTEM_STATE_INIT_WARM_START : MULTI_SYSTEM_STATE_STOPPED;
|
||||||
|
|
||||||
os_mutex_init(&msc->list_and_timing_lock);
|
os_mutex_init(&msc->list_and_timing_lock);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From b73d7a32daa626ae401543e1c3ed8fd8d8290f8d Mon Sep 17 00:00:00 2001
|
From 67ce4429a092565582c0932413b1a132e6a66ea4 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Tue, 2 Apr 2024 17:14:42 +0200
|
Date: Tue, 2 Apr 2024 17:14:42 +0200
|
||||||
Subject: [PATCH 2/7] ipc/server: Always listen to stdin
|
Subject: [PATCH 2/8] ipc/server: Always listen to stdin
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +-
|
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +-
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From a85beae795aba8f82abab849e9e5c2ce74511357 Mon Sep 17 00:00:00 2001
|
From 9a4aee03233c05306e252c6cf33543d3a64fff6d Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Tue, 8 Oct 2024 22:13:15 +0200
|
Date: Tue, 8 Oct 2024 22:13:15 +0200
|
||||||
Subject: [PATCH 3/7] Use extern socket fd
|
Subject: [PATCH 3/8] Use extern socket fd
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
|
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
From f472a02f86bd98e0cb88847fd8c9104bbd5c74f5 Mon Sep 17 00:00:00 2001
|
From 4435e995c0ced6d670167256cad69b0de1f72e16 Mon Sep 17 00:00:00 2001
|
||||||
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
|
From: galister <85970-galister@users.noreply.gitlab.freedesktop.org>
|
||||||
Date: Sat, 23 Nov 2024 02:42:12 +0900
|
Date: Sat, 23 Nov 2024 02:42:12 +0900
|
||||||
Subject: [PATCH 4/7] change environment blend mode selection logic
|
Subject: [PATCH 4/8] change environment blend mode selection logic
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
|
src/xrt/compositor/multi/comp_multi_system.c | 26 +++++++++++++-------
|
||||||
1 file changed, 17 insertions(+), 9 deletions(-)
|
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
|
diff --git a/src/xrt/compositor/multi/comp_multi_system.c b/src/xrt/compositor/multi/comp_multi_system.c
|
||||||
index 22c801f65..1155bc67e 100644
|
index 94413b090..0d958c3af 100644
|
||||||
--- a/src/xrt/compositor/multi/comp_multi_system.c
|
--- a/src/xrt/compositor/multi/comp_multi_system.c
|
||||||
+++ b/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
|
@@ -232,23 +232,31 @@ find_active_blend_mode(struct multi_compositor **overlay_sorted_clients, size_t
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 7c01c47b2a1c4da040e0d25f4b9cb760ae88aa25 Mon Sep 17 00:00:00 2001
|
From cb1191f81a027972d050f9f30a0e418a31b35f5a Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Sat, 15 Mar 2025 22:19:48 +0100
|
Date: Sat, 15 Mar 2025 22:19:48 +0100
|
||||||
Subject: [PATCH 5/7] st/oxr: forward 0 refresh rate
|
Subject: [PATCH 5/8] st/oxr: forward 0 refresh rate
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +-----
|
src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +-----
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 240edeee8136b72b0c108b39f9eb032138683a46 Mon Sep 17 00:00:00 2001
|
From e22cf0edf3abedc59e98416ac4d62e9253d6ddd8 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Wed, 11 Sep 2024 22:56:29 +0200
|
Date: Wed, 11 Sep 2024 22:56:29 +0200
|
||||||
Subject: [PATCH 6/7] Replace distortion with foveation
|
Subject: [PATCH 6/8] Replace distortion with foveation
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/compositor/CMakeLists.txt | 4 +-
|
src/xrt/compositor/CMakeLists.txt | 4 +-
|
||||||
@@ -41,7 +41,7 @@ index 1ba5ec438..eb068f5fc 100644
|
|||||||
render/render_interface.h
|
render/render_interface.h
|
||||||
render/render_resources.c
|
render/render_resources.c
|
||||||
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||||
index e45d33e22..d2518585c 100644
|
index c5ec9e7de..fecc368a8 100644
|
||||||
--- a/src/xrt/compositor/main/comp_renderer.c
|
--- a/src/xrt/compositor/main/comp_renderer.c
|
||||||
+++ b/src/xrt/compositor/main/comp_renderer.c
|
+++ b/src/xrt/compositor/main/comp_renderer.c
|
||||||
@@ -936,7 +936,8 @@ dispatch_compute(struct comp_renderer *r,
|
@@ -936,7 +936,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||||
@@ -623,7 +623,7 @@ index d5d2bc4cb..d74ec78dd 100644
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c
|
diff --git a/src/xrt/compositor/render/render_resources.c b/src/xrt/compositor/render/render_resources.c
|
||||||
index ccc6f10cf..7d4d9cddb 100644
|
index 6e8cece0d..95cd86b37 100644
|
||||||
--- a/src/xrt/compositor/render/render_resources.c
|
--- a/src/xrt/compositor/render/render_resources.c
|
||||||
+++ b/src/xrt/compositor/render/render_resources.c
|
+++ b/src/xrt/compositor/render/render_resources.c
|
||||||
@@ -184,14 +184,15 @@ init_mesh_ubo_buffers(struct vk_bundle *vk, struct render_buffer ubo[XRT_MAX_VIE
|
@@ -184,14 +184,15 @@ init_mesh_ubo_buffers(struct vk_bundle *vk, struct render_buffer ubo[XRT_MAX_VIE
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From db19f48adcc6e9395bf93a920623b48b86a9f378 Mon Sep 17 00:00:00 2001
|
From 6d3a2857d6495e89b4e85adc752f31c4d1ef9665 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Sun, 31 Aug 2025 17:05:49 +0200
|
Date: Sun, 31 Aug 2025 17:05:49 +0200
|
||||||
Subject: [PATCH 7/7] Limit foveation samples per pixel
|
Subject: [PATCH 7/8] Limit foveation samples per pixel
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/compositor/shaders/distortion.comp | 12 +++++++++---
|
src/xrt/compositor/shaders/distortion.comp | 12 +++++++++---
|
||||||
|
|||||||
+10
-10
@@ -1,7 +1,7 @@
|
|||||||
From 36c63e58e4d54c31872b95fdc7fb431c8cfc57ab Mon Sep 17 00:00:00 2001
|
From e6a73b6e07465ea7efc9d7c39ed7e817a4de4242 Mon Sep 17 00:00:00 2001
|
||||||
From: Jakob Bornecrantz <tbornecrantz@nvidia.com>
|
From: Jakob Bornecrantz <tbornecrantz@nvidia.com>
|
||||||
Date: Fri, 15 Nov 2024 22:51:32 +0000
|
Date: Fri, 15 Nov 2024 22:51:32 +0000
|
||||||
Subject: [PATCH] ipc: Add callbacks and unify main functions
|
Subject: [PATCH 8/8] ipc: Add callbacks and unify main functions
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/ipc/server/ipc_server_interface.h | 58 +++++++++----
|
src/xrt/ipc/server/ipc_server_interface.h | 58 +++++++++----
|
||||||
@@ -10,7 +10,7 @@ Subject: [PATCH] ipc: Add callbacks and unify main functions
|
|||||||
3 files changed, 118 insertions(+), 62 deletions(-)
|
3 files changed, 118 insertions(+), 62 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/xrt/ipc/server/ipc_server_interface.h b/src/xrt/ipc/server/ipc_server_interface.h
|
diff --git a/src/xrt/ipc/server/ipc_server_interface.h b/src/xrt/ipc/server/ipc_server_interface.h
|
||||||
index b870a52c8c..1b44af8a82 100644
|
index b870a52c8..1b44af8a8 100644
|
||||||
--- a/src/xrt/ipc/server/ipc_server_interface.h
|
--- a/src/xrt/ipc/server/ipc_server_interface.h
|
||||||
+++ b/src/xrt/ipc/server/ipc_server_interface.h
|
+++ b/src/xrt/ipc/server/ipc_server_interface.h
|
||||||
@@ -10,12 +10,10 @@
|
@@ -10,12 +10,10 @@
|
||||||
@@ -108,10 +108,10 @@ index b870a52c8c..1b44af8a82 100644
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
diff --git a/src/xrt/ipc/server/ipc_server_process.c b/src/xrt/ipc/server/ipc_server_process.c
|
diff --git a/src/xrt/ipc/server/ipc_server_process.c b/src/xrt/ipc/server/ipc_server_process.c
|
||||||
index f972d6835a..32bad0ec56 100644
|
index 791a655d6..554de713b 100644
|
||||||
--- a/src/xrt/ipc/server/ipc_server_process.c
|
--- a/src/xrt/ipc/server/ipc_server_process.c
|
||||||
+++ b/src/xrt/ipc/server/ipc_server_process.c
|
+++ b/src/xrt/ipc/server/ipc_server_process.c
|
||||||
@@ -972,9 +972,10 @@ ipc_server_get_system_properties(struct ipc_server *vs, struct xrt_system_proper
|
@@ -978,9 +978,10 @@ ipc_server_get_system_properties(struct ipc_server *vs, struct xrt_system_proper
|
||||||
return XRT_SUCCESS;
|
return XRT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ index f972d6835a..32bad0ec56 100644
|
|||||||
{
|
{
|
||||||
xrt_result_t xret = XRT_SUCCESS;
|
xrt_result_t xret = XRT_SUCCESS;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
@@ -1002,11 +1003,8 @@ ipc_server_main(int argc, char **argv, const struct ipc_server_main_info *ismi)
|
@@ -1008,11 +1009,8 @@ ipc_server_main(int argc, char **argv, const struct ipc_server_main_info *ismi)
|
||||||
xret = init_all(s, log_level);
|
xret = init_all(s, log_level);
|
||||||
U_LOG_CHK_ONLY_PRINT(log_level, xret, "init_all");
|
U_LOG_CHK_ONLY_PRINT(log_level, xret, "init_all");
|
||||||
if (xret != XRT_SUCCESS) {
|
if (xret != XRT_SUCCESS) {
|
||||||
@@ -138,7 +138,7 @@ index f972d6835a..32bad0ec56 100644
|
|||||||
u_debug_gui_stop(&s->debug_gui);
|
u_debug_gui_stop(&s->debug_gui);
|
||||||
free(s);
|
free(s);
|
||||||
return -1;
|
return -1;
|
||||||
@@ -1015,13 +1013,15 @@ ipc_server_main(int argc, char **argv, const struct ipc_server_main_info *ismi)
|
@@ -1021,13 +1019,15 @@ ipc_server_main(int argc, char **argv, const struct ipc_server_main_info *ismi)
|
||||||
// Start the debug UI now (if enabled).
|
// Start the debug UI now (if enabled).
|
||||||
u_debug_gui_start(s->debug_gui, s->xinst, s->xsysd);
|
u_debug_gui_start(s->debug_gui, s->xinst, s->xsysd);
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ index f972d6835a..32bad0ec56 100644
|
|||||||
// Stop the UI before tearing everything down.
|
// Stop the UI before tearing everything down.
|
||||||
u_debug_gui_stop(&s->debug_gui);
|
u_debug_gui_stop(&s->debug_gui);
|
||||||
|
|
||||||
@@ -1038,39 +1038,43 @@ ipc_server_main(int argc, char **argv, const struct ipc_server_main_info *ismi)
|
@@ -1044,39 +1044,43 @@ ipc_server_main(int argc, char **argv, const struct ipc_server_main_info *ismi)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -232,7 +232,7 @@ index f972d6835a..32bad0ec56 100644
|
|||||||
+
|
+
|
||||||
+#endif // !XRT_OS_ANDROID
|
+#endif // !XRT_OS_ANDROID
|
||||||
diff --git a/src/xrt/targets/service-lib/service_target.cpp b/src/xrt/targets/service-lib/service_target.cpp
|
diff --git a/src/xrt/targets/service-lib/service_target.cpp b/src/xrt/targets/service-lib/service_target.cpp
|
||||||
index 45877803d3..71c581da6b 100644
|
index 45877803d..71c581da6 100644
|
||||||
--- a/src/xrt/targets/service-lib/service_target.cpp
|
--- a/src/xrt/targets/service-lib/service_target.cpp
|
||||||
+++ b/src/xrt/targets/service-lib/service_target.cpp
|
+++ b/src/xrt/targets/service-lib/service_target.cpp
|
||||||
@@ -1,4 +1,5 @@
|
@@ -1,4 +1,5 @@
|
||||||
@@ -308,5 +308,5 @@ index 45877803d3..71c581da6b 100644
|
|||||||
struct ipc_server *server = NULL;
|
struct ipc_server *server = NULL;
|
||||||
|
|
||||||
--
|
--
|
||||||
GitLab
|
2.51.0
|
||||||
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
From a17589c9f77a5e5c3a56685017115fe07f9fd9cc Mon Sep 17 00:00:00 2001
|
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
|
||||||
Date: Mon, 22 Sep 2025 23:33:31 +0200
|
|
||||||
Subject: [PATCH] vk: fix video encode queue index
|
|
||||||
|
|
||||||
---
|
|
||||||
src/xrt/auxiliary/vk/vk_bundle_init.c | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
diff --git a/src/xrt/auxiliary/vk/vk_bundle_init.c b/src/xrt/auxiliary/vk/vk_bundle_init.c
|
|
||||||
index 01ce0c2f1..c4c63b608 100644
|
|
||||||
--- a/src/xrt/auxiliary/vk/vk_bundle_init.c
|
|
||||||
+++ b/src/xrt/auxiliary/vk/vk_bundle_init.c
|
|
||||||
@@ -1513,6 +1513,7 @@ vk_create_device(struct vk_bundle *vk,
|
|
||||||
vk->vkGetDeviceQueue(vk->device, vk->main_queue.family_index, 0, &vk->main_queue.queue);
|
|
||||||
#if defined(VK_KHR_video_encode_queue)
|
|
||||||
if (vk->encode_queue.family_index != VK_QUEUE_FAMILY_IGNORED) {
|
|
||||||
+ vk->encode_queue.index = 0;
|
|
||||||
vk->vkGetDeviceQueue(vk->device, vk->encode_queue.family_index, 0, &vk->encode_queue.queue);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
--
|
|
||||||
2.51.0
|
|
||||||
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
From 9c8627778ec263f6443fe726de88ca84bace3b00 Mon Sep 17 00:00:00 2001
|
||||||
|
From: no name <git-am@invalid>
|
||||||
|
Date: Sun, 28 Sep 2025 11:33:10 +0200
|
||||||
|
Subject: [PATCH 9/9] d/steamvr_lh: prevent crash on vive pro2/WiVRn
|
||||||
|
|
||||||
|
---
|
||||||
|
src/xrt/drivers/steamvr_lh/steamvr_lh.cpp | 2 +-
|
||||||
|
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 8a4c55ed4..723cbb196 100644
|
||||||
|
--- a/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
|
||||||
|
+++ b/src/xrt/drivers/steamvr_lh/steamvr_lh.cpp
|
||||||
|
@@ -862,7 +862,7 @@ steamvr_lh_create_devices(struct xrt_prober *xp, struct xrt_system_devices **out
|
||||||
|
|
||||||
|
// 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)) {
|
||||||
|
U_LOG_IFL_W(level, "Found Vive Pro 2, but failed to initialize.");
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.51.0
|
||||||
|
|
||||||
@@ -198,7 +198,7 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
|
|||||||
auto use_steamvr_lh = configuration().use_steamvr_lh || std::getenv("WIVRN_USE_STEAMVR_LH");
|
auto use_steamvr_lh = configuration().use_steamvr_lh || std::getenv("WIVRN_USE_STEAMVR_LH");
|
||||||
xrt_system_devices * lhdevs = NULL;
|
xrt_system_devices * lhdevs = NULL;
|
||||||
|
|
||||||
if (use_steamvr_lh && steamvr_lh_create_devices(&lhdevs) == XRT_SUCCESS)
|
if (use_steamvr_lh && steamvr_lh_create_devices(nullptr, &lhdevs) == XRT_SUCCESS)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < lhdevs->xdev_count; i++)
|
for (int i = 0; i < lhdevs->xdev_count; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user