Commit graph

7430 commits

Author SHA1 Message Date
Joel-Valenciano c442fc5cad c/render: Remove float cast in calc_projection
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2377>
2024-12-17 09:22:28 -06:00
Joel-Valenciano 06986621d6 c/util: Change swapchain index used in do_mesh_from_proj
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2377>
2024-12-17 09:15:06 -06:00
Jan Schmidt e076de071a u/logging: Use truncating snprintf utility for JSON log
When using the JSON logging mode, truncate log strings to
ensure they fit in the allocated message buffer

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2373>
2024-12-12 16:20:27 +11:00
Jan Schmidt efa6c5d149 a/tracking: Use PRId64 instead of %ld
Use the stdint 64-bit format specifiers when printing 64-bit ints
for better cross-platform compatibility

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2373>
2024-12-12 16:19:38 +11:00
Jan Schmidt bcd358bf5d tracy: Add braces around if statement
Fix a warning about missing braces around an empty
statement when TRACY_VERBOSE is not defined

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2373>
2024-12-12 16:00:38 +11:00
Christoph Haag 6d09f33441 c/null: Don't crash on XR_FB_display_refresh_rate use
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2368>
2024-12-10 18:08:13 +00:00
Bones 83f4f68344 doc: Document !2361
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2361>
2024-12-09 13:52:23 +00:00
Bones 7e19da6233 d/steamvr_lh: try new beta driver internal interface
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2361>
2024-12-09 13:52:23 +00:00
Charlton Rodda d569c0d27c a/bindings: Include requirements of parent profile
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2364>
2024-12-05 22:22:42 +00:00
Charlton Rodda 823047e2db a/bindings: Fix extra tabs in generated code
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2364>
2024-12-05 22:22:42 +00:00
Christoph Haag 0ad8c7441d a/bindings: Add distinct device enums for touch variants
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2356>
2024-12-03 18:22:50 +00:00
Beyley Thomas aa2b0f9f1d st/oxr: Implement the EXT_active_action_set_priority extension
This is required for proper action set priority emulation in OpenComposite.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2370>
2024-11-29 18:12:32 -08:00
Korcan Hussein faf0aafbd4 doc: Document !2352
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2352>
2024-11-21 10:57:01 +00:00
Korcan Hussein 5fb1a02575 xrt: Fixes #411, KHR_vulkan_swapchain_format_list not enabled client-side
* Fixes VK_KHR_image_format_list not being added to
  extension lists or not enabling flags on
  client-side vk_bundle / vk client compositor.

* Fixes missing extension VK_KHR_image_format_list to
  the vulkan device extension list for XR_KHR_vulkan_enable

* Fixes format lists for KHR_vulkan_swapchain_format_list
  not be used/applied on client vk images.

* Fixes vulkan validation errors on client that attempt
  to use & chain format lists for image view creation
  outside of OpenXR / runtime

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2352>
2024-11-21 10:57:01 +00:00
Korcan Hussein b4fe9aaa56 aux/vk: Fixes #410, mutable format bit not set on client vk images
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2352>
2024-11-21 10:57:01 +00:00
Korcan Hussein affc6036bb doc: Document !2347
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2347>
2024-11-20 17:15:34 +00:00
Rylie Pavlik 32b695433d a/vk: Remove unneeded warning
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2347>
2024-11-20 17:15:34 +00:00
korejan 3d6b272ee0 aux/d3d,c/client: fix d3d12 "zero size" swapchain error
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2347>
2024-11-20 17:15:34 +00:00
Simon Zeni 6a26019aba xrt: adapt driver to new get_tracked_pose api change
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>
2024-11-19 15:39:57 -05:00
Simon Zeni d13a36beec u/logging: add U_LOG_XDEV_UNSUPPORTED_INPUT macro
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>
2024-11-19 15:39:57 -05:00
Simon Zeni e113b532b6 xrt: introduce XRT_ERROR_INPUT_UNSUPPORTED
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>
2024-11-19 15:39:57 -05:00
Simon Zeni 0caec59967 ipc: return get tracked pose result in server handle
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>
2024-11-19 15:33:49 -05:00
Simon Zeni 177f34c8f0 xrt: xrt_device_get_tracked_pose return xrt_result_t
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>
2024-11-19 15:33:47 -05:00
Simon Zeni 1473430eef xrt: remove function pointer check
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>
2024-11-19 15:32:17 -05:00
Rylie Pavlik 31fdb0bcd0 a/util: Add assert to catch this bug more conveniently.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2358>
2024-11-13 16:58:26 -06:00
Rylie Pavlik e052834399 t/sdl_test: Fix SDL service
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2358>
2024-11-13 11:19:11 -06:00
Rylie Pavlik 0ca2ddd914 st/oxr: Fix crash getting ref space bounds in headless mode
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2354>
2024-11-12 17:27:59 +00:00
Rylie Pavlik e8074ec333 ext: Update to OpenXR 1.1.42 headers
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2353>
2024-11-08 11:39:59 -06:00
Rylie Pavlik 3c7979d1d9 doc: Document !2342
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:32:18 -06:00
Rylie Pavlik a4406fbf04 st/oxr: Fix missing forward declarations/includes
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:58 -06:00
Rylie Pavlik ef93956c75 c/util: Clean up init
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik 97c7032850 t/sdl_test: Clean up init
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik d2890ad393 c/null: Clean up init
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik c9493d6757 c/main: Clean up init
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik 23038a9cad c/null: Small Cleanups
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik 91de043eb6 c/null: Show using get_view_poses
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik be66528d03 st/oxr: Re-generate code for extension support.
Looks like some manual editing was done.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik 3b74c520ed doc: Clean up changelog fragments
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik 15eee8070c doc: Document !2298
Changelog fragment accidentally never added to a commit,
just sitting here untracked this whole time.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik 549a81b4d7 xrt: Fix typo
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik 89725704ef doc: Fix typo
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Rylie Pavlik e66bd5daf8 scripts: Update codespell ignore regex
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2342>
2024-11-08 11:22:33 -06:00
Patrick Nicolas 8aea7b8691 u/space_overseer: allow single local space
u_space_overseer by default creates a local/local_floor pair for each
application and can't recenter them.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2351>
2024-11-08 14:59:49 +00:00
Rylie Pavlik ee2ddead2e st/oxr: Fix one place that was checking for session running in a weird way.
Techincally "session running" depends entirely on what calls
have been made, and not on the session state events that were
polled.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2344>
2024-11-07 21:12:58 +00:00
Yulou Liu 3b232b745f st/oxr: Add synchronization primitive that handles session-running-status and blocking of wait frame
rpavlik: Fixes, rename
rpavlik: Add is_session_running

Co-authored-by: Rylie Pavlik <rylie.pavlik@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2344>
2024-11-07 21:12:58 +00:00
Charlton Rodda ce3a05851d Go back to using COMMON as fallback state
RENDER_TARGET requires a bit to be set, but COMMON doesn't
(this also matches hardcoded before states elsewhere)

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2349>
2024-11-06 23:25:41 +00:00
Rylie Pavlik 7a4ba078d9 a/vk: Add/update comments
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2332>
2024-11-05 12:59:08 -06:00
Simon Zeni 869054403f aux/vk: respect VUID-VkMemoryAllocateInfo-pNext-01874 in create_image
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2332>
2024-11-05 12:59:08 -06:00
Simon Zeni 241b4c6a80 aux/vk: skip image size check for d3d11 and d3d12 in vk_create_image_from_native
Co-authored-by: Rylie Pavlik <rylie.pavlik@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2332>
2024-11-04 13:15:38 -06:00
Simon Zeni cf9fe1716e aux/vk: check image size not 0, when appropriate, in vk_create_image_from_native
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2332>
2024-11-04 13:15:15 -06:00