Commit graph

7488 commits

Author SHA1 Message Date
utzcoz 4f3c9bb2fe t/android_common: Fix lint errors for !! usages
The lint doesn't recommend us to use someVariable!!,
and we can use built-in Kotlin's requireNotNull and with
scope function to use variables without errors.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz ab48d41724 targets/android: Bump ktfmt to 0.53 and reformat it
Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz b04fbb6756 ipc/android: Bump ktfmt to 0.53 and reformat it
Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz 19539af51f Document !2382
Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz 4558bfe418 a/android: Bump ktfmt to 0.53 and reformat it
Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz b95ebbe69b android: Add ktfmtVersion parameter for android modules
It uses the latest ktfmt version 0.53.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz 9ccd4d928d android: Bump core-ktx to 1.15.0
Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz ed3b353755 android: Bump compileSdk to 35
It is used to latest AndroidX libraries.

ci: Update tag and android_compile_sdk to keep sync

Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz e4e86b0d16 android: Bump AGP to 8.6.0
It supports SDK 35.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz f9220ba9f5 gradle: Update gradle to 8.12
Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
utzcoz 03c7385346 git: Ignore .kotlin directory
It is generated by Kotlin from 2.0+.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2382>
2025-01-24 10:12:01 +00:00
Jan Schmidt d93e4b92a6 d/wmr: Recover from bad camera transfers
Fix USB overflow problems when camera readout is
delayed by rounding up the transfer size to always
be a multiple of the endpoint transfer size, and
by discarding invalid frames that happen when
the headset ends up with too much data queued.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2394>
2025-01-22 21:49:48 +00:00
Jan Schmidt 4a905bbb24 d/wmr: Expand USB transfers to 9
Enqueue more USB camera transfers to better cope
with extended mis-scheduling in the kernel.
9 pending transfers is 9/90 = 100ms, or 3 loops
through the SLAM/controller/controller exposures
cycle

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2394>
2025-01-22 21:49:48 +00:00
Simon Zeni 37bb719efd d/android: implement get_visibility_mask
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2403>
2025-01-22 17:55:13 +00:00
Simon Zeni 6dc491bec7 d/simulated: implement get_visibility_mask
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2403>
2025-01-22 17:55:13 +00:00
Simon Zeni e236a472f0 a/util: introduce u_device_get_visibility_mask
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2403>
2025-01-22 17:55:13 +00:00
Simon Zeni 74b27cad4d d/sample: make sample_hmd_get_visibility_mask static
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2403>
2025-01-22 17:55:13 +00:00
Jakob Bornecrantz cc2fa1ea53 t/openxr: Use XRT_MODULE_IPC to decide if we do IPC build or not
This lets a external Monado user build the IPC layer and IPC enabled
libopenxr_thing.so without also building the service.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2401>
2025-01-21 21:19:17 +00:00
Jakob Bornecrantz 05e0160a32 st/oxr: Only build state tracker when XRT_FEATURE_OPENXR is set
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2401>
2025-01-21 21:19:17 +00:00
Jakob Bornecrantz 574457b72c tests: Only build st/oxr tests if XRT_FEATURE_OPENXR is set
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2401>
2025-01-21 21:19:17 +00:00
Jakob Bornecrantz c1bf3c116c st/oxr: Fix crash and tidy depth layer code
This fixes a crash when XR_KHR_composition_layer_depth is disabled.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2406>
2025-01-17 19:11:02 +00:00
Jakob Bornecrantz 66ee1c357f st/oxr: Fix warnings when XR_KHR_composition_layer_depth is disabled
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2406>
2025-01-17 19:10:48 +00:00
David Coles 529aa5b092 d/wmr: Add PID of HP Reverb G2 Omnicept edition
The Omnicept edition has several additional sensors, but the base
functionality is identical to that of the Reverb G2.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2395>
2025-01-17 15:34:05 +00:00
Charlton Rodda 8c16c8ffde a/bindings: Fix META_touch_controller_plus profile
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2405>
2025-01-17 01:45:24 +00:00
utzcoz 5ae43d6a2c ci: Bump Ubuntu and Debian image tag
Trigger CI to regenerate docker images for Ubuntu
and Debian to avoid current "no such image" error.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2393>
2025-01-11 11:27:52 +08:00
Rylie Pavlik aeb574c96c a/android: Early out of android_instance_base_cleanup if never init.
Fixes an assert on service exit on Android.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2392>
2025-01-10 16:59:46 +00:00
Simon Zeni e8389f8b48 c/main: fix call to comp_target_get_refresh_rates condition
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2391>
2025-01-09 15:53:38 -05:00
Simon Zeni 725bc3479e c/render: fix image_array_size value
This was converted incorrectly from an if-statement
in a7846911a6

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2388>
2025-01-09 19:43:12 +00:00
Simon Zeni a84dec5fae c/util: remove unused transition_from variable
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2388>
2025-01-09 19:43:12 +00:00
rcelyte a8ac453e20 d/steamvr_lh: Fix double free in builder
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2387>
2025-01-06 22:31:56 +00:00
Rylie Pavlik 5a277c8e46 c/render: Doc improvements
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 1667b416c7 c/util: Export the gfx layer squasher.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 1959448b25 c/util: more renames and re-orgs to align compute and gfx
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik a7846911a6 c/render: Do not use a local that isn't a macro parameter.
Makes logic hard to follow, and it can be fragile

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 1c342e8146 c/util: Renames and comment cleanup to improve readability.
Banish "crc" and "rr" as leftover artifacts of old names.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 3ad3410072 c/main: Renames and comment cleanup to improve readability.
Banish "crc" and "rr" as leftover artifacts of old names.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 5500e23e26 c/render: Renames and comment cleanup to improve readability.
Banish "crc" and "rr" as leftover artifacts of old names.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 87c46bdb67 c/render: More cleanup of render_gfx
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik c9a416c2ad c/render: Rename vk_from_rr to vk_from_render
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 098f97ad8f c/render: Renames and comment cleanup to improve readability.
Banish "crc" and "rr" as leftover artifacts of old names.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 9d448cfb09 c/util: More diff reduction between comp_render_{cs,gfx}
Just comments, rearranging, and other non-functional changes.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 4e27115775 c/util: Re-arrange comp_render_cs to ease comparison against comp_render_gfx
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik a059a1b777 c/util: Rearrange to minimize diffs between compute fast path and from-scratch distortion
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik 05df2a6266 c/client: Normalize naming (fini)
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Rylie Pavlik d8a300cedf comp: Normalize naming (fini)
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2380>
2025-01-06 15:35:05 -06:00
Patrick Nicolas e5f5461dff xrt/compositor: forward refresh rate functions to comp target
Compositor target may implement get/request methods to query available
refresh rates, the current one and request a change.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2375>
2025-01-06 19:28:54 +00:00
Bones e095d5f987 doc: Document !2290 2024-12-31 10:00:09 -05:00
BabbleBones 16a26c7c93 d/steamvr_lh: Fix disabling of hand simulation 2024-12-31 10:00:09 -05:00
Rylie Pavlik 59c34e17b4 README: Update Code of Conduct contacts.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2362>
2024-12-18 02:07:11 +00:00
Rylie Pavlik b6a628afa2 doc: Document !2377
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2379>
2024-12-18 02:01:09 +00:00