Commit Graph
110 Commits
Author SHA1 Message Date
Bernhard Jung 16fb777074 c/render: Fix gfx pipeline for projection layer with multiple layers
Fix split layer_shared.frag into quad and projection to prevent misalignment issues of the UBOs in vert/frag.

Also: fix spelling: tanget -> tangent
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2744>
2026-02-12 13:35:52 +01: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 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
Simon Zeni e356bfef18 tests: specify enum underlying type
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2714>
2026-01-29 15:35:20 +00:00
Simon Zeni 5acb185fc6 tests: use \n instead of std::endl in tests_pacing
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2714>
2026-01-29 15:35:16 +00:00
Krzysztof LesiakandKorcan Hussein a651592db1 tests: Don't use wil types in test code. It will call CloseHandle on KMT handles leading to exceptions while debugging
Co-authored-by: Korcan Hussein <korcan.hussein@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2579>
2025-11-20 10:55:43 +00:00
Krzysztof LesiakandKorcan Hussein 314529d079 tests: Explicitly set is_dxgi_handle to true in test code since the d3d11 allocator gives us non-NT handles
Co-authored-by: Korcan Hussein <korcan.hussein@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2579>
2025-11-20 10:23:07 +00:00
Krzysztof LesiakandKorcan Hussein a5301c6fd8 tests: Fix tests_aux_d3d_d3d11 failing in DuplicateHandle before importing
Co-authored-by: Korcan Hussein <korcan.hussein@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2579>
2025-11-20 10:23:07 +00:00
Krzysztof Lesiak 85aeeeec24 tests: Port aux d3d11 import tests to d3d12
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2577>
2025-11-19 13:57:22 +00:00
Andrei Aristarkhov 6d59798fc2 cmake: Group tests together in a folder for IDEs that support it
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2619>
2025-11-10 15:29:46 +00:00
Korcan Hussein 06e62fc7d9 xrt: refactor vk queue mutex into mutex per queue
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2594>
2025-10-06 15:11:32 +01:00
Korcan Hussein c0c10fd34d cmake: fix eigen cmake packages for v5.0 (3.5)
Eigen changed from 3.x versioning to semver (3.5 became 5.0) and
dropped FindEigen3.cmake module support (deprecated in prior versions)
for config discovery.

Switch from find_package version constraints to manual version checking
to maintain compatibility with both versioning schemes (>= 3.3 old or
>= 5.0 new).

See: https://gitlab.com/libeigen/eigen/-/merge_requests/485
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2583>
2025-09-22 15:17:57 +01:00
Korcan Hussein d5cf67f6aa a/vk: refactors vk queues into dedicated type
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2572>
2025-09-03 15:50:35 +01:00
averyv c53a690421 u/json: Implement rule of 5 in JSONNode
`operator=(JSONNode)` and `operator=(JSONNode &&)` conflict with each other
resulting in neither, and particularly the move operator, being usable.

Implement the missing traditional operators instead:
- `JSONNode(const JSONNode&)`,
- `operator=(const JSONNode&)`, and
- `operator=(JSONNode&&)`

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2426>
2025-07-16 23:04:13 +01:00
Simon Zeni f0e79b15ac Revert "a/math: Add filtered motion vectors to relation history"
See https://gitlab.freedesktop.org/monado/monado/-/issues/528

This reverts commit 339a2b536e.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2495>
2025-07-14 09:33:16 -04:00
Beyley Cardellio 339a2b536e a/math: Add filtered motion vectors to relation history
The one-euro parameters were hand-tuned for what "felt okay" for the razer hydra specifically

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2471>
2025-05-23 12:36:05 -07:00
Moshi Turner 84d5c8b02c all: Update Moshi's name
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2414>
2025-02-04 19:44:34 +00:00
Jakob Bornecrantz 574457b72c tests: Only build st/oxr tests if XRT_FEATURE_OPENXR is set
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2401>
2025-01-21 21:19:17 +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
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 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
Rylie Pavlik 511efda748 scripts: pytest-based Android device testing
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2311>
2024-08-23 15:05:07 +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 646950dc27 tests: Require dependency Android Vulkan extensions
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2233>
2024-08-23 14:04:37 +00:00
Simon Zeni 6f32def5f9 tests: fix warnings in tests_id_ringbuffer.cpp
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272>
2024-08-16 17:31:36 -05:00
Simon Zeni 953712fb96 tests: add --allow-running-no-tests when running tests
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2268>
2024-07-04 13:24:16 +00:00
Simon Zeni 976d40f669 external/catch2: upgrade to 3.6.0
https://github.com/catchorg/Catch2/releases/tag/v3.6.0

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2268>
2024-07-04 13:24:16 +00:00
Christoph Haag 6d71c083ea m/space: Restore upgrading of 3dof relations with valid positions
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2239>
2024-06-07 14:13:44 +00:00
Rylie Pavlik cd70cb35f7 tests: Clean up comments, strings 2024-05-03 15:40:45 -05:00
Christoph Haag a2ef1a394e test: Adjust relation chain test 2024-03-31 23:06:12 +02:00
Jakob Bornecrantz f6c90ccf61 tests: Make sure we can make a double from a string 2024-01-05 00:44:43 +00:00
Jakob Bornecrantz 479973e68f u/pacing: Split submit timing into begin and end 2024-01-04 19:54:05 +00:00
Rylie Pavlik 960e723394 xrt: Fix outdated name/email address 2023-12-18 14:29:02 -06:00
Zhongwang Zhang 017e2b2f29 xrt: Enable passing down renderdoc status 2023-11-09 13:45:43 +00:00
Zhongwang Zhang 0f257e1bed xrt: Enable passing down VK_EXT_debug_utils enabled status 2023-11-09 13:45:23 +00:00
Jakob Bornecrantz 6d0ab43cda tests: Add uv to tangent lengths test 2023-10-05 12:47:51 +01:00
Ryan Pavlik ef7b1133c6 a/util: Fix missing include for generic callback structure.
Also extend the tests to actually include invocation of callbacks,
and rename a template parameter for clearer usage.
2023-08-16 16:03:58 -05:00
samuel degrande 1ad168cfc5 cmake: Fix build failure on msys2/mingw64
This is due to the use of `${SDL2_LIBRARIES}` over `SDL2::SDL2`.

On some 'old' OSes such as Ubuntu 20.04, the SDL2 CMake config does
not set an SDL2:SDL2 target but rather defines SDL2_LIBRARIES and
SDL2_INCLUDE_DIRS variables.

This patch creates an SDL2::SDL2 target, if not already set, based on
those 2 variables.
2023-05-15 16:41:34 +00:00
Jakob Bornecrantz 86262e8b4e a/vk: Remove global command pool 2023-04-14 02:34:49 +01:00
Moshi Turner c463214157 tests: Fix levenberg-marquardt test 2023-03-13 13:04:31 -05:00
Ryan Pavlik f6ab734b2e a/math: Add floating point conversion methods to Rational 2023-03-01 10:53:18 -06:00
Moses Turner e9f79c45bf h/mercury: Update hand tracking with new half-artificial model 2023-02-04 15:23:04 -06:00
Jakob Bornecrantz 7130fc57ca tests: Add some simple relation chain tests 2023-01-24 16:11:56 +00:00
85a897a0b5 a/d3d,a/vk,c/client,ipc: D3D Depth texture / DXGI handle support
a/d3d: Improve allocation

Enable D3D11 and D3D112 depth images using DXGI handles

Allow D3D depth by default

D3D: only use DXGI handles

NT handles don't support depth formats and may fail to properly interop with Vulkan with some image dimensions.

Removed D3D_COMPOSITOR_ALLOW_DEPTH env.
D3D now always imports depth.

Added authorship.

Format pass

Fix D3D compositor tests

ipc: Fix HANDLE bit twiddling code

Merge into commits related to D3D depth changes. Makes the code compile
as C++, useful for Windows traceing

Co-authored-by: Robbie Bridgewater <ebridgewater@magicleap.com>
Co-authored-by: Fernando Velazquez Innella <finnella@magicleap.com>
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2023-01-24 15:35:22 +00:00
Ryan Pavlik 2db2fb94b7 tests: Verify Vulkan import in D3D11 alloc test 2023-01-24 15:35:09 +00:00
Robbie Bridgewater 3802e737bb a/d3d,a/vk: Add R32_SFLOAT formats
Co-authored-by: Catalin Slobodeanu <cslobodeanu@magicleap.com>
2023-01-24 15:35:01 +00:00
Moses Turner 5c68233004 Add test for m_vec3_angle 2022-11-29 03:11:53 -06:00
Moses Turner 352fda971c tests: Add tests for swing-twist conversions 2022-11-23 13:02:35 -06:00
Jakob Bornecrantz d48de0d832 u/worker: Use U_TRACE_SET_THREAD_NAME 2022-11-20 13:52:38 +00:00
Moses Turner a26daf3fb5 tests: Clean up tests_quat_change_of_basis 2022-11-14 21:27:30 -06:00