Commit graph

7381 commits

Author SHA1 Message Date
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 2d3978b1b0 doc: Document !2299
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2299>
2024-08-12 15:02:59 +00: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 ea262a539c doc: Document !2302
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2302>
2024-08-06 10:55:46 -04: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 0c1f488d8a doc: Add diagrams for swapchain image allocation control flow.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2300>
2024-08-02 12:29:55 -05:00
Rylie Pavlik cc41c56ad0 doc: Add mermaid diagram support to Doxygen config
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2300>
2024-08-02 12:28:13 -05: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
Rylie Pavlik 75018539fd doc: Update header.html from doxygen 1.9.4
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2300>
2024-08-02 11:31:45 -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 dfc602288a doc: Document !2285
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2285>
2024-07-30 19:39:33 +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 a0dbda4977 doc: Document !2153
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2153>
2024-07-26 12:38:01 -05: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
galister d86ca89da5 doc: Document !2280
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2288>
2024-07-19 22:43:38 +09: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 c6d341a935 doc: Document !2284
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2284>
2024-07-18 21:09:34 +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
Simon Zeni f635ac290b ci: fix packaging
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2287>
2024-07-18 20:37:37 +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 b20d80147d doc: Document !2286
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2286>
2024-07-18 23:34:53 +09: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
Andrei Aristarkhov 9652fee1ee cmake: Allow D3D detection outside of the VS Developer Command Prompt
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2276>
2024-07-15 17:33:15 +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