Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -40,7 +40,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-BiqNLYTQseymHgkZ3RLHOesxi6qaf4L0j8dgpgaG7LI=";
|
hash = "sha256-4P/ejRAitrYn8hXZPaDOcx27utfm+aVLjtqL6JxZYAg=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1 +1 @@
|
|||||||
2bf7f5c14b947ab3528e37551eb49753fe982dcb
|
5c137fe28b232fe460f9b03defa7749adc32ee48
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 20aa4cc8fd841df0498a3ea34cccbe475db5b800 Mon Sep 17 00:00:00 2001
|
From 18e184e504d9f55dbba3f02c87f96410b2ce04ab 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 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 +++++++++
|
.../compositor/multi/comp_multi_compositor.c | 14 +++++++++
|
||||||
@@ -10,10 +10,10 @@ Subject: [PATCH 01/11] c/multi: early wake of compositor
|
|||||||
3 files changed, 41 insertions(+), 7 deletions(-)
|
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
|
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
|
--- a/src/xrt/compositor/multi/comp_multi_compositor.c
|
||||||
+++ b/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);
|
os_mutex_lock(&mc->slot_lock);
|
||||||
slot_move_and_clear_locked(mc, &mc->scheduled, &mc->progress);
|
slot_move_and_clear_locked(mc, &mc->scheduled, &mc->progress);
|
||||||
os_mutex_unlock(&mc->slot_lock);
|
os_mutex_unlock(&mc->slot_lock);
|
||||||
@@ -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 a0bd04e08..9d7610d02 100644
|
index be763d1c1..22c801f65 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 a0bd04e08..9d7610d02 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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);
|
broadcast_timings_to_clients(msc, predicted_display_time_ns);
|
||||||
|
|
||||||
// Now we can wait.
|
// Now we can wait.
|
||||||
@@ -109,7 +109,7 @@ index a0bd04e08..9d7610d02 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);
|
||||||
@@ -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);
|
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 a0bd04e08..9d7610d02 100644
|
|||||||
|
|
||||||
free(msc);
|
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;
|
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);
|
||||||
@@ -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.
|
//! @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.
|
// Make sure there is at least some sort of valid frame data here.
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 328076ce8b74e32e6e41c3a53de3e000a43720a4 Mon Sep 17 00:00:00 2001
|
From b31b5aa4e7e890ae079ae2953a1ce3fc2e47b954 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 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 +-
|
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 2 +-
|
||||||
@@ -21,5 +21,5 @@ index d364fbed3..ad6b473b7 100644
|
|||||||
// default.
|
// default.
|
||||||
// This polls stdin.
|
// This polls stdin.
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From e1c5cdf2de5f1ef5c9556004ffc44a75e0fadc10 Mon Sep 17 00:00:00 2001
|
From 46cacda03c5552ffb70601dd89e0abe38e97c1d3 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 03/11] Use extern socket fd
|
Subject: [PATCH 03/10] Use extern socket fd
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
|
src/xrt/ipc/server/ipc_server_mainloop_linux.c | 8 ++++++++
|
||||||
@@ -34,5 +34,5 @@ index ad6b473b7..ea6fad65b 100644
|
|||||||
// We may have been launched with socket activation
|
// We may have been launched with socket activation
|
||||||
int num_fds = sd_listen_fds(0);
|
int num_fds = sd_listen_fds(0);
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 8aa74c49f98d57c44c7ee9ad4bfa30c91aae8e67 Mon Sep 17 00:00:00 2001
|
From 90c3842f38985e0f8f06bb51d0e58cccf437526f Mon Sep 17 00:00:00 2001
|
||||||
From: galister <3123227-galister@users.noreply.gitlab.com>
|
From: galister <3123227-galister@users.noreply.gitlab.com>
|
||||||
Date: Mon, 19 Aug 2024 18:51:45 +0900
|
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 +-
|
src/xrt/compositor/render/render_distortion.c | 2 +-
|
||||||
@@ -21,5 +21,5 @@ index 8ac24db8e..5a7e400c3 100644
|
|||||||
&image); // out_image
|
&image); // out_image
|
||||||
VK_CHK_AND_RET(ret, "vk_create_image_simple");
|
VK_CHK_AND_RET(ret, "vk_create_image_simple");
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
From 6e97c25c737f0eb2fda9683caf9d38be66ea5aa9 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>
|
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 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 +++++++++++++-------
|
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 9d7610d02..f3131e810 100644
|
index 22c801f65..1155bc67e 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
|
||||||
@@ -53,5 +53,5 @@ index 9d7610d02..f3131e810 100644
|
|||||||
}
|
}
|
||||||
|
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,45 +1,47 @@
|
|||||||
From a8d3eae0afd8b61aacc18824982c5b6066b5e4d6 Mon Sep 17 00:00:00 2001
|
From 437469e6a4de72ab69719cce92b841e4de19156f 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 06/11] Convert to YCbCr in Monado
|
Subject: [PATCH 06/10] Convert to YCbCr in Monado
|
||||||
|
|
||||||
---
|
---
|
||||||
src/xrt/compositor/main/comp_renderer.c | 6 +-
|
src/xrt/compositor/main/comp_renderer.c | 6 +-
|
||||||
src/xrt/compositor/main/comp_target.h | 3 +-
|
src/xrt/compositor/main/comp_target.h | 3 +-
|
||||||
src/xrt/compositor/render/render_compute.c | 104 +++++++++++++------
|
src/xrt/compositor/render/render_compute.c | 104 ++++++++++++------
|
||||||
src/xrt/compositor/render/render_interface.h | 15 ++-
|
src/xrt/compositor/render/render_interface.h | 15 ++-
|
||||||
src/xrt/compositor/render/render_resources.c | 35 +++++--
|
src/xrt/compositor/render/render_resources.c | 35 ++++--
|
||||||
src/xrt/compositor/shaders/distortion.comp | 62 +++++++----
|
src/xrt/compositor/shaders/distortion.comp | 62 +++++++----
|
||||||
src/xrt/compositor/util/comp_render.h | 12 ++-
|
.../compositor/util/comp_high_level_render.c | 6 +-
|
||||||
src/xrt/compositor/util/comp_render_cs.c | 19 ++--
|
.../compositor/util/comp_high_level_render.h | 9 +-
|
||||||
8 files changed, 175 insertions(+), 81 deletions(-)
|
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
|
diff --git a/src/xrt/compositor/main/comp_renderer.c b/src/xrt/compositor/main/comp_renderer.c
|
||||||
index 06d1cb72a..80678b9f1 100644
|
index c6f589466..0895ff694 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
|
||||||
@@ -1022,7 +1022,8 @@ dispatch_compute(struct comp_renderer *r,
|
@@ -933,7 +933,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||||
|
|
||||||
// Target Vulkan resources..
|
// Target Vulkan resources..
|
||||||
VkImage target_image = r->c->target->images[r->acquired_buffer].handle;
|
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_storage_view = r->c->target->images[r->acquired_buffer].view;
|
||||||
+ VkImageView target_image_view_y = r->c->target->images[r->acquired_buffer].view;
|
+ VkImageView target_storage_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_cbcr = r->c->target->images[r->acquired_buffer].view_cbcr;
|
||||||
|
|
||||||
// Target view information.
|
// Target view information.
|
||||||
struct render_viewport_data views[XRT_MAX_VIEWS];
|
struct render_viewport_data target_viewport_datas[XRT_MAX_VIEWS];
|
||||||
@@ -1033,7 +1034,8 @@ dispatch_compute(struct comp_renderer *r,
|
@@ -949,7 +950,8 @@ dispatch_compute(struct comp_renderer *r,
|
||||||
comp_render_cs_initial_init( //
|
eye_poses, //
|
||||||
&data, // data
|
fovs, //
|
||||||
target_image, // target_image
|
target_image, //
|
||||||
- target_image_view, // target_unorm_view
|
- target_storage_view, //
|
||||||
+ target_image_view_y, // target_unorm_view_y
|
+ target_storage_view_y, //
|
||||||
+ target_image_view_cbcr, // target_unorm_view_cbcr
|
+ target_storage_view_cbcr, //
|
||||||
fast_path, // fast_path
|
target_viewport_datas); //
|
||||||
do_timewarp); // do_timewarp
|
|
||||||
|
|
||||||
|
// 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
|
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
|
--- a/src/xrt/compositor/main/comp_target.h
|
||||||
+++ b/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
|
@@ -62,7 +62,8 @@ enum comp_target_display_timing_usage
|
||||||
@@ -583,11 +585,68 @@ index 08b44d4cf..e1dd1cb58 100644
|
|||||||
+ vec2 cbcr = mix(mix(cbcrs[0], cbcrs[1], 0.5), mix(cbcrs[2], cbcrs[3], 0.5), 0.5);
|
+ 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));
|
+ 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
|
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
|
--- a/src/xrt/compositor/util/comp_render.h
|
||||||
+++ b/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;
|
VkImage image;
|
||||||
|
|
||||||
//! Target image view for distortion.
|
//! Target image view for distortion.
|
||||||
@@ -597,17 +656,15 @@ index 0afe87393..550c014a0 100644
|
|||||||
} cs;
|
} cs;
|
||||||
} target;
|
} 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
|
static inline void
|
||||||
comp_render_cs_initial_init(struct comp_render_dispatch_data *data,
|
-comp_render_cs_add_target(struct comp_render_dispatch_data *data, VkImage target_image, VkImageView target_storage_view)
|
||||||
VkImage target_image,
|
+comp_render_cs_add_target(struct comp_render_dispatch_data *data, VkImage target_image, VkImageView target_storage_view_y, VkImageView target_storage_view_cbcr)
|
||||||
- VkImageView target_storage_view,
|
|
||||||
+ VkImageView target_storage_view_y,
|
|
||||||
+ VkImageView target_storage_view_cbcr,
|
|
||||||
bool fast_path,
|
|
||||||
bool do_timewarp)
|
|
||||||
{
|
{
|
||||||
@@ -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.
|
// When writing into the target.
|
||||||
data->target.cs.image = target_image;
|
data->target.cs.image = target_image;
|
||||||
@@ -617,7 +674,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 *world_pose,
|
||||||
const struct xrt_pose *eye_pose,
|
const struct xrt_pose *eye_pose,
|
||||||
const VkImage target_image,
|
const VkImage target_image,
|
||||||
@@ -628,7 +685,7 @@ index 0afe87393..550c014a0 100644
|
|||||||
bool do_timewarp);
|
bool do_timewarp);
|
||||||
|
|
||||||
diff --git a/src/xrt/compositor/util/comp_render_cs.c b/src/xrt/compositor/util/comp_render_cs.c
|
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
|
--- a/src/xrt/compositor/util/comp_render_cs.c
|
||||||
+++ b/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
|
@@ -347,7 +347,8 @@ crc_clear_output(struct render_compute *render, const struct comp_render_dispatc
|
||||||
@@ -700,5 +757,5 @@ index d9d9ea8a4..29c645bff 100644
|
|||||||
d->do_timewarp); //
|
d->do_timewarp); //
|
||||||
}
|
}
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
From 9d54ac2408a56556529de2f9173ffcd3d5775bd1 Mon Sep 17 00:00:00 2001
|
From 5a791919ce1e01f2cb0034e4055bf22767a41121 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Sun, 3 Nov 2024 13:40:00 +0100
|
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 ++--
|
src/xrt/compositor/shaders/clear.comp | 4 ++--
|
||||||
@@ -90,5 +90,5 @@ index e1dd1cb58..9ce46fe6f 100644
|
|||||||
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
+ imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
||||||
}
|
}
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -1,7 +1,7 @@
|
|||||||
From 8779248b08863b7a7dda3f9822cb9037372cbd3e Mon Sep 17 00:00:00 2001
|
From 877709160be24c4bd504b8d8cd04197cc2bf2b69 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Thu, 27 Feb 2025 22:45:36 +0100
|
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 ++++++----
|
src/xrt/compositor/main/comp_compositor.c | 10 ++++++----
|
||||||
@@ -10,10 +10,10 @@ Subject: [PATCH 09/11] c/main: allow custom pacing app factory
|
|||||||
3 files changed, 11 insertions(+), 5 deletions(-)
|
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
|
diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c
|
||||||
index eecb14c17..24d061627 100644
|
index 819c2c8b3..a42d25869 100644
|
||||||
--- a/src/xrt/compositor/main/comp_compositor.c
|
--- a/src/xrt/compositor/main/comp_compositor.c
|
||||||
+++ b/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)
|
@@ -987,6 +987,7 @@ compositor_init_renderer(struct comp_compositor *c)
|
||||||
xrt_result_t
|
xrt_result_t
|
||||||
comp_main_create_system_compositor(struct xrt_device *xdev,
|
comp_main_create_system_compositor(struct xrt_device *xdev,
|
||||||
const struct comp_target_factory *ctf,
|
const struct comp_target_factory *ctf,
|
||||||
@@ -21,7 +21,7 @@ index eecb14c17..24d061627 100644
|
|||||||
struct xrt_system_compositor **out_xsysc)
|
struct xrt_system_compositor **out_xsysc)
|
||||||
{
|
{
|
||||||
COMP_TRACE_MARKER();
|
COMP_TRACE_MARKER();
|
||||||
@@ -1184,10 +1185,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.
|
// Standard app pacer.
|
||||||
@@ -78,5 +78,5 @@ index 617561c37..e10ba8358 100644
|
|||||||
#else
|
#else
|
||||||
if (!use_null) {
|
if (!use_null) {
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
@@ -1,91 +0,0 @@
|
|||||||
From a7fbfaf2407a805efa31b3e1a7f0565b46a9004e Mon Sep 17 00:00:00 2001
|
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
|
||||||
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
|
|
||||||
|
|
||||||
+5
-5
@@ -1,17 +1,17 @@
|
|||||||
From 723732637613edd61b51039544ec69eaaddb8a69 Mon Sep 17 00:00:00 2001
|
From 53d8509dff69caccecdc38b443864b1a755486dd 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 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 +-----
|
src/xrt/state_trackers/oxr/oxr_api_session.c | 6 +-----
|
||||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
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
|
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
|
--- a/src/xrt/state_trackers/oxr/oxr_api_session.c
|
||||||
+++ b/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_AND_INIT_LOG(&log, session, sess, "xrRequestDisplayRefreshRateFB");
|
||||||
OXR_VERIFY_SESSION_NOT_LOST(&log, sess);
|
OXR_VERIFY_SESSION_NOT_LOST(&log, sess);
|
||||||
|
|
||||||
@@ -29,5 +29,5 @@ index b3dac8c8a..27d80be9a 100644
|
|||||||
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
|
if ((int)(displayRefreshRate * 100.0f) == (int)(sess->sys->xsysc->info.refresh_rates_hz[i] * 100.0f)) {
|
||||||
found = true;
|
found = true;
|
||||||
--
|
--
|
||||||
2.50.0
|
2.50.1
|
||||||
|
|
||||||
+5
-5
@@ -1,7 +1,7 @@
|
|||||||
From 89d5e71f70d70958e8c03a038ab4bc0fc262a455 Mon Sep 17 00:00:00 2001
|
From 1bc74f74b613cce9d32c0f4bf16de70ddb7fb482 Mon Sep 17 00:00:00 2001
|
||||||
From: Patrick Nicolas <patricknicolas@laposte.net>
|
From: Patrick Nicolas <patricknicolas@laposte.net>
|
||||||
Date: Mon, 2 Jun 2025 14:51:11 +0200
|
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 +-
|
src/xrt/compositor/CMakeLists.txt | 2 +-
|
||||||
@@ -13,7 +13,7 @@ Subject: [PATCH 11/11] Replace distortion with pixel-aligned foveation
|
|||||||
6 files changed, 76 insertions(+), 378 deletions(-)
|
6 files changed, 76 insertions(+), 378 deletions(-)
|
||||||
|
|
||||||
diff --git a/src/xrt/compositor/CMakeLists.txt b/src/xrt/compositor/CMakeLists.txt
|
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
|
--- a/src/xrt/compositor/CMakeLists.txt
|
||||||
+++ b/src/xrt/compositor/CMakeLists.txt
|
+++ b/src/xrt/compositor/CMakeLists.txt
|
||||||
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
|
@@ -115,7 +115,7 @@ if(XRT_HAVE_VULKAN)
|
||||||
@@ -652,7 +652,7 @@ index 9ce46fe6f..f3be617bd 100644
|
|||||||
- imageStore(luma, ivec3(offset.xy/2 + gl_GlobalInvocationID.xy, 1), alpha);
|
- 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
|
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
|
--- a/src/xrt/compositor/util/comp_render_cs.c
|
||||||
+++ b/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,
|
@@ -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
|
||||||
|
|
||||||
@@ -604,7 +604,8 @@ wivrn_controller::wivrn_controller(int hand_id,
|
|||||||
|
|
||||||
if (hand_id == 0)
|
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, MENU_CLICK);
|
||||||
SET_INPUT(TOUCH, X_CLICK);
|
SET_INPUT(TOUCH, X_CLICK);
|
||||||
SET_INPUT(TOUCH, Y_CLICK);
|
SET_INPUT(TOUCH, Y_CLICK);
|
||||||
@@ -613,7 +614,8 @@ wivrn_controller::wivrn_controller(int hand_id,
|
|||||||
}
|
}
|
||||||
else
|
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, SYSTEM_CLICK);
|
||||||
SET_INPUT(TOUCH, A_CLICK);
|
SET_INPUT(TOUCH, A_CLICK);
|
||||||
SET_INPUT(TOUCH, B_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)
|
switch (name)
|
||||||
{
|
{
|
||||||
case XRT_INPUT_GENERIC_HAND_TRACKING_LEFT:
|
case XRT_INPUT_HT_UNOBSTRUCTED_LEFT:
|
||||||
case XRT_INPUT_GENERIC_HAND_TRACKING_RIGHT: {
|
case XRT_INPUT_HT_UNOBSTRUCTED_RIGHT: {
|
||||||
*out_timestamp_ns = desired_timestamp_ns;
|
*out_timestamp_ns = desired_timestamp_ns;
|
||||||
std::chrono::nanoseconds extrapolation_time;
|
std::chrono::nanoseconds extrapolation_time;
|
||||||
std::tie(extrapolation_time, *out_value) = joints.get_at(desired_timestamp_ns);
|
std::tie(extrapolation_time, *out_value) = joints.get_at(desired_timestamp_ns);
|
||||||
|
|||||||
@@ -177,11 +177,11 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
|
|||||||
static_roles.face = &hmd;
|
static_roles.face = &hmd;
|
||||||
|
|
||||||
roles.left = left_controller_index = xdev_count++;
|
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;
|
xdevs[left_hand_interaction_index = xdev_count++] = &left_hand_interaction;
|
||||||
|
|
||||||
roles.right = right_controller_index = xdev_count++;
|
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;
|
xdevs[right_hand_interaction_index = xdev_count++] = &right_hand_interaction;
|
||||||
|
|
||||||
#if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE
|
#if WIVRN_FEATURE_STEAMVR_LIGHTHOUSE
|
||||||
@@ -197,11 +197,11 @@ wivrn::wivrn_session::wivrn_session(std::unique_ptr<wivrn_connection> connection
|
|||||||
{
|
{
|
||||||
case XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER:
|
case XRT_DEVICE_TYPE_LEFT_HAND_CONTROLLER:
|
||||||
roles.left = xdev_count;
|
roles.left = xdev_count;
|
||||||
static_roles.hand_tracking.left = lhdev;
|
static_roles.hand_tracking.unobstructed.left = lhdev; // FIXME: certainly wrong
|
||||||
break;
|
break;
|
||||||
case XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER:
|
case XRT_DEVICE_TYPE_RIGHT_HAND_CONTROLLER:
|
||||||
roles.right = xdev_count;
|
roles.right = xdev_count;
|
||||||
static_roles.hand_tracking.right = lhdev;
|
static_roles.hand_tracking.unobstructed.right = lhdev; // FIXME: certainly wrong
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user