Commit graph

4655 commits

Author SHA1 Message Date
bjorn d3a0f10acb c/client: rm client swapchain layout transition;
This was only there to satisfy a validation layer bug, which appears
to have since been fixed.  It doesn't make sense to transition an XR
swapchain image to PRESENT_SRC, and the client transitions from
UNDEFINED anyway when acquiring the image.

This also fixes a case where monado violates the OpenXR specification:

> The list of OpenXR functions where the OpenXR runtime may access the
> VkQueue are:
> - xrBeginFrame
> - xrEndFrame
> - xrAcquireSwapchainImage
> - xrReleaseSwapchainImage
> The runtime must not access the VkQueue in any OpenXR function that is
> not listed above or in an extension definition.
2022-05-26 17:39:02 +00:00
bjorn 2d954d84af c/render: Fix invalid synchronization when uploading images;
`queue_upload_for_first_level_and_layer` uploads pixels to an image.

It performs a layout transition, does the copy, and does another layout
transition.  There is an execution dependency between the the copy and
the second layout transition, but the memory dependency was missing.

Caught/tested via enabling synchronization validation.
2022-05-26 17:27:15 +00:00
Ryan Pavlik e5f6045b57 gradle: Be able to fetch Eigen if it's not found on the system. 2022-05-26 11:43:11 -05:00
Jakob Bornecrantz a571d1000b doc: Document !1346 2022-05-26 14:06:18 +00:00
Jakob Bornecrantz 9c44bc98fa c/multi: Document why unsetting waiting so late 2022-05-26 14:06:18 +00:00
Jakob Bornecrantz 1b7631bd54 c/multi: Also check if a semaphore or fence has been pushed in layer_begin
Closes #171
2022-05-26 14:06:18 +00:00
Jakob Bornecrantz 433915b0bf u/pp: Add math object printers 2022-05-26 14:10:06 +01:00
Moses Turner 5652ddd718 a/util: Fix function signature for u_builder_find_prober_device
Was this ever working?
2022-05-25 20:53:46 +00:00
Moses Turner bbd6475da0 mercury: Better warn if we get bad aspect ratio 2022-05-25 20:53:46 +00:00
Ryan Pavlik 60f9b6a18f doc: Document !1323 2022-05-25 21:42:58 +01:00
Jakob Bornecrantz f404cc4c50 c/multi: Document flattened out producer/consumer construct 2022-05-25 21:42:58 +01:00
Jakob Bornecrantz 2afdb79895 c/multi: Document spurious wakeups 2022-05-25 21:42:58 +01:00
Jakob Bornecrantz 72dbed3ab5 c/multi: Make sure that wait thread has started in creation
Co-authored-by: Ryan Pavlik <ryan.pavlik@collabora.com>
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2022-05-25 21:42:58 +01:00
Jakob Bornecrantz 3e9a5da3c6 c/multi: Ensure that only one thread waits for wait thread 2022-05-25 21:42:58 +01:00
Ryan Pavlik fd3a0a1435 c/multi: Fix condition var waiting for wait thread.
Spurious wakeups happen, have to actually have a condition
to check in a loop with the cond var wait.
2022-05-25 20:41:10 +00:00
bjorn d523001b6e aux/vk: Use correct image type for 3D images; 2022-05-25 20:24:17 +00:00
Ryan Pavlik e3874383d0 st/oxr: Fix one conformance issue with d3d11 2022-05-25 18:12:22 +00:00
Ryan Pavlik 78c4102e90 doc: Document !1302 and !1337 2022-05-25 18:12:22 +00:00
Ryan Pavlik 2da547ce66 a/util: Update pretty printing of results 2022-05-25 18:12:22 +00:00
Ryan Pavlik 596d15a50c a/d3d: Further namespace the d3d11-specific functions 2022-05-25 18:12:22 +00:00
Ryan Pavlik 79dffbf3f6 st/oxr: Split out some code that is d3d-version independent 2022-05-25 18:12:22 +00:00
Ryan Pavlik c5c4f9f45a doc: Document CMake format changes. 2022-05-25 18:06:38 +00:00
Ryan Pavlik bda9ae9a2c scripts: Add format-cmake.sh script 2022-05-25 18:06:38 +00:00
zhibinw 38b22f9b8e oxr:check EGL_NO_CONTEXT and return error 2022-05-25 22:59:16 +08:00
Aidan Thornton 2fdd01afdd d/android: initialize our thread and mutex 2022-05-25 12:30:21 +01:00
Ryan Pavlik 4a91eb3d84 c/client: Sync/waiting in D3D11
Co-Authored-By: Jakob Bornecrantz <jakob@collabora.com>
2022-05-24 16:55:45 -05:00
Ryan Pavlik 903fd01272 a/d3d: Add a fence waiting helper 2022-05-24 16:55:45 -05:00
Ryan Pavlik 3f777350e1 a/d3d: Fix docs for fence helper 2022-05-24 16:11:36 -05:00
Ryan Pavlik bb94363f94 a/d3d: Turn off some swapchain formats that we can't roundtrip properly 2022-05-24 16:11:36 -05:00
Ryan Pavlik 8ee10c5a6b xrt: Factor out deleters 2022-05-24 13:11:41 -05:00
Mateo de Mayo 2cf07dedf2 t/euroc: Fix crash when recording euroc dataset by providing UI button
Previously, a crash occurred in some situations when the second sample was
written before the first sample was able to create the necessary CSV files.
2022-05-23 17:51:11 -03:00
bjorn c80cf206c8 doc: remove mention of meson; 2022-05-23 08:35:44 -07:00
Moses Turner 6ef55d1f73 d/survive: Initialize threading primitive 2022-05-23 14:27:42 +00:00
Jakob Bornecrantz 9ce28b6de6 doc: Document !1328 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz a4983fa5b1 auxiliary: Break apart CMakeLists.txt file 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz 935de808c0 a/bindings: Do not depend on util 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz 38eac9dddc xrt: Do not depend on util 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz 037872e2b8 c/client: Include u_time.h in D3D11 compositor 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz a75e00d25e d/qwerty: Include u_time.h in device file 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz b64660d458 a/util: Include u_time.h in hand tracking helper 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz b56aebff47 tests: Include u_time.h in history_buf 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz 08d100d7b0 d/hydra: Depend on util 2022-05-23 09:12:54 -05:00
Jakob Bornecrantz 0b391c5cfd doc: Document !1326 2022-05-23 14:11:43 +00:00
Jakob Bornecrantz aede51bd37 doc: Document !943 2022-05-23 14:11:43 +00:00
Ryan Pavlik 5656de8b72 a/d3d: Fence helpers 2022-05-23 14:11:43 +00:00
Jakob Bornecrantz 658a21a177 a/d3d: Tidy headers 2022-05-23 14:11:43 +00:00
Jakob Bornecrantz b8b42a4bcb c/client: Tidy D3D11 flip comments 2022-05-23 14:11:43 +00:00
Jakob Bornecrantz d91d6e2aa3 c/client: Do not flip projection layers in D3D11 2022-05-23 14:11:43 +00:00
Jakob Bornecrantz 4482612021 doc: Document !1329 2022-05-23 13:54:42 +00:00
Jakob Bornecrantz 0d055bb740 d/vive: Fix threading primitive initialization 2022-05-23 13:54:42 +00:00