Commit graph

6183 commits

Author SHA1 Message Date
Rylie Pavlik e91a6d7d6f c/util: a->an
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik a886c47c30 d/ulv2: a->an
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik e3d206f495 xrt: a -> an
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik 573493bcb3 st/oxr: a->an
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik 7d061ca7ca c/util: Improve docs for renderers substantially
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik 59b8b2dbae c/util: comp_base doc improvement
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik e585d7aa55 a/util: Fix doxygen warning
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik 3057eac229 xrt: Rename args to fix doxygen warning
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik 5b94723a7d a/util: Doxygen warning
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik db844a430e st/gui: Improve doxygen
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik 0628bb5b3b xrt: Minor doc fix
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik 3dc17a4801 st/gui: Fix doxygen warning
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:48 -05:00
Rylie Pavlik eeb20ee9eb c/util: Fix typo
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2322>
2024-10-02 12:30:47 -05:00
Simon Zeni 8520f9612e xrt: adapt drivers to new update_input api change
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2246>
2024-09-30 09:32:08 -04:00
Simon Zeni f51f37bb9f st/oxr: handle device update inputs result
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2246>
2024-09-30 09:32:07 -04:00
Simon Zeni 361cf57360 xrt: make xrt_device_update_inputs return xrt_result_t
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2246>
2024-09-30 09:32:07 -04:00
liushuai.abel 9bba558fe1 st/oxr: fix wrong struct used when sending the XrEventDataInteractionProfileChanged event
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2327>
2024-09-27 09:42:23 -05:00
galister 01806a3ffa st/oxr: xdev_space to work with more controller types
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2330>
2024-09-25 14:37:44 +00:00
Christoph Haag c5c14f0435 a/d3d: fix swapchain with UNORDERED_ACCESS and COLOR usage
And fill in the rest of usage bits.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2281>
2024-09-24 16:29:51 +00:00
gamingdoom 90b36b16fd d/ohmd: Use XRT_FREQUENCY_UNSPECIFIED
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2329>
2024-09-23 23:34:18 +00:00
Pranay Sanghai 62900fade1 d/ohmd: Use unofficial OpenHMD Haptics API
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2329>
2024-09-23 13:03:03 -07:00
Simon Zeni b1117a7854 c/main: fix use after free in direct wayland introduced in !2278
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2328>
2024-09-23 10:01:51 -04:00
Simon Zeni e4bcbb6aeb aux/util: fix warning introduced in !2223
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2328>
2024-09-23 09:54:32 -04:00
Simon Zeni 21729323f3 ipc: fix warning introduced in !2252
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2328>
2024-09-23 09:54:21 -04:00
Simon Zeni 08f3965ad0 aux/vk: handle extFormatResolve in create_image
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2316>
2024-09-19 11:54:32 -04:00
Simon Zeni 8c272d1d96 xrt: use uint64_t for size in xrt_image_native
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2316>
2024-09-19 10:24:54 -04:00
Simon Zeni 1b8b85d99d aux/vk: add support for optional VK_ANDROID_external_format_resolve
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2316>
2024-09-19 09:44:56 -04:00
Simon Zeni 922e225794 aux/vk: add vk_csci_is_format_supported
Moved the function `is_format_supported` from comp_vulkan.c into the public API

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2316>
2024-09-19 09:44:56 -04:00
Zhongwang Zhang 7e9c6135be c/main: Trigger the display refresh rate change request via android API ANativeWindow_setFrameRate
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1786>
2024-09-18 15:18:20 -05:00
Zhongwang Zhang 00b491d11a c/multi: Push event if display refresh rate changed
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1786>
2024-09-18 15:12:18 -05:00
Zhongwang Zhang 7cf30da9b1 c/main: Implement display refresh rates supports on Android
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1786>
2024-09-18 15:12:18 -05:00
Zhongwang Zhang f2f092521f a/android: Add API for getting display refresh rate
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1786>
2024-09-18 15:12:18 -05:00
Zhongwang Zhang 4029233069 a/android: Add supported display refresh rates in xrt_android_display_metrics
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/1786>
2024-09-18 15:12:18 -05:00
Bones f86705a8b6 u/pacing: Add minimum wake period
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2293>
2024-09-18 19:00:41 +00:00
Jiali Zhang ed1ea5af73 Enable eye tracking on demand
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2223>
2024-09-18 18:43:32 +00:00
Yu Li b00a37be18 a/util,ipc,xrt: Support multi-local_floor space
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2252>
2024-09-18 18:36:19 +00:00
BabbleBones 3b7f85cd8c c/main: remove HP desktop monitor from NV whitelist
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2326>
2024-09-17 18:07:41 +00:00
Simon Zeni e89f2c3555 external/imgui: update to 1.90.8
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2254>
2024-09-17 11:12:21 -04:00
Simon Zeni a4cfebeb45 aux/debug_ui: forward type if debug gui feature is disabled
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2254>
2024-09-17 10:50:39 -04:00
galister 8b93ab6c72 xrt: pass at_timestamp_ns to get_face_tracking
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2310>
2024-09-12 00:14:21 +09:00
Simon Zeni 6e4a3a4759 cmake: rename XRT_FEATURE_OPENXR_LAYER_PASSTHROUGH into XRT_FEATURE_OPENXR_LAYER_FB_PASSTHROUGH
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2296>
2024-09-11 13:36:38 +00:00
Simon Zeni 5eb5da8de9 st/oxr: disable XR_EXT_hand_tracking through CMake
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2296>
2024-09-11 13:36:38 +00:00
Fernando Velazquez Innella 44179cd190 st/gui: draw gui_widget_native_images with header, scale slider and rotation checkbox
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2303>
2024-09-10 13:24:58 +00:00
Christoph Haag 3eabdc7713 d/steamvr_lh: Fix crash on shutdown
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2324>
2024-09-09 01:22:30 +02:00
Christoph Haag d1f4099a3f st/oxr: Add view rotation difference to fov angles with parallel views
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2312>
2024-09-06 19:40:00 +00:00
Christoph Haag 71b5d37e7e a/math: Add math_quat_to_euler_angles
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2312>
2024-09-06 19:40:00 +00:00
Christoph Haag 7150279e2b st/oxr: Log all quirks
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2312>
2024-09-06 19:40:00 +00:00
Christoph Haag f672227153 st/oxr: Add OXR_PARALLEL_VIEWS debug var
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2312>
2024-09-06 19:40:00 +00:00
Rylie Pavlik 338d85543b c/util: Extract comp_layer_accum, formerly comp_layer_slot, and reduce coupling.
The "secret" the implementation is hiding is how calls and layers
turn into a single structure. Not a great secret but functionality
that is needed.

c/util: Use comp_layer_accum in comp_base and derived implmentations.

c/util: zero the other swapchains.

c/util: Inline two functions.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2317>
2024-09-06 19:22:21 +00:00
Simon Zeni 9f6f6c6df7 xrt/compositor: use int64_t for timestamps
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298>
2024-09-06 10:48:14 -05:00
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