Jakob Bornecrantz
dfbe48a188
ipc: Add support for recentering local spaces
2023-11-28 12:43:37 +00:00
Jakob Bornecrantz
9070894455
ipc: Verify length of received commands on Windows
...
Co-authored-by: Simon Zeni <simon.zeni@collabora.com>
2023-11-26 14:03:52 +00:00
Simon Zeni
81246de70a
ipc: Read only the exact size of the ipc_command in client_loop on Linux
2023-11-26 13:45:21 +00:00
Simon Zeni
9b6eeb0bba
ipc: Add ipc_command_size function to prototype generation
2023-11-26 13:45:21 +00:00
Christoph Haag
c58f06f94c
ipc: Fix type warning
2023-11-24 16:03:09 +01:00
Jakob Bornecrantz
a0a0f7cfa6
ipc: Add support for reference space usage
2023-11-21 21:37:06 +00:00
Jakob Bornecrantz
9ac135edce
ipc: Share per client thread shutdown code [NFC]
...
The two paths was already identical, so just make it one.
2023-11-20 21:40:14 +00:00
Zhongwang Zhang
74df016dbf
ipc: Implement display refresh rate functions
2023-11-20 16:58:31 +00:00
utzcoz
4c1fd41641
gradle: Migrate gradle's buildToolsVersion to property one
...
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-11-15 10:06:20 -06:00
utzcoz
2561475fc4
xrt/android: Enable buildFeature aidl for ipc/android
...
It's recommended when upgrading AGP with Android Studio.
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-11-15 10:06:20 -06:00
utzcoz
30ebd2fe1b
xrt/android: Apply Java code format by latest google-java-format
...
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-11-15 10:06:20 -06:00
utzcoz
7d61a6f892
xrt/android: Bump google-java-format to 1.18.1
...
Use the latest google-java-format to support JDK17 for AGP 8.x.
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-11-15 10:06:20 -06:00
Simon Zeni
818e519f50
xrt: make get_visibility_mask return xrt_return_t
2023-11-15 12:51:04 +00:00
Jakob Bornecrantz
9a09d7956d
xrt: Add view_index to visibility mask getter
...
And add helper caller function.
2023-11-15 12:02:08 +00:00
Jakob Bornecrantz
6123deaa75
u/mask: Scale output to FoV of the view
2023-11-15 12:02:08 +00:00
Jakob Bornecrantz
8bdc2f1edf
ipc: Fix visibility mask leak
2023-11-15 12:02:08 +00:00
Jakob Bornecrantz
88cf637e95
ipc: Check return of ipc_call_space_create_semantic_ids
2023-11-14 20:27:15 +00:00
Jakob Bornecrantz
7c96a23325
ipc: Tidy ipc_generated_protocol.h generator function
2023-11-14 19:38:05 +00:00
Jakob Bornecrantz
195d45d960
ipc: Protect ipc_generated_protocol.h with cpp header guard
2023-11-14 19:24:13 +00:00
Simon Zeni
5656f86c47
ipc: Add get_visibility_mask
2023-11-14 17:02:24 +00:00
Jakob Bornecrantz
1b80d7182e
ipc: Add support for local_floor
2023-11-14 12:43:58 +00:00
Jakob Bornecrantz
83b77285bd
ipc: Use check helpers in other client code as well
2023-11-14 01:20:51 +00:00
Jakob Bornecrantz
bfaf615d4f
ipc: Replace IPC_CHK_CALL macro with other helper
2023-11-14 01:20:51 +00:00
Jakob Bornecrantz
8d61577081
ipc: Add xrt check return helpers
2023-11-14 01:20:51 +00:00
Jakob Bornecrantz
440b1f2660
ipc: Add ipc_print_result helper
2023-11-14 01:20:51 +00:00
Jakob Bornecrantz
4a8400538c
ipc: Use message channel's log_level in client
2023-11-13 12:47:12 +00:00
Jakob Bornecrantz
2d7041c797
ipc: Move ipc_message_channel functions to own files
...
What actually happened:
copy src/xrt/ipc/shared/{ipc_utils.h => ipc_message_channel.h} (95%)
rename src/xrt/ipc/shared/{ipc_utils_unix.c => ipc_message_channel_unix.c} (99%)
rename src/xrt/ipc/shared/{ipc_utils_windows.cpp => ipc_message_channel_windows.cpp} (99%)
rewrite src/xrt/ipc/shared/ipc_utils.h (94%)
2023-11-13 12:47:12 +00:00
Jakob Bornecrantz
850e57a002
ipc: Move non-channel functions to utils [NFC]
2023-11-13 12:47:12 +00:00
Jakob Bornecrantz
5dfdab9e80
ipc: Split UNIX and Windows utils implementations more
2023-11-13 12:47:12 +00:00
Jakob Bornecrantz
5e92df460d
ipc: Tidy Windows utils file [NFC]
2023-11-13 12:47:12 +00:00
Jakob Bornecrantz
f0c2167fb8
ipc: Tidy UNIX utils files [NFC]
2023-11-13 12:47:12 +00:00
Jakob Bornecrantz
a339d7adf4
ipc: Remove unused function [NFC]
2023-11-13 12:47:12 +00:00
Jakob Bornecrantz
cec787ba0f
ipc: Add variable number of views get function
2023-11-09 18:37:47 +00:00
Jakob Bornecrantz
7251417569
ipc: Add functions to lock/unlock the client connection
2023-11-09 17:56:27 +00:00
Jakob Bornecrantz
e576424995
ipc: Add ability to do variable length calls
2023-11-09 17:56:27 +00:00
Jakob Bornecrantz
6d990ba480
ipc: Refactor proto generation a little bit
2023-11-09 17:49:35 +00:00
Jakob Bornecrantz
60bbded2e2
ipc: Remove left over static roles
2023-11-07 22:57:44 +00:00
Jakob Bornecrantz
332b32b71f
ipc: Refactor and tidy client connection
...
Also move git hash check as early as possible.
2023-11-03 18:18:31 +00:00
Jakob Bornecrantz
bfffb0c5c4
ipc: Constify client connection argument
2023-11-03 18:18:31 +00:00
Jakob Bornecrantz
05d04b3ea0
ipc: Fix compile on musl
2023-11-02 15:06:02 +00:00
Hui Xu
7c6b0d1e98
ipc: Add macro TEMP_FAILURE_RETRY
...
- to ignore the signal -4 (ENTR)
2023-11-02 14:25:21 +00:00
Jakob Bornecrantz
c5f4f0ab7a
xrt: Remove old roles
...
Also remove all fallbacks helpers now.
2023-10-24 09:24:49 +00:00
Korcan Hussein
60ae73f571
ipc: Add support for dynamic device roles
2023-10-24 09:24:49 +00:00
Nico Marniok
2718f0506e
xrt: Add dynamic roles to xrt_system_devices
...
Doesn't fully remove the old way yet.
Co-authored-by: Korcan Hussein <korcan.hussein@collabora.com>
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2023-10-24 09:24:49 +00:00
Christoph Haag
ef47498137
ipc: Fix session deactivation negative array index access
...
It is possible for s->global_state.active_client_index to be -1 when
update_server_state_locked is called:
ipc_server_activate_session is only called from
ipc_handle_compositor_predict_frame, which is only called from
ipc_compositor_wait_frame.
So it is possible to deactivate a session that was never activated.
2023-10-19 15:37:01 +02:00
Jakob Bornecrantz
82192a43f9
ipc: Generate limited unique ids for native swapchains
2023-09-21 22:34:06 +01:00
Jiali Zhang
81a094f990
ipc: Add support for thread hint function
2023-09-13 20:04:49 +01:00
Jakob Bornecrantz
3de99b63d9
ipc: Add a interface header for ipc_server_main[_android]
2023-09-13 17:33:55 +00:00
Jakob Bornecrantz
5be0767aa9
ipc: Add a interface header for ipc_instance_create
2023-09-13 17:33:55 +00:00
Jakob Bornecrantz
6b815eba51
ipc: Removed unused define [NFC]
2023-09-01 19:50:46 +01:00