Commit graph

92 commits

Author SHA1 Message Date
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
Ryan Pavlik 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
Moses Turner d2e2c3a988 cmake: Run cmake-format.sh 2022-09-19 21:57:37 +01:00
Moses Turner 173d55c58b tests: Add test_quat_change_of_basis 2022-09-19 11:17:34 -05:00
Jakob Bornecrantz 29a43797fc tests: Fix compile with SDL2
This happens on certain old version of SDL2 where SDL2_LIBRARIES isn't a
magical target thingy.
2022-09-07 13:56:33 +01:00
Simon Zeni 210c01c77b tests: disable OpenGL client compositor test if GLX is not available 2022-08-23 05:41:56 -04:00
Ryan Pavlik fbdc3db03d tests: Add tests for the OpenGL client compositor code 2022-08-22 19:53:50 +00:00
Ryan Pavlik 12547e116a tests: Add basic d3d12 client compositor tests 2022-07-26 14:45:29 +00:00
Ryan Pavlik 576b158a83 a/d3d: Add some d3d12 features 2022-07-26 14:45:29 +00:00
Ryan Pavlik b37a89e312 tests: Clean up unique_ptr usage 2022-07-26 14:45:29 +00:00
Mateo de Mayo ae8305f324 u/deque: Add generic wrapper for std::deque 2022-07-25 19:08:46 +00:00
Ryan Pavlik 41b4232f8a tests: Resolve warnings 2022-07-14 14:17:35 +00:00
Mateo de Mayo afa7f7ade9 u/vector: Add generic wrapper for std::vector 2022-07-07 15:35:04 +00:00
Mateo de Mayo d0b00c7d23 tests: Add explicit margin to Approx in tests_pose
To avoid an issue with catch2::Approx defaults applied around 0
See https://github.com/catchorg/Catch2/issues/1079
2022-07-05 11:59:27 -03:00
Moses Turner b4a29e8b29 tests: Add case for Levenberg-Marquardt optimizer 2022-06-20 16:33:48 +01:00
Mateo de Mayo d773ab4cf2 a/math: Add pose interpolate function and others
- math_matrix_4x4_isometry_from_pose
- math_pose_from_isometry
- math_pose_interpolate
- m_vec3_equal
2022-06-18 14:19:01 -03:00
Mateo de Mayo f904f3f16c a/math: Repurpose test file for testing pose math 2022-06-18 14:19:01 -03:00
Mateo de Mayo e7c3376612 a/math: Add disabled test to show problem with current quat_exp implementation 2022-06-02 15:47:57 +00:00
Campbell Suter 0f8da1900b a/math: Fix math_pose_invert breaking on rotated poses, and add a test
Previously, math_pose_invert would apply a multiplication in the wrong
order. This lead to the position of the 'original' pose being rotated.

This patch fixes that, and adds a unit test to check this case.
2022-06-01 16:44:03 +01:00
Charlton Rodda aa31ac3789 st/oxr: Implement dpad emulation 2022-05-31 13:25:48 +00:00