Christoph Haag
e4636ca153
st/oxr: return XR_SPACE_BOUNDS_UNAVAILABLE for unimplemented function
...
Fixes d7c1f7f13
Since d7c1f7f13
OXR_CHECK_XRET the return code
XRT_ERROR_COMPOSITOR_FUNCTION_NOT_IMPLEMENTED or (XRT_ERROR_NOT_IMPLEMENTED)
was translated to returning an XR_RUNTIME_FAILURE to the app with the
OXR_CHECK_XRET macro.
That the function is not implemented on an xrt_device is an implementation
detail in monado that we don't need to pass along to the application, the
application only needs to know that bounds are not available.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2289 >
2024-07-22 03:09:10 +02:00
galister
d86ca89da5
doc: Document !2280
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2288 >
2024-07-19 22:43:38 +09:00
Yuxuan Shui
8c37ca0116
d/steamvr_lh: Make sure the context is release on exit
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2229 >
2024-07-19 13:23:09 +00:00
Joel Valenciano
dbd0098dbb
Allow selecting wayland direct connector by name
...
Splits the connector selection code into a separate function that
accepts a connector name to match against.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2283 >
2024-07-19 13:08:13 +00:00
Joel Valenciano
f9d02319ec
Fix DRM leasing on some compositors after !2278
...
At the suggestion of @Supreeeme, this makes a change to some code I added to
the connector withdrawn handler in !2278 that causes an error when leasing
is attempted on some wayland compositors, namely niri.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2283 >
2024-07-19 13:08:13 +00:00
galister
c6d341a935
doc: Document !2284
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2284 >
2024-07-18 21:09:34 +00:00
galister
067090ad7d
ipc,u/space_overseer: space offset api
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2284 >
2024-07-18 21:09:34 +00:00
Simon Zeni
f635ac290b
ci: fix packaging
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2287 >
2024-07-18 20:37:37 +00:00
Shawn Wallace
81033983b7
d/steamvr_lh - Handle lighthouse config folder not existing better
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2282 >
2024-07-18 15:52:09 +00:00
galister
b20d80147d
doc: Document !2286
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2286 >
2024-07-18 23:34:53 +09:00
galister
8359dd3b33
d: remote redundant assigments of initial_offset
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2286 >
2024-07-18 23:34:53 +09:00
galister
6f8c0d9154
xrt: rename offset → initial_offset on xrt_tracking_origin
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2286 >
2024-07-17 03:25:33 +09:00
galister
eae4472f50
u/space_overseer: stage is null/offset, unless driver provides actual poses
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2280 >
2024-07-16 07:26:18 +09:00
Joel Valenciano
9436c36865
Move wayland lease request to init_pre_vulkan
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2278 >
2024-07-15 17:39:56 +00:00
Joel Valenciano
8ca1a5a2d3
Move wayland connector check to init_pre_vulkan
...
Fixes an issue that happens when the compositor tries to fallback to
windowed mode when no connectors are available for direct mode on
wayland.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2278 >
2024-07-15 17:39:56 +00:00
Andrei Aristarkhov
9652fee1ee
cmake: Allow D3D detection outside of the VS Developer Command Prompt
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2276 >
2024-07-15 17:33:15 +00:00
Simon Zeni
34d82ea082
xrt: introduce XRT_ERROR_NOT_IMPLEMENTED
...
Merge XRT_ERROR_DEVICE_FUNCTION_NOT_IMPLEMENTED and XRT_ERROR_COMPOSITOR_FUNCTION_NOT_IMPLEMENTED
into a single generic result value.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2244 >
2024-07-15 17:26:03 +00:00
Simon Zeni
d7c1f7f138
st/oxr: handle unavailable bounds case in function
...
Only `XRT_SPACE_BOUNDS_UNAVAILABLE` should return `XR_SPACE_BOUNDS_UNAVAILABLE`
with the bounds set to 0.
Otherwise the function should return `XR_ERROR_REFERENCE_SPACE_UNSUPPORTED` if
the supplied `reference_space_type` is not supported or implemented.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2244 >
2024-07-15 17:26:03 +00:00
Simon Zeni
abc9461960
aux/util: default pose if position or orientation is not valid when creating local space
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2255 >
2024-07-15 14:58:57 +00:00
Simon Zeni
0a59c4f28e
aux/util: create_local_space from space overseer view space
...
Rather than using the head device provided in `u_space_overseer_legacy_setup`,
use the semantic view space from the space overseer to create the local space.
This fixes a crash that occurs when trying to create a local space without
having called `u_space_overseer_legacy_setup` previously.
Co-authored-by: Christoph Haag <christoph.haag@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2255 >
2024-07-15 14:58:57 +00:00
Korcan Hussein
a3ebb27e34
c/multi: Fix env blend modes not changing.
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2273 >
2024-07-10 17:27:37 +00:00
Christoph Haag
3d72a2f3bc
d/steamvr_lh: Allow setting brightness with env var
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2275 >
2024-07-08 17:37:18 +02:00
Simon Zeni
557dfa8bf1
cmake: bump required version to 3.22
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2261 >
2024-07-04 19:05:03 +00:00
Simon Zeni
15b13b40ed
ci: enable bullseye-backports
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2261 >
2024-07-04 19:05:03 +00:00
Simon Zeni
b4f52d421e
ci: drop ubuntu 24.04 focal foosa
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2261 >
2024-07-04 19:05:03 +00:00
Simon Zeni
a628e14dd0
external/valve-file-vdf: update to 1.0.0
...
https://github.com/TinyTinni/ValveFileVDF/releases/tag/v1.0.0
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2266 >
2024-07-04 18:59:01 +00:00
Simon Zeni
f29275ced2
ipc: return NULL in ipc_client_system_create if call to systep properties fails
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
b016b062b0
d/rift_s: init distortion params matrice
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
a178a6d226
aux/util: initialize variables in u_visibility_mask_get_default
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
9221bf797c
d/steamvr_lh: fix for loop type comparison warning
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
6d711f1c27
t/common: remove unused debug log env var in steamvr builder
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
5a61a8c3ab
ipc: fixes warnings introduce in !2249
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
f579e84c53
d/twrap: define twrap_hmd_correct_pose_from_basalt only if XRT_FEATURE_SLAM
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
58d388cdb4
ci: bump windows image
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
fa81698f01
c/main: fix snprintf output truncation
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
393a08600e
cmake: refactor XRT_FEATURE_OPENXR* options
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
4a6f62fe65
cmake: disable XRT_FEATURE_OPENXR_LAYER_FB_IMAGE_LAYOUT by default
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
58add75b1e
st/oxr: define convert_compare_op only when OXR_HAVE_FB_composition_layer_depth_test is enabled
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04:00
Simon Zeni
7bbb6d6864
t/slam: fix snprintf warning
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140 >
2024-07-04 13:27:16 -04: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
Simon Zeni
51c38d091b
external/glad: update licensing
...
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2267 >
2024-07-04 13:12:49 +00:00
Simon Zeni
bccb63687e
external/glad: refresh files with gl4.6, egl1.5 & glx1.4
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2267 >
2024-07-04 13:12:49 +00:00
Korcan Hussein
ae37c1bf29
gradle: Upgrade gradle and packages
...
* Upgrades the gradle version (using AGP upgrade assistant)
* Upgrades android package dependencies to latest versions (using project settings upgrade tool)
* Bump compile platform SDK level to 34 (required for package updates)
* Bump java src compatibility version (required for api level 34)
* Fix deprecated warnings
* Code compile fixes to account for package changes
* explicitly specify cmake version
* bump NDK to latest LTS version
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2270 >
2024-07-03 19:28:53 +00:00
Weijie Wang
9e46337a6a
st/oxr: Return correct value
...
When the timeout expires:
1. Don't change the swapchain image index.
2. Return XR_TIMEOUT_EXPIRED.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2256 >
2024-07-03 12:28:31 +00:00
Korcan Hussein
da80ac3f71
ipc/android: Allow custom service library names
...
Monado derivatives may choose to create and use a
custom variant of service-lib for android builds
with a different library name, this change replaces the
hard-coded library name used for dynamic lib loading.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2265 >
2024-06-28 16:21:26 +01:00
korejan
b59b11101b
a/bindings: Fix typos in extension names
...
Fixes extension name entries with "XR_" prefix in
touch_controller_pro & touch_controller_plus entries
causing incorrect code to be generated.
2024-06-27 22:45:28 +01:00
Christoph Haag
8f59821336
st/oxr: Verify frameEndInfo->layerCount
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2262 >
2024-06-27 00:43:59 +02:00
Korcan Hussein
6307f17726
t/android_common: Fix missing resource string value
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2257 >
2024-06-26 14:25:42 +00:00
Korcan Hussein
2ca0820a65
doc: Document !2258
...
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2258 >
2024-06-26 11:30:15 +01:00