Commit graph

7456 commits

Author SHA1 Message Date
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
Rylie Pavlik 5a8fb95da5 c/util: Fix doc errors
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2379>
2024-12-18 02:01:09 +00:00
Rylie Pavlik 2189722680 xrt: Fix doc errors
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2379>
2024-12-18 02:01:09 +00:00
Rylie Pavlik 2cce3a06a0 c/render: Fix mangled comment
Partial revert of 2a513c14fe

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2378>
2024-12-17 15:39:45 -06:00
Rylie Pavlik a761589000 c/util: Fix typos in comments
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2378>
2024-12-17 15:39:10 -06:00
Rylie Pavlik bf37f05434 c/util: Fix typo
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2378>
2024-12-17 15:39:10 -06:00
Rylie Pavlik 09fa275443 c/util: Fix comment
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2378>
2024-12-17 15:22:01 -06:00
Rylie Pavlik da02573cab c/render: Comments
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2378>
2024-12-17 15:22:01 -06:00
Tuupertunut 815bf1678b d/qwerty: Switch simulated controllers to WMR controllers
Previously the qwerty driver simulated Khronos simple controllers with 2 buttons. Now it simulates Windows Mixed Reality controllers with 4 buttons, a thumbstick and a trackpad. This is enough to properly control most VR games.

v2: Clarify a comment about aim pose not implemented

co-authored-by: Christoph Haag <christoph.haag@collabora.com>

v3: Re-add simple khronos controller bindings

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2355>
2024-12-17 17:35:51 +01:00
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