Commit Graph
8315 Commits
Author SHA1 Message Date
Beyley Cardellio cd496cf624 d/psvr2: Add compositor scanout information
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:31 +00:00
Beyley Cardellio a7b5f5e104 d/psvr2: Tracking improvements
- Add IMU -> head offset
- Gyro dead reckoning
- Correctly define tracking origin

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:30 +00:00
Beyley Cardellio d2f4efdca5 d/psvr2: Move protocol definitions and HMD struct to another file
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:30 +00:00
Beyley Cardellio 0b914224d1 d/psvr2: Always choose nearest quaternion to last slam pose
This prevents the motion estimation from thinking the device has rotated nearly 360 degrees when the SLAM tracker gives us the 2nd poled quaternion for the orientation, since it does not appear to do any kind of continuity checking itself.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:29 +00:00
Beyley Cardellio 1802843782 d/psvr2: Use X-macro for freeing transfers
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:29 +00:00
Beyley Cardellio 48218c3f12 d/psvr2: Fix get_view_poses function for upstream changes
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:28 +00:00
Beyley Cardellio 7ca5d153b8 d/psvr2: Implement serial number parsing
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:28 +00:00
Beyley Cardellio 3f602bac54 d/psvr2: Exit libusb context after closing device
We also disable USB device close due to a libusb bug. This shouldn't
leak resources.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:27 +00:00
Beyley Cardellio ed592836cb d/psvr2: Expose PS VR2 interaction profile
Function button (path called "system" for consistency, but named "function button" by Sony's documentation) is fully implemented, but output haptics are exposed but unimplemented, pending getting them working on post-PC firmwares.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:27 +00:00
Beyley Cardellio 425b4b6f7f d/psvr2: Implement brightness control
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:26 +00:00
Beyley Cardellio 38468a5778 d/psvr2: Add documentation for a bunch of fields
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:26 +00:00
Beyley Cardellio 68e901f522 d/psvr2: Use relation history for SLAM poses
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:26 +00:00
Beyley Cardellio ceea208449 d/psvr2: Expose presence sensor
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:25 +00:00
Beyley Cardellio e0947693a8 d/psvr2: Update driver and read from HMD's distortion calibration block
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:25 +00:00
Joel-Valenciano b04f4a7690 d/psvr2: Add IMU clock tracking
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:24 +00:00
Joel-Valenciano ef8ec2a347 d/psvr2: Avoid USB stop deadlock & free USB transfers
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:24 +00:00
Joel-Valenciano 58fd083a0d d/psvr2: Begin basic time tracking
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:24 +00:00
Joel-Valenciano 3d6bf82a55 d/psvr2: Implement PS VR2 asymmetric distortion function
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:23 +00:00
Jan Schmidt 38cf11713d d/psvr2: Initial PS VR2 HMD driver
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2607>
2026-02-09 10:54:22 +00:00
Jakob Bornecrantz a383486e85 ipc: Make all XrTime references be within the same ballpark for all clients
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2733>
2026-02-09 10:45:13 +00:00
Beyley Cardellio 8b46a393b7 doc: Document !2475
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2475>
2026-02-07 19:34:08 -05:00
Beyley Cardellio 7b7d11ab8f d/uvc: Add userspace UVC driver
This currently has no dependents in upstream Monado, however this is needed by my downstream Rift CV1 driver.

Most of this code is imported from OpenHMD, and ported to Monado's codebase by me. It was originally written
by Phillip Zabel, and expanded by thaytan for OpenHMD.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2475>
2026-02-07 19:34:08 -05:00
Beyley Cardellio 689196c1b7 d/rift: Implement controller haptics
This is done using sync radio commands because if we don't then we tend to drop haptic events, the radio on the CV1 is *really* slow so we just synchronously send haptics and it *should* still be able to keep up with everything else going on. If this becomes an issue, perhaps sending haptics should be moved to a thread different from the one reading radio data? It doesn't appear to be an issue in my testing, at least.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2731>
2026-02-07 04:37:44 +00:00
Beyley Cardellio 81b724724f xrt,st/oxr: Add missing BD body tracking joints to xrt_body_joint_set union
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2735>
2026-02-06 05:12:28 -05:00
Gareth MorganandBeyley Cardellio 756e5fd408 xrt: Add support for XR_BD_body_tracking
Co-authored-by: Beyley Cardellio <ep1cm1n10n123@gmail.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2732>
2026-02-06 00:29:08 +00:00
Brent LongstaffandAndrew Wilson 03a10d6a2a xrt: Add Khronos Generic Controller
Co-authored-by: Andrew Wilson <anwilson@nvidia.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2732>
2026-02-06 00:29:08 +00:00
Andrew Wilson 58d6920daf st/oxr: Fix verification of OpenXR 1.1 quad views
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2732>
2026-02-06 00:29:08 +00:00
Jakob Bornecrantz 13b2519e7c st/oxr: Remove oxr_ prefix from folders
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2732>
2026-02-06 00:29:08 +00:00
Jakob Bornecrantz 8ccb352c1b c/util: Remove comp_scratch_stereo_images
It's not used.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2732>
2026-02-06 00:29:08 +00:00
Sapphire 9dcc3e1de2 ipc/server: Change IO block log levels to debug
These messages are extremely spammy, hide them by default.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2730>
2026-02-04 23:41:03 -06:00
Sapphire 0877fc240d ipc/server: Always update server state when changing active client
Fixes #497.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2729>
2026-02-04 17:30:01 -06:00
Sapphire deedfadc27 t/libmonado: Add set_client_io_blocks function and IO block flags
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2727>
2026-02-04 11:10:16 -06:00
Sapphire 7674253dfa ipc: Add system_set_client_io_blocks
Allows clients to block certain types of IO (poses, hand tracking,
button/trigger/joystick inputs, haptic outputs) for a client.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2727>
2026-02-04 11:10:16 -06:00
Jakob BornecrantzandKorcan Hussein 457302b507 a/glue: Add C++ wrapper for device
Co-authored-by: Korcan Hussein <korcan.hussein@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2623>
2026-02-03 15:06:11 +00:00
Jakob Bornecrantz c750c826c8 xrt: Add XRT_ERROR_UNCAUGHT_EXCEPTION
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2623>
2026-02-03 15:06:11 +00:00
Sapphire 317b480450 st/oxr: add missing oxr_roles includes
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2726>
2026-02-03 08:43:55 -06:00
Jakob Bornecrantz c1f9183886 c/main: Use helper pointer [NFC]
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2694>
2026-02-03 12:07:53 +00:00
Korcan HusseinandJakob Bornecrantz e3b4f25227 c/main: Make queue explicit for present
Co-authored-by: Jakob Bornecrantz <tbornecrantz@nvidia.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2694>
2026-02-03 12:07:53 +00:00
Jakob Bornecrantz ffbe4f4aa4 c/main: Pass in the queue to use when creating images
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2694>
2026-02-03 12:07:53 +00:00
Jakob Bornecrantz c598001697 a/vk: Always create a graphics queue
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2694>
2026-02-03 12:07:53 +00:00
Jakob Bornecrantz 998dd17cbc c/main: Use submit helpers
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2694>
2026-02-03 12:07:53 +00:00
Jakob Bornecrantz a397c66ed3 a/vk: Add submit helpers
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2694>
2026-02-03 12:07:53 +00:00
Jakob Bornecrantz fd4c4c2619 a/vk: Refactor out queue helpers into own files
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2723>
2026-02-03 11:52:31 +00:00
Jakob Bornecrantz 556b3be754 a/vk: Refactor function to get physical queue properties
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2723>
2026-02-03 11:52:31 +00:00
Supremium 400dafe503 external/imgui: Apply correct flag based on compiler, not platform
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2725>
2026-02-03 10:50:19 +00:00
Jakob BornecrantzandKorcan Hussein f874b12e43 u/extension_list: Refactor and rename from u_string_list
Co-authored-by: Korcan Hussein <korcan.hussein@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2693>
2026-02-03 10:30:00 +00:00
Jakob Bornecrantz ea9d89dae0 a/vk: Simplify extension testing
This will be slow until the improvement of the u_string_list struct.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2693>
2026-02-03 10:17:33 +00:00
Jakob Bornecrantz 86d96ffe0d a/vk: Refactor extension handling
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2693>
2026-02-03 10:17:33 +00:00
Jakob Bornecrantz d35e6f31ea u/string_list: Add extension sorting function
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2693>
2026-02-03 10:17:33 +00:00
Jakob Bornecrantz f922f48539 u/string_list: Tidy [NFC]
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2693>
2026-02-03 10:17:33 +00:00