Commit graph

5594 commits

Author SHA1 Message Date
Jakob Bornecrantz a03d1421b8 c/client: Respect native compositor's extra usage bits 2023-04-07 21:44:22 +01:00
Jakob Bornecrantz 1adf46b02a c/client: Use correct format in get_swapchain_create_properties funtions 2023-04-07 21:44:20 +01:00
Jakob Bornecrantz 94c9c8a253 xrt: Allow compositor to request extra usage bits
Some compositors might need extra usage bits set beyond just the constant
sampled bit, make it all generic and extend the xrt interface to allow it.
2023-04-07 21:33:52 +01:00
Jakob Bornecrantz b193c3bdd2 t/sdl_test: Make sure to init devices before system devices 2023-04-07 16:11:16 +01:00
Jakob Bornecrantz 12160ef652 doc: Document !1732 2023-04-07 15:37:22 +01:00
Jakob Bornecrantz bab4a126ae xrt: Remove product_name from xrt_prober_device struct
And move it to an internal struct instead. Better to keep it internal to the
prober as it was only used for the bluetooth probing. And there was a function
that applications should use to get strings from xrt_prober_device.
2023-04-07 15:37:22 +01:00
Jakob Bornecrantz 363132f424 doc: Document !1750 2023-04-07 14:27:08 +00:00
Jakob Bornecrantz d40805e777 c/client: Silence VK_FORMAT_R32_SFLOAT warning in OpenGL code 2023-04-07 14:27:08 +00:00
Jakob Bornecrantz 8e087ac5ac d/vive: Use vive_poses helpers for offsets of poses 2023-04-07 13:37:05 +00:00
Jakob Bornecrantz ea97960b9e d/vive: Change how the pose GUI variable is updated 2023-04-07 13:37:05 +00:00
utzcoz 990ce39fa1 c/main: Remove unused headers for comp_renderer.c 2023-04-07 11:23:43 +00:00
Mateo de Mayo c0f7a5ed01 d/vive: Improve handling of controller pose 2023-04-06 16:46:11 +00:00
Jakob Bornecrantz 7654867e10 doc: Document !1754 2023-04-05 16:53:24 +01:00
Jakob Bornecrantz e9c43a7ca6 d/wmr: Remove legacy found functions 2023-04-05 16:53:24 +01:00
Jakob Bornecrantz 2ddf868735 d/wmr: Do device creation via builder interface 2023-04-05 16:53:24 +01:00
Jakob Bornecrantz 56dd75c14d d/wmr: Add stub WinMR builder 2023-04-05 16:53:24 +01:00
Jakob Bornecrantz 05b83d5102 d/wmr: Move wmr_headset_type to wmr_common.h 2023-04-05 16:53:24 +01:00
Jakob Bornecrantz 3819a21e44 d/wmr: Tidy interface and common headers 2023-04-05 16:53:24 +01:00
Jakob Bornecrantz 6ee235ac3b d/wmr: Tidy camera destroy function 2023-04-05 16:53:24 +01:00
Jakob Bornecrantz 1410afc330 d/wmr: Reject timestamps that are older then the last sample received 2023-04-05 16:53:24 +01:00
Jakob Bornecrantz a5d3fff573 t/common: Add NorthStar to doxygen 2023-04-05 16:53:24 +01:00
wermos edcda5a38c Fixed a small typo. 2023-04-04 13:05:47 +00:00
Jakob Bornecrantz 6c038049ff doc: Document !1751 2023-04-04 13:56:55 +01:00
Jakob Bornecrantz 85886e53e1 c/client: Make it clear where we break the OpenXR spec 2023-04-04 13:56:55 +01:00
Jakob Bornecrantz a6764b751a c/client: Don't use vkDeviceWaitIdle
As per the documentation for vkDeviceWaitIdle, it requires that the VkQueue
host access is externally synchronized. And the application may have other
VkQueue's in use that we do not know about.

https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkDeviceWaitIdle.html
2023-04-04 13:56:55 +01:00
Jakob Bornecrantz 98395eab4b doc: Document !1755 2023-04-04 13:38:21 +01:00
Jakob Bornecrantz 50838f5801 xrt: Introduce xrt_layer_frame_data 2023-04-04 13:38:21 +01:00
Jakob Bornecrantz bec9a30bfe xrt: Re-order compositor header for better grouping [NFC] 2023-04-04 13:30:22 +01:00
Mateo de Mayo 3a11afa846 d/wmr: Fix null dereference 2023-04-03 17:55:08 -03:00
Mateo de Mayo 3ecee6d0ca d/wmr: Support head tracking with more than two cameras 2023-04-03 12:17:11 -03:00
utzcoz 629c4b67f1 ipc/android: Remove unnecessary toString for log
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-04-02 16:14:15 +00:00
utzcoz d30b015b39 aux/android: Remove unnecessary toString for log
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-04-02 16:14:15 +00:00
utzcoz a4cea7c0e3 t/android: Remove unnecessary toString for log
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-04-02 16:14:15 +00:00
Jakob Bornecrantz a2081db38a st/oxr: Fix typo in OXR_CHECK_XRET define usages [NFC]
Fix typo that I introduced in !1727 (95512594a0).
2023-04-01 16:32:03 +01:00
Mateo de Mayo 24de185b6c t/openvr: Add openvr tracker for recording lighthouse groundtruth
With the SLAM_OPENVR_GROUNDTRUTH_DEVICE we can select a device (HMD, right/left
controller, vive tracker) to use as the groundtruth provider for a SLAM tracker.
This is useful to record euroc datasets with lighthouse groundtruth.
2023-04-01 14:56:39 +00:00
Jarvis Huang 95512594a0 st/oxr: Convert session IPC error to XR_ERROR_SESSION_LOST
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2023-04-01 15:44:32 +01:00
Jakob Bornecrantz c006ac138f st/oxr: Add helper for xrt_result_t checking 2023-04-01 15:44:32 +01:00
Jarvis Huang c560ff5592 st/oxr: xrPollEvent should not return XR_SESSION_LOSS_PENDING 2023-04-01 14:43:40 +01:00
Jarvis Huang 7cd1d4886f st/oxr: Support session lost error in session related APIs 2023-04-01 14:43:40 +01:00
Jarvis Huang f9d83c8b1f st/oxr: Handle XR_SESSION_STATE_LOSS_PENDING 2023-04-01 14:43:40 +01:00
Jarvis Huang 971947f722 c/multi: Implement xrt_multi_compositor_control::notify_surface_lost 2023-04-01 14:43:40 +01:00
Jarvis Huang aa9c559f96 xrt: Add new API in xrt_multi_compositor_control interface 2023-04-01 14:43:40 +01:00
utzcoz 982932158c c/main: Remove unused comp_renderer including for comp_window_peek 2023-04-01 10:37:09 +00:00
Ryan Pavlik c1ba8ff74f t/oxr_android: Fix manifest by specifying the full classname of the activity
Needed in order to fix the move of the default namespace.
2023-03-29 14:10:17 -05:00
utzcoz 62d1510458 c/main: Remove unused header files from comp_target_swapchain.c 2023-03-29 17:36:56 +00:00
utzcoz 7676fa0a93 gradle: Bump AGP to 7.1.2
1. Bump AGP to 7.1.2.
2. Bump hiltVersion to 2.38.1.
3. Migrate lintOptions to lint.
4. Move package from AndroidManifest to Gradle.
5. Fully qualify application class name.
6. Fix packagingOptions usage with resources wrapper.

Signed-off-by: utzcoz <utzcoz@outlook.com>
Signed-off-by: Ryan Pavlik <ryan.pavlik@collabora.com>
2023-03-29 16:48:16 +00:00
Jakob Bornecrantz 92f7e36083 st/oxr: Validate view array types 2023-03-28 19:30:57 +01:00
utzcoz 7e96a1c557 script: Update copyright year
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-03-28 18:11:25 +00:00
utzcoz 6544fd0493 script: Exclude .cmake for format-cmake.sh
It can help to fix the following error when running format-cmake.sh:
IsADirectoryError: [Errno 21] Is a directory: 'src/xrt/targets/openxr_android/.cxx/Debug/***/arm64-v8a/.cmake'

Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-03-28 18:11:25 +00:00
utzcoz 0da76e64d3 scripts: Support clang-format12-14
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-03-28 18:11:25 +00:00