Commit Graph
361 Commits
Author SHA1 Message Date
Patrick Nicolas 9bd23ac930 Use h264 as default codec for any encoder 2024-11-10 17:03:48 +01:00
Patrick Nicolas 77a0e8710c Use separate images instead of layers 2024-11-10 16:46:28 +01:00
Patrick Nicolas 5641e43977 Fix semaphore signal condition 2024-11-10 16:46:28 +01:00
Patrick Nicolas d64db48c53 rename some variables, query pool per encode slot 2024-11-10 16:46:28 +01:00
Patrick Nicolas 8f7aee2b7a partial fix for mismatched image views in vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 6d89b3af5f Use cavlc for vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 3d062df2b6 Default to h264 for vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 308535a0f1 fix build without vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 6943fa82d2 Use device memory for vulkan encode 2024-11-10 16:46:28 +01:00
Patrick Nicolas 4df0e391c6 Move video command buffer ownership to encoder 2024-11-10 16:46:28 +01:00
Patrick Nicolas e01486110e Clamp encoder extents to width/height 2024-11-10 16:11:43 +01:00
Patrick Nicolas 6fdac88fd8 Assume positions are already aligned for nvenc 2024-11-10 15:24:07 +01:00
Patrick Nicolas 5d5f4b8af4 Enforce alignment of whole image and splits 2024-11-10 11:09:58 +01:00
Patrick Nicolas b6516a3add Silence sleep inhibitor 2024-11-08 22:43:32 +01:00
Patrick Nicolas 1328517bde Fix recentering of local spaces 2024-11-08 16:38:07 +01:00
Patrick Nicolas 8400a03fde More accurate flatpak info parser 2024-11-07 19:41:35 +01:00
Patrick Nicolas 7983745317 Attempt flatpak-spawn if permission is granted 2024-11-07 19:41:35 +01:00
Patrick Nicolas 19a399640a Move flatpak utils into common 2024-11-07 19:41:33 +01:00
Patrick Nicolas 4123b35175 Fix vulkan encode with non-0 offset 2024-11-06 19:50:44 +01:00
Patrick Nicolas 410b112fcf Support passthrough for stream 2024-11-06 19:50:44 +01:00
Patrick Nicolas 5d3fc63306 Pass offset for vulkan video encode 2024-11-04 11:00:58 +01:00
Patrick Nicolas 8217c9d192 Use find_program for gdbus-codegen 2024-11-03 10:25:14 +01:00
Patrick Nicolas 78f7411265 Change codec preference order to AV1,h264,h265 2024-11-03 10:06:06 +01:00
Patrick Nicolas b1676d6707 Enable 3 encoders by default 2024-11-02 23:01:07 +01:00
Patrick Nicolas 45bb08987b Wake compositor when a frame is ready 2024-11-02 21:04:08 +01:00
Patrick Nicolas 50982f4a12 Fix pacer with vulkan video additional feedback packet 2024-11-02 21:03:28 +01:00
Guillaume Meunier 868fc55f37 Inhibit sleeping while a session is active 2024-11-01 17:36:29 +01:00
Patrick Nicolas 2c19d8698f Explicit message if vulkan encode is not available 2024-10-29 10:45:09 +01:00
Patrick Nicolas df5e0869c3 Set range/color model for all encoders 2024-10-29 10:44:49 +01:00
Patrick Nicolas 6e38c1a7a8 Try to only use acknowledged frames as reference 2024-10-27 11:31:29 +01:00
Patrick Nicolas 866c6e8708 Initial support for old ref usage 2024-10-27 11:31:29 +01:00
Patrick Nicolas 1e0ba8b3ea Remove CPU sync for vulkan video encode 2024-10-27 11:31:29 +01:00
Patrick Nicolas 6f434ec4cd Register debug callback 2024-10-27 11:31:29 +01:00
Patrick Nicolas 04260752e9 Experimental h264 vulkan video encode 2024-10-27 11:31:29 +01:00
Patrick Nicolas 1fb1b7049b Always replace active_runtime.json 2024-10-27 10:55:48 +01:00
Patrick Nicolas 2000103949 Make service publication optional 2024-10-26 20:57:02 +02:00
Patrick Nicolas 281b04cbc2 Allow opt out of hand tracking 2024-10-22 10:36:27 +02:00
Guillaume Meunier 6c84a03b87 Cleanup CMakeLists 2024-10-21 22:19:55 +02:00
Sapphire 1428d52727 Fix non-systemd build 2024-10-12 08:48:46 +02:00
Patrick Nicolas 1a54b0c236 Add margin for frame skip logic 2024-10-11 20:33:11 +02:00
Guillaume Meunier 26d271b907 Rework the wizard APK downloading, install directly instead of telling the user to use ADB. Add setting to choose which game to start automatically. 2024-10-10 23:26:09 +02:00
Patrick Nicolas 0579289855 Fix latency going up then down at regular intervals
Headsets lie about the frame duration, the actual time between display
may be a little more (or less). This causes phase information to
gradually increase, and eventually wrap around. The lowpass filter in
the pacer was unable to deal with wraparound and would instead average
in linear space.
2024-10-10 16:32:59 +02:00
Patrick Nicolas fbfa713c56 Add 1ms margin for present 2024-10-10 12:55:15 +02:00
Patrick Nicolas 66aa729fbc Smarter encoder group selection 2024-10-09 19:27:58 +02:00
Patrick Nicolas b54108bb4c Update monado 2024-10-08 23:16:50 +02:00
Patrick Nicolas 5f59dfb589 More reliable mechanism to pass monado socket
Using systemd's socket activation path fails in case file descriptor is
not 3. Use a global variable instead.
2024-10-08 23:03:03 +02:00
Patrick Nicolas 849eeb7a80 Rework wivrn_session to be a xrt_system_devices
This will allow changing roles dynamically, and fixes some object
lifetime issues.
2024-10-08 20:10:39 +02:00
Patrick Nicolas 218db975d1 Fix pipewire destruction 2024-10-08 19:48:23 +02:00
Patrick Nicolas 60108e287e Expose palm extension 2024-10-08 17:24:34 +02:00
Patrick Nicolas 80688b817e Fix palm data being discarded 2024-10-06 19:00:10 +02:00