Simon Zeni
f88705a307
aux/util: use int64_t for timestamps in u_pacing
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
8cf2e4bd2b
xrt: use int64_t for timestamps in get_body_joints
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
68ca582362
xrt: use int64_t for timestamps in get_view_poses
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
ae7dca3107
aux/math: use int64_t for timestamps in m_relation_history
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
e298244516
xrt: use int64_t for timestamp in get_hand_tracking
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
d5ba6eec5b
xrt: use int64_t for timestamp in get_tracked_pose
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
8976e677b2
xrt/tracking: use int64_t to represent timestamps
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
d67ab7845f
xrt/space: use int64_t to represent timestamps
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
af5cf402bf
xrt: use int64_t to represent timestamps
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:48:14 -05:00
Simon Zeni
bc131e651a
aux/util: use int64_t to represent timestamps in u_time
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:47:57 -05:00
Simon Zeni
54fe2c0e4e
aux/os: use int64_t to represent timestamps
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298 >
2024-09-06 10:47:57 -05:00
Patrick Nicolas
825de0ec09
cmake: Fix building in dir with whitespace
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2319 >
2024-09-06 10:18:51 -05:00
galister
6db9d570d8
t/libmonado: add tracking-related device properties
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2313 >
2024-09-05 13:19:33 +00:00
Bones
235cc78e6a
d/steamvr_lh: refactor driver
...
Co-authored-by: galister <galister@librevr.org>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2297 >
2024-09-04 13:54:21 +00:00
Korcan Hussein
30d8e29ee1
gradle: make debug apk builds debuggable
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2320 >
2024-08-29 15:02:40 +01:00
Simon Zeni
738acfbcf7
st/oxr: add more checks around xrBeginSession and xrEndSession
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2162 >
2024-08-28 16:00:13 -05:00
Rylie Pavlik
f30e5265f9
a/vk: Fix validation error on Android
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233 >
2024-08-23 14:04:37 +00:00
Rylie Pavlik
58369ec1fa
st/oxr: Use extension-decorated name for Vulkan functions
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233 >
2024-08-23 14:04:37 +00:00
Rylie Pavlik
9bd2f7c201
st/oxr: Require dependency Android Vulkan extensions
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233 >
2024-08-23 14:04:37 +00:00
Rylie Pavlik
2170409faf
c/main: Require dependency Android Vulkan extensions
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233 >
2024-08-23 14:04:37 +00:00
Rylie Pavlik
2265984cb1
t/sdltest: Require dependency Android Vulkan extensions
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233 >
2024-08-23 14:04:37 +00:00
Rylie Pavlik
909dabf44b
c/client: Require dependency Android Vulkan extensions
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233 >
2024-08-23 14:04:37 +00:00
Rylie Pavlik
c439f289d4
c/null: Require dependency Android Vulkan extensions
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233 >
2024-08-23 14:04:37 +00:00
Rylie Pavlik
182d87015f
scripts, a/vk: Fix calling functions using their Vulkan 1.0 name rather than promoted name
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233 >
2024-08-23 14:04:37 +00:00
Jarvis Huang
764263d171
st/oxr: Combine Android activity lifecycle with session lifecycle
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 15:27:53 -05:00
Rylie Pavlik
13e023955c
ipc: Create android_instance_base if required.
...
Co-authored-by: Jarvis Huang <quic_jarvhuan@quicinc.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 15:27:53 -05:00
Rylie Pavlik
bc6a42441c
t/common: Create android_instance_base if required.
...
Co-authored-by: Jarvis Huang <quic_jarvhuan@quicinc.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 12:59:45 -05:00
Rylie Pavlik
28ec3246eb
a/android: Base implementation of xrt_instance_android
...
Co-authored-by: Jarvis Huang <quic_jarvhuan@quicinc.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 10:30:18 -05:00
Jarvis Huang
3a7e98a51b
a/android: Hook android_lifecycle_callbacks with Java class
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 10:30:18 -05:00
Jarvis Huang
84efd4d6fb
a/android: Add ActivityLifecycleListener class
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 10:30:18 -05:00
Rylie Pavlik
449016be51
xrt: Add missing doc comments.
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 10:30:18 -05:00
Jarvis Huang
30c067db7f
xrt: Add XRT_ERROR_ANDROID
...
Co-authored-by: Rylie Pavlik <rylie.pavlik@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 10:30:18 -05:00
Rylie Pavlik
77bdc1a80e
xrt: Add Android-specific features to xrt_instance.
...
Describe Android lifecycle callbacks
Co-authored-By: Jarvis Huang <quic_jarvhuan@quicinc.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 10:30:18 -05:00
Rylie Pavlik
78717c2c38
xrt: Add xrt_android header with info about Android lifecycle callbacks
...
Co-authored-By: Jarvis Huang <quic_jarvhuan@quicinc.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 09:06:36 -05:00
Rylie Pavlik
8cf94c20a9
aux/android: Add lifecycle callback container.
...
Co-Authored-By: Jarvis Huang <quic_jarvhuan@quicinc.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 09:06:36 -05:00
Jarvis Huang
31ee231f20
ipc/client: Get Java fields out of instance info.
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 09:06:36 -05:00
Jarvis Huang
83bea591f1
st/oxr: Populate xrt_platform_info on Android
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 09:06:36 -05:00
Jarvis Huang
5ede35c71d
xrt: Add xrt_platform_info
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-22 09:06:36 -05:00
Rylie Pavlik
24117123f5
ipc: Constify
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-21 11:20:09 -05:00
Jarvis Huang
a86db1307d
xrt: Add xrt_application_info
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1655 >
2024-08-21 11:20:09 -05:00
Rylie Pavlik
ec6e9c8b7f
ipc/android: Be sure to catch destructor exceptions, if any.
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2308 >
2024-08-21 10:58:26 -05:00
Rylie Pavlik
8a7415eaea
ipc: Improve android
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2308 >
2024-08-21 10:57:45 -05:00
Jarvis Huang
9e46d56c03
st/oxr,a/android,ipc/android: Move Android looper trick into the IPC client.
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2308 >
2024-08-21 10:57:37 -05:00
Arnav Singh
2685fb1dc6
aux/os/ble_dbus: Don't require power management characteristic to be notifiable.
...
At least the SteamVR 2.0 lighthouses have a power management characteristic
that does not have the "notify" flag, only "write". So before this change,
the command would not find any valid characteristics to write to and be
a no-op. The power management code path does not require it to be notifiable
in the first place, so this change just ignores that flag.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2269 >
2024-08-19 13:12:41 +00:00
Simon Zeni
4da8066140
st/prober: use RS_SOURCE_INDEX only if XRT_HAVE_OPENCV and XRT_BUILD_DRIVER_REALSENSE are defined
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:31:36 -05:00
Simon Zeni
7cbcf92c3b
aux/ogl: always return false in ogl_import_from_native for AHardwareBuffer
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:31:36 -05:00
Simon Zeni
967847c742
d/*: fix format modifiers for 32 bits
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:31:36 -05:00
Simon Zeni
39535666a4
xrt: add inttypes.h to xrt_compiler.h
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:31:36 -05:00
Simon Zeni
6847183cb2
st/prober: fix format modifier in print_system_devices
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:31:36 -05:00
Simon Zeni
128f20df7c
aux/vk: fix vulkan handle type format modifier
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:31:36 -05:00
Simon Zeni
748d6bc5e7
aux/vk: properly handle vulkan handle type in vk_name_object
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:30:26 -05:00
Simon Zeni
641e456736
aux/vk: fix VK_ERROR_UNKNOWN warning from vk_result_string
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:30:25 -05:00
Simon Zeni
ee7ed5d395
aux/util: remove ignore warning diagnostics in u_trace_marker.h
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272 >
2024-08-16 17:30:25 -05:00
Rylie Pavlik
5375d366cb
a/android: Fix warnings
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2307 >
2024-08-15 15:45:47 -05:00
Rylie Pavlik
da5d1c05b1
d/android: Fix warnings
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2307 >
2024-08-15 11:46:56 -05:00
Jan Schmidt
ecaab0f63e
d/wmr: Fix controller status report waiting
...
For Reverb G2 and Odyssey, check if controller status reports
were already seen before proceeding to wait, or the driver
might not get woken again.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
34377371ba
a/math: Introduce minimum skew clock tracker.
...
Add m_clock_windowed_skew_tracker that uses a windowed
minimum skew tracker with exponential smoothing to
do more accurate remote to local clock offset estimation.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
8a535d0a87
a/tracking: add t_camera_models_undistort()
...
Add a method to convert distorted image points to
undistorted homogeneous points like cv::undistortPoints()
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
ed67c9c95b
a/tracking: Make t_camera_models usable from C
...
Remove C++-isms in the t_camera_models.h header and wrap it
in conditional extern "C" markers.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
5098695a1a
a/math: Add math_quat_decompose_swing_twist()
...
Decomposes a quaternion into two orthogonal rotations that
consist of the swing perpendicular to an axis and the
rotation (twist) around that axis.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
1bfd5ed0cd
a/math: Add m_vec3_inverse()
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
ab5b21de8e
a/math: Add math_quat_dot()
...
Add a function to compute the dot product of 2 quaternions
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
36eaad6419
a/math: Add math_quat_from_vec_a_to_vec_b()
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
4555f5e7f9
aux/gst: Support odd I420/GRAY8 frame widths and heights
...
Add padding for odd width/height I420 and GRAY8 video frames
using videobox, and add warnings for corner cases where that
won't work.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
eb4d2cd922
u/sink: Make sink_queue drop the oldest frame when full
...
Instead of discarding the incoming frame when the queue is
at capacity, drop the oldest frame possible. I can't
think of a situation where it would be better to work on
stale data in preference to fresh data. If there is, we
can easily add a flag to choose behaviour.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
8b0f9e228b
a/math: Fix description typo in m_imu_pre_filter_part
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
Jan Schmidt
32e496ab90
u/sink: Fix description of u_sink_simple_queue
...
Update the comment describing the u_sink_simple_queue to
explain that it buffers a single frame to a new thread,
replacing it as new frames come in if it hasn't been consumed
yet.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2188 >
2024-08-13 15:08:15 +00:00
galister
30ae628b83
st/oxr: fix XrFacialTrackerHTC validation
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2306 >
2024-08-13 01:19:41 +09:00
galister
dfe503ad52
xrt: add support for FB_face_tracking2 xrt-devices
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2299 >
2024-08-12 15:02:59 +00:00
Jarett Millard
21d5991fa5
d/pssense: Use IMU timestamp for fusion and read battery state
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2301 >
2024-08-08 21:51:38 -04:00
Jarett Millard
cbc7124bb2
d/pssense: Fix parsing of calibration data and check CRC
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2301 >
2024-08-08 21:51:38 -04:00
Korcan Hussein
c29fea16d8
st/oxr: fix bug when XR_KHR_composition_layer_depth is disabled
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2304 >
2024-08-08 15:00:09 +01:00
Fernando Velazquez Innella
a1ca69e0f5
a/ogl: Add Win32 handle import
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2302 >
2024-08-06 10:46:20 -04:00
Rylie Pavlik
141f412f67
external: Import mermaid-js
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2300 >
2024-08-02 12:27:51 -05:00
Simon Zeni
6d1aca8019
c/main: switch wayland direct log from debug to info
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2295 >
2024-07-31 18:53:01 +00:00
Simon Zeni
570c956341
c/main: introduce XRT_COMPOSITOR_WAYLAND_CONNECTOR env var to request connector
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2295 >
2024-07-31 18:53:01 +00:00
Patrick Nicolas
49a2066025
cmake: add MND_libmonado_path in openxr manifest
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2285 >
2024-07-30 19:39:33 +00:00
Torge Matthies
8e407e9683
t/libmonado: add function for getting a device's battery status information
...
Co-authored-by: Gabriele Musco <gabmus@disroot.org>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2292 >
2024-07-30 18:07:54 +00:00
Torge Matthies
f5b9ed31c5
ipc: add battery status query
...
Co-authored-by: Gabriele Musco <gabmus@disroot.org>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2292 >
2024-07-30 18:07:54 +00:00
Torge Matthies
81d9d1ee91
d/steamvr_lh: implement battery status query
...
Co-authored-by: Gabriele Musco <gabmus@disroot.org>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2292 >
2024-07-30 18:07:54 +00:00
Torge Matthies
0f57657ba0
d/survive: implement battery status query
...
Co-authored-by: Gabriele Musco <gabmus@disroot.org>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2292 >
2024-07-30 18:07:54 +00:00
Torge Matthies
59d9d832d6
xrt: add device battery status query
...
Co-authored-by: Gabriele Musco <gabmus@disroot.org>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2292 >
2024-07-30 18:07:54 +00:00
Korcan Hussein
ad39ec054b
cmake,xrt: Add cmake option to AHardwareBuffer support
...
Co-authored-by: Jakob Bornecrantz <wallbraker@gmail.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2294 >
2024-07-30 16:22:17 +01:00
tao.pei
c5e9af025e
aux/android: support uncompressed native libs
...
if useLegacyPackaging in src/xrt/targets/openxr_android/build.gradle
set to false, the full path of monado.so will become
/data/app/../../base.apk!/lib/ABI/libopenxr_monado.so.
The function getRuntimeSourceDir will get the wrong path.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2153 >
2024-07-26 12:38:01 -05:00
Christoph Haag
e4636ca153
st/oxr: return XR_SPACE_BOUNDS_UNAVAILABLE for unimplemented function
...
Fixes d7c1f7f13
Since d7c1f7f13
OXR_CHECK_XRET the return code
XRT_ERROR_COMPOSITOR_FUNCTION_NOT_IMPLEMENTED or (XRT_ERROR_NOT_IMPLEMENTED)
was translated to returning an XR_RUNTIME_FAILURE to the app with the
OXR_CHECK_XRET macro.
That the function is not implemented on an xrt_device is an implementation
detail in monado that we don't need to pass along to the application, the
application only needs to know that bounds are not available.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2289 >
2024-07-22 03:09:10 +02:00
Yuxuan Shui
8c37ca0116
d/steamvr_lh: Make sure the context is release on exit
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2229 >
2024-07-19 13:23:09 +00:00
Joel Valenciano
dbd0098dbb
Allow selecting wayland direct connector by name
...
Splits the connector selection code into a separate function that
accepts a connector name to match against.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2283 >
2024-07-19 13:08:13 +00:00
Joel Valenciano
f9d02319ec
Fix DRM leasing on some compositors after !2278
...
At the suggestion of @Supreeeme, this makes a change to some code I added to
the connector withdrawn handler in !2278 that causes an error when leasing
is attempted on some wayland compositors, namely niri.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2283 >
2024-07-19 13:08:13 +00:00
galister
067090ad7d
ipc,u/space_overseer: space offset api
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2284 >
2024-07-18 21:09:34 +00:00
Shawn Wallace
81033983b7
d/steamvr_lh - Handle lighthouse config folder not existing better
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2282 >
2024-07-18 15:52:09 +00:00
galister
8359dd3b33
d: remote redundant assigments of initial_offset
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2286 >
2024-07-18 23:34:53 +09:00
galister
6f8c0d9154
xrt: rename offset → initial_offset on xrt_tracking_origin
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2286 >
2024-07-17 03:25:33 +09:00
galister
eae4472f50
u/space_overseer: stage is null/offset, unless driver provides actual poses
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2280 >
2024-07-16 07:26:18 +09:00
Joel Valenciano
9436c36865
Move wayland lease request to init_pre_vulkan
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2278 >
2024-07-15 17:39:56 +00:00
Joel Valenciano
8ca1a5a2d3
Move wayland connector check to init_pre_vulkan
...
Fixes an issue that happens when the compositor tries to fallback to
windowed mode when no connectors are available for direct mode on
wayland.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2278 >
2024-07-15 17:39:56 +00:00
Simon Zeni
34d82ea082
xrt: introduce XRT_ERROR_NOT_IMPLEMENTED
...
Merge XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED and XRT_ERROR_COMPOSITOR_FUNCTION_NOT_IMPLEMENTED
into a single generic result value.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2244 >
2024-07-15 17:26:03 +00:00
Simon Zeni
d7c1f7f138
st/oxr: handle unavailable bounds case in function
...
Only `XRT_SPACE_BOUNDS_UNAVAILABLE` should return `XR_SPACE_BOUNDS_UNAVAILABLE`
with the bounds set to 0.
Otherwise the function should return `XR_ERROR_REFERENCE_SPACE_UNSUPPORTED` if
the supplied `reference_space_type` is not supported or implemented.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2244 >
2024-07-15 17:26:03 +00:00
Simon Zeni
abc9461960
aux/util: default pose if position or orientation is not valid when creating local space
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2255 >
2024-07-15 14:58:57 +00:00
Simon Zeni
0a59c4f28e
aux/util: create_local_space from space overseer view space
...
Rather than using the head device provided in `u_space_overseer_legacy_setup`,
use the semantic view space from the space overseer to create the local space.
This fixes a crash that occurs when trying to create a local space without
having called `u_space_overseer_legacy_setup` previously.
Co-authored-by: Christoph Haag <christoph.haag@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2255 >
2024-07-15 14:58:57 +00:00
Korcan Hussein
a3ebb27e34
c/multi: Fix env blend modes not changing.
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2273 >
2024-07-10 17:27:37 +00:00
Christoph Haag
3d72a2f3bc
d/steamvr_lh: Allow setting brightness with env var
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2275 >
2024-07-08 17:37:18 +02:00
Simon Zeni
a628e14dd0
external/valve-file-vdf: update to 1.0.0
...
https://github.com/TinyTinni/ValveFileVDF/releases/tag/v1.0.0
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2266 >
2024-07-04 18:59:01 +00:00
Simon Zeni
f29275ced2
ipc: return NULL in ipc_client_system_create if call to systep properties fails
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
b016b062b0
d/rift_s: init distortion params matrice
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
a178a6d226
aux/util: initialize variables in u_visibility_mask_get_default
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
9221bf797c
d/steamvr_lh: fix for loop type comparison warning
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
6d711f1c27
t/common: remove unused debug log env var in steamvr builder
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
5a61a8c3ab
ipc: fixes warnings introduce in !2249
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
f579e84c53
d/twrap: define twrap_hmd_correct_pose_from_basalt only if XRT_FEATURE_SLAM
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
fa81698f01
c/main: fix snprintf output truncation
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
58add75b1e
st/oxr: define convert_compare_op only when OXR_HAVE_FB_composition_layer_depth_test is enabled
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
7bbb6d6864
t/slam: fix snprintf warning
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
976d40f669
external/catch2: upgrade to 3.6.0
...
https://github.com/catchorg/Catch2/releases/tag/v3.6.0
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2268 >
2024-07-04 13:24:16 +00:00
Simon Zeni
51c38d091b
external/glad: update licensing
...
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2267 >
2024-07-04 13:12:49 +00:00
Simon Zeni
bccb63687e
external/glad: refresh files with gl4.6, egl1.5 & glx1.4
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2267 >
2024-07-04 13:12:49 +00:00
Korcan Hussein
ae37c1bf29
gradle: Upgrade gradle and packages
...
* Upgrades the gradle version (using AGP upgrade assistant)
* Upgrades android package dependencies to latest versions (using project settings upgrade tool)
* Bump compile platform SDK level to 34 (required for package updates)
* Bump java src compatibility version (required for api level 34)
* Fix deprecated warnings
* Code compile fixes to account for package changes
* explicitly specify cmake version
* bump NDK to latest LTS version
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2270 >
2024-07-03 19:28:53 +00:00
Weijie Wang
9e46337a6a
st/oxr: Return correct value
...
When the timeout expires:
1. Don't change the swapchain image index.
2. Return XR_TIMEOUT_EXPIRED.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2256 >
2024-07-03 12:28:31 +00:00
Korcan Hussein
da80ac3f71
ipc/android: Allow custom service library names
...
Monado derivatives may choose to create and use a
custom variant of service-lib for android builds
with a different library name, this change replaces the
hard-coded library name used for dynamic lib loading.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2265 >
2024-06-28 16:21:26 +01:00
korejan
b59b11101b
a/bindings: Fix typos in extension names
...
Fixes extension name entries with "XR_" prefix in
touch_controller_pro & touch_controller_plus entries
causing incorrect code to be generated.
2024-06-27 22:45:28 +01:00
Christoph Haag
8f59821336
st/oxr: Verify frameEndInfo->layerCount
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2262 >
2024-06-27 00:43:59 +02:00
Korcan Hussein
6307f17726
t/android_common: Fix missing resource string value
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2257 >
2024-06-26 14:25:42 +00:00
Korcan Hussein
1e67a27326
cmake: change project c++-lang to c++20
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2258 >
2024-06-26 11:30:08 +01:00
rcelyte
3139079aaa
d/steamvr_lh: Support loading SlimeVR OpenVR driver alongside lighthouse
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2251 >
2024-06-17 17:50:39 +00:00
James Hogan
9422aca625
comp: Fix OpenGL flipping of subimage coordinates
...
In the process of flipping OpenGL subimage coordinates (in accordance
with the specification of the XR_KHR_opengl_enable extension), Monado
was incorrectly assuming a subimage height of 1.0.
When the height of the subimage was reduced below 1.0 this was making
Monado clip the bottom instead of the top of the swapchain (as if the
origin was the top-left), and when the subimage Y offset was increased
Monado would show a black bar at the top where the coordinates went out
of range of the swapchain.
Fix this in both the compute and graphics compositor, effectively
replacing the assumed height of 1 with the original subimage height
before negation.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2250 >
2024-06-13 17:45:51 +01:00
Shijian
47ff8dfff3
Correctly destroy the muti-localspace
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2249 >
2024-06-13 22:38:45 +08:00
Shawn Wallace
f935fa943f
d/steamvr_lh: use provided properties for device descriptions
...
This allows more easily showing the names of any future HMDs. Also some
cleanup of unused things.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2207 >
2024-06-12 22:43:04 +00:00
Shijian
0f07c05426
Support muti-localspace on server side
...
client can have independent localspace to use
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2130 >
2024-06-12 15:24:43 +00:00
Christoph Haag
a60e24ef01
android: move ic_monado_vertical.xml to drawable to fix build
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2243 >
2024-06-11 10:05:58 -04:00
Rylie Pavlik
432b7a7b91
t/oxr_android: Move signing config script to bottom of build file
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2243 >
2024-06-11 10:05:58 -04:00
Rylie Pavlik
028425be9d
android: Rename gradle projects.
...
Apparently in some contexts, only the last component of the name matters,
and it was the same for more than one module.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2243 >
2024-06-11 10:05:58 -04:00
Rylie Pavlik
cead23f5ec
ipc/android: Remove empty resources
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2243 >
2024-06-09 20:20:56 -05:00
Rylie Pavlik
e68339e331
st/oxr: Fix typo
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2242 >
2024-06-07 16:50:30 -05:00
Rylie Pavlik
de9b9f79ea
gradle: Use our own groovy code to compute a version from git
...
git worktree is not supported by androidgitversion
This makes it work with git worktrees and submodules, unlike the
plugin we used before. Unlike some other gradle plugins,
this allows us to set our own filter for tags that get included in
the version.
Thanks to Tao Pei for noticing the problem and proposing an initial fix.
Co-authored-by: tao.pei <tao.pei@xjmz.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2204 >
2024-06-07 15:22:47 -05:00
Rylie Pavlik
5a64069d42
st/oxr: Remove TODO mentioning non-existent path.
...
Removed from an early 1.0 version as not implementable errata.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2241 >
2024-06-07 14:26:06 +00:00
Christoph Haag
6d71c083ea
m/space: Restore upgrading of 3dof relations with valid positions
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2239 >
2024-06-07 14:13:44 +00:00
Rylie Pavlik
9da09d4de6
c/shaders: One file of restored credit missed earlier.
...
This is what I get for not making sure I save before staging/committing.
d0617c04d5
accidentally removed credit.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2240 >
2024-06-06 21:32:04 -05:00
Rylie Pavlik
53bcd6ebed
a/vk: Comments
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2238 >
2024-06-06 15:10:22 +00:00
Rylie Pavlik
7ce4e8f66c
c/main: Fix typos
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2238 >
2024-06-06 15:10:22 +00:00
Rylie Pavlik
9f707c3536
comp: Fix doc warnings
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2237 >
2024-06-06 14:54:03 +00:00
Rylie Pavlik
b17fbfc4ba
ipc: Fix doc warnings
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2237 >
2024-06-06 14:54:03 +00:00
Rylie Pavlik
bc916e0f36
xrt: Fix documentation warnings
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2237 >
2024-06-06 14:54:03 +00:00
Rylie Pavlik
23115015fc
c/shaders: Add back credit accidentally removed during shader overhaul
...
The updated versions of these shaders was added before
the originals were removed, so rename detection didn't trigger,
and d0617c04d5
accidentally
removed credit.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2236 >
2024-06-06 09:38:11 -05:00
Hui Xu
cdb9c38ee0
external/jnipp: Check and re-assign JNIEnv
...
Fixes a crash when resumed from launcher.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2226 >
2024-06-06 01:46:01 +00:00
Rylie Pavlik
5b8edfbb30
c/main: Default to compute compositor on Android to work around issue #381
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2235 >
2024-06-05 16:10:02 -05:00
Rylie Pavlik
fc830bc5b4
a/util: Prepend "monado" to function name on android logcat
...
For easier searching.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2232 >
2024-06-05 19:55:58 +00:00
Alicja Michalska
69907679fc
d/wmr: Add definitions for Acer AH101 HMD
...
This patch adds VID/PID for Acer AH101 (WMR) headset.
Signed-off-by: Alicja Michalska <ahplka19@gmail.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2222 >
2024-06-05 18:57:11 +00:00
Mario Kleiner
be55dec119
d/twrap: Correct axis assignments for poses provided by basalt slam.
...
Testing with a Luxonis Oak-D Pro with basalt slam tracking on a simulated
Northstar suggests the returned axis from basalt vit are wrong wrt. to
the OpenXR reference frame.
Invert assigned y and z axis, similar to what is done for poses returned
by basalt slam for other HMD drivers, e.g., the drivers for Rift-S, Valve
Index / Vive, WMR and Realsense, in various *_correct_pose_from_basalt()
functions.
While we are at it, also make sure the dx->pre_rotate enable flag and
debug UI checkbox actually has an effect on operation.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2228 >
2024-06-04 19:54:02 +00:00
Mario Kleiner
09273292c2
d/dai: Swap x and -y axis to account for orientation of IMU in the camera.
...
We need a different axis assignment before submitting samples from the
DepthAI driven Luxonis Oak cameras IMU to the imu sinks, to account for
the orientation of the IMU in those cameras. On those cameras, the IMU
y axis points to the right, the x axis points downwards, the z axis
backwards. See following official Luxonis answer for reference:
https://discuss.luxonis.com/d/1044-about-oak-d-pro-w-imu-coordinate-system/8
One way to confirm the current wrong assignment and this fix is to select
"Use 3DOF tracking instead of SLAM" checkbox in the "Generic inside out
head tracker" debug UI.
Tested with a Luxonis Oak-D Pro camera.
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2228 >
2024-06-04 19:54:02 +00:00
Mario Kleiner
e7cbcefac6
t/north_star: Add slam device after HMD device.
...
The HMD display device apparently needs to be the first one in
the xdevs list. Comments in xrt_prober.h seem to confirm this.
Order hmd and slam device acccordingly in the north_star target
builder.
Otherwise XR client calls to xrEndFrame(), at least with projection
layers, will cause monado-service to crash, as it chooses the
"slam device" xdev as "HMD", instead of the actual hmd device,
and therefore dereferences a xdev->hmd which is NULL inside
_update_projection_layer() and thereby segfaults.
gdb backtrace after SIGSEGV:
_update_projection_layer (xc=0x7ffe60000bf0, ics=0x5555560a5208, layer=0x7fff0a5ed620, i=0) at /home/dragon/projects/monado/src/xrt/ipc/server/ipc_server_handler.c:749
749 uint32_t view_count = xdev->hmd->view_count;
(gdb) bt
0 _update_projection_layer (xc=0x7ffe60000bf0, ics=0x5555560a5208, layer=0x7fff0a5ed620, i=0) at /home/dragon/projects/monado/src/xrt/ipc/server/ipc_server_handler.c:749
1 0x00005555555abd30 in _update_layers (ics=0x5555560a5208, xc=0x7ffe60000bf0, slot=0x7fff0a5ed600) at /home/dragon/projects/monado/src/xrt/ipc/server/ipc_server_handler.c:973
2 0x00005555555ac060 in ipc_handle_compositor_layer_sync (ics=0x5555560a5208, slot_id=0, out_free_slot_id=0x7fff0a5ef134, handles=0x7fff0a5ef170, handle_count=0)
at /home/dragon/projects/monado/src/xrt/ipc/server/ipc_server_handler.c:1058
3 0x00005555555a7167 in ipc_dispatch (ics=0x5555560a5208, ipc_command=0x7fff0a5ef840) at /home/dragon/projects/monado/build/src/xrt/ipc/ipc_server_generated.c:518
4 0x00005555555a56cc in client_loop (ics=0x5555560a5208) at /home/dragon/projects/monado/src/xrt/ipc/server/ipc_server_per_client_thread.c:191
5 0x00005555555a593d in ipc_server_client_thread (_ics=0x5555560a5208) at /home/dragon/projects/monado/src/xrt/ipc/server/ipc_server_per_client_thread.c:332
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2228 >
2024-06-04 19:54:02 +00:00
Christoph Haag
ccfac98d36
st/oxr: Ignore primaryViewConfigurationType in headless
...
Spec:
"In a headless session, the XrSessionBeginInfo::primaryViewConfigurationType must be ignored and may be 0."
2024-06-01 01:39:59 +02:00