Jakob Bornecrantz
15743d822b
st/gui: Refactor a few OpenGL drawing code into helper
2023-09-21 22:34:06 +01:00
Jakob Bornecrantz
bde2dce2b6
st/gui: Improve thread safety, improve comments and spelling
2023-09-21 22:00:07 +01:00
Jakob Bornecrantz
53f510e6b9
st/gui: Rename file with OpenGL sink functions [NFC]
2023-09-21 00:39:03 +01:00
Ryan Pavlik
aa2cc78396
st/oxr: Fix doxygen warnings
2023-09-13 20:21:57 +01:00
Jiali Zhang
baf6c7f78d
st/oxr: Implementation of XR_KHR_android_thread_settings
2023-09-13 20:13:20 +01:00
Jakob Bornecrantz
a0fd61ec1e
st/steamvr_drv: Use undef instead of comment for debug define [NFC]
2023-09-01 19:50:34 +01:00
Jakob Bornecrantz
c49a2a5f4d
st/gui: Add optional curated debug GUI
...
Setting XRT_CURATED_GUI to true makes the curated the default.
You can switch between the two UIs during runtime.
2023-09-01 15:42:06 +00:00
Lubosz Sarnecki
f0cb6c1d6d
st/prober: Define functions only when PSVR or PSMV are enabled.
...
Fixes GCC 13 warning [-Wunused-function].
Define on_video_device and p_factory_ensure_frameserver only when PSMV
or PSVR are enabled. Drop redundant check for XRT_HAVE_OPENCV, since we
already do it above.
2023-08-14 16:57:28 +01:00
Lubosz Sarnecki
a2d3621058
st/prober: Move rgb struct declaration.
...
Fixes GCC 13 warning [-Wunused-variable].
Only declare rgb struct when PSVR is enabled, where it's only used.
2023-08-14 16:57:28 +01:00
Jakob Bornecrantz
41927e802c
st/gui: Fix warning by using safe casts
2023-08-14 15:38:36 +01:00
Korcan Hussein
71dcc61ed2
xrt: Adds new xrt_device_name entry for XR_EXT_hand_interaction
...
Prior to this, the existing `xrt_device_name` entry
`XRT_DEVICE_HAND_INTERACTION` was re-used for `XR_EXT_hand_interaction`
bindings however this `xrt_device_name` is used to look up the older
hand-interaction profile `XR_MSFT_hand_interaction`. This commit adds a new
`xrt_device_name` entry dedicated for `XR_EXT_hand_interaction` and fixes the
incorrect profile look for suggested bindings during runtime.
2023-07-27 12:29:51 +01:00
Jakob Bornecrantz
0da57b30a4
st/oxr: Add XR_MNDX_system_buttons support
2023-07-21 16:28:43 +00:00
quic_zhozhan
6aea10f57b
st/oxr: Add XR_OPPO_controller_interaction extension
2023-07-17 10:53:32 +01:00
Jakob Bornecrantz
201c81813d
st/gui: Add helper to draw sink to background
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
a8dd070951
st/gui: Add code to draw gui_window_record to background
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
c3b741d4fd
st/gui: Refactor debug_record creation into helper
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
d38fb165ce
st/gui: Refactor out more multi-line gui elements
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
32b878e196
st/gui: Refactor and tidy helper functions
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
ea13c373c5
st/gui: Reshuffle and document debug gui struct
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
ff9f68bc96
st/gui: Remove unused priv_tuple struct
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
ea77386887
u/var: Use a struct to carry information in root object callbacks
2023-07-14 13:53:36 +01:00
Korcan Hussein
b6b5610c05
xrt|ipc|st/oxr: Adds support for XR_EXT_hand_interaction
profile.
2023-07-12 14:14:08 +01:00
utzcoz
25d9437924
st/oxr: Remove non-reachable return for oxr_xrPathToString
...
The OXR_TWO_CALL_HELPER returns whenever succeed or failed.
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-07-08 11:42:57 +08:00
Korcan Hussein
0b410a7119
a/bindings: Interaction profile inheritance
...
A requirement of interaction profile (extensions) specify that some/all
actions must be supported by all other profiles. This commit
modifies the binding generation to support data-inheritance in bindings.json:
* Adds support for profiles in bindings.json to inherit & override other profiles
* Adds a new concept of virtual profiles for profile like extensions
(e.g. `XR_EXT_palm_pose`) which do not define a profile themselves but
require their newly defined actions to be supported by all profiles.
* Generates verify bindings functions which only check extensions actions
only if the extension is enabled.
2023-07-04 13:31:32 +00:00
Korcan Hussein
18e367300c
st/oxr: Add disabled XR_MSFT_hand_intertaction
...
The binding code has support for this extenstion, but the bindings are not
used in any of the drivers so totally untested and would lead to the wrong
expectations of the applications.
2023-07-04 13:31:32 +00:00
Korcan Hussein
ba6c35e605
st/oxr: Add disabled XR_EXT_palm_pose
...
Disabled because no driver implements the needed pose.
2023-07-04 13:31:32 +00:00
Jakob Bornecrantz
bf0015b8ab
st/oxr: Send logging to OutputDebugStringA even if we aren't printing to stderr
...
This was intended all along, it's worse on Windows since we
don't by default print to stderr, so we never printed there.
2023-07-04 12:25:33 +00:00
Korcan Hussein
2aed9184e6
st/oxr: Add disabled XR_HTCX_vive_tracker defines
...
Useful for various compiletime checks.
2023-06-29 00:50:26 +01:00
Korcan Hussein
a8c5be8f5c
st/oxr: Fix up Monado experimental extensions
2023-06-29 00:32:01 +01:00
Korcan Hussein
8865baafee
xrt: Plumbs enabled ext state for XR_EXT_eye_gaze_interaction
2023-06-29 00:31:58 +01:00
Christoph Haag
e61adde115
st/oxr: Check argument validity in time conversion function
...
Affected OpenXR functions: xrConvertWin32PerformanceCounterToTime
2023-06-22 20:12:08 +01:00
Jakob Bornecrantz
e466551db0
st/oxr: Use common helper versions of truncating Xprintf
2023-06-21 22:05:14 +00:00
utzcoz
0224e97532
st/oxr: Fix simple typo for comments [NFC]
...
grahpics->graphics
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-06-17 12:51:33 +01:00
Ryan Pavlik
3f644f9f88
st/oxr: clang-tidy fixes
2023-06-17 11:46:14 +01:00
Ryan Pavlik
a97b9a5990
st/oxr: Less obvious warning fixes
...
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2023-06-17 11:46:01 +01:00
Ryan Pavlik
ae16cb4f13
st/oxr: Obvious warning fixes
2023-06-17 11:46:01 +01:00
Jakob Bornecrantz
6176db87e1
st/oxr: Add EXT_eye_gaze_interaction to generation script [NFC]
...
Missed this in 9f1cf952c6
/ !1836 , closes #269 .
2023-06-15 17:32:52 +01:00
BabbleBones
5787fd260f
xrt: Add XRT_DEVICE_VIVE_TRACKER_{GEN3,TUNDRA} defines
...
Tundra enumeration changes
2023-06-14 01:02:07 +00:00
Drew Chien (Te-Ju)
9f1cf952c6
st/oxr: Add eye gaze support
2023-06-13 01:37:50 +01:00
Drew Chien (Te-Ju)
96c88f488e
xrt: Add eye gaze defines and role
2023-06-13 01:31:11 +01:00
Andrei Aristarkhov
eace6e310d
c/util: prevent sporadic xrAcquireSwapchainImage failure under high GPU load
2023-06-08 17:01:12 +01:00
Robbie Bridgewater
c91928f39e
st/oxr: Use CMake-derived version constants for OpenXR runtime version
2023-06-07 15:22:32 -05:00
Korcan Hussein
17d8e010c8
xrt: App enabled extension state
...
Adds support for passing through which extensions an OpenXR client
has enabled to server for drivers/compositors to be able to query.
2023-05-25 23:20:38 +01:00
Jakob Bornecrantz
c19fbce8c3
st/gui: Make it possible to inhibit sinks gui headers
2023-05-19 20:43:06 +00:00
Jakob Bornecrantz
17b8a979e5
st/gui: Make debug sinks be opened by default
2023-05-19 20:43:06 +00:00
Jakob Bornecrantz
e21c3a7afe
st/gui: Add some tracing
2023-05-19 18:32:20 +01:00
Jakob Bornecrantz
66a9131dd9
st/oxr: Guard against xsysc being NULL
2023-05-18 12:22:57 +01:00
Jakob Bornecrantz
d79678aeec
st/oxr: Always create the system compositor
...
Some apps will enable headless and vulkan, then use Vulkan.
2023-05-18 12:22:57 +01:00
Ryan Pavlik
ae6b0ad445
st/p,t/common: Protect tracker-creation calls
2023-05-16 22:04:53 +00:00
Jakob Bornecrantz
5e19ae6a5b
st/oxr: Refactor wait frame function to avoid setting state before we should
...
We would leak frame_id and active_wait_frames increment that would cause bad
states where we hadn't fully waited but would allow xrBeginFrame to complete.
Also improve error handling so that on error conditions the semaphore is
properly decremented and the application can call xrWaitFrame again.
This was caused by unreal doing something like this:
* xrBeginFrame <-- Error
* xrWaitFrame
* xrBeginFrame
* xrEndFrame
* Called at the same time:
* xrWaitFrame
* xrBeginFrame <-- Would get state from non-completed xrWaitFrame
2023-05-03 16:18:10 +01:00