29 Commits
Author SHA1 Message Date
Jonathan Steffan b9c8a54d92 Add WiVRn-native Perfetto via Perfetto SDK
Optional server profiling built on the Perfetto SDK. Adds CPU spans
(compositor, encoder, network), GPU encode/copy slices from Vulkan timestamp
queries (Vulkan/NVENC/VAAPI), and headset feedback markers from dump_time.

WIVRN_TRACING enables tracing and selects the backend (system, inprocess, or
both); WIVRN_USE_PERFETTO gates it at build time and compiles it out otherwise.
WIVRN_TRACE_MONADO additionally drives Monado's percetto tracing from the same
switch so WiVRn and Monado land on one timeline.

Tooling: server-tracing[-monado] presets and a CI build, two Perfetto configs
(WiVRn-only and full-system), a wivrn_capture.py capture wrapper, a pftrace
summary script, and docs/profiling.md.
2026-07-01 21:04:08 +02:00
Patrick Nicolas 9313ccbc1d Use multiple vulkan encode queues if possible 2026-05-19 06:59:03 +02:00
Patrick Nicolas 19c5285479 Respect NVIDIA constraints for vulkan encode input
Images can't have mutable flag for vulkan encode on NVIDIA, perform a
copy instead, as they allow transfer dst.
2026-04-12 16:03:05 +02:00
Patrick Nicolas ce83e8fb03 Major synchronization rework
unify submit/post_submit encoder entrypoints
encoders must now wait for their command completion
use transfer queues for CPU -> GPU copy
2026-04-11 16:55:02 +02:00
Patrick Nicolas b71a1eddf5 Add support for intra-refresh with vulkan video 2026-04-02 15:17:17 +02:00
Patrick Nicolas cd9b3fc031 fix race condition in vulkan encoder 2026-04-02 14:39:48 +02:00
Patrick Nicolas 706f76b18d Prevent concurrent vulkan encode operations 2026-04-02 14:39:48 +02:00
Patrick Nicolas 23689abaa7 Skip barrier in no-copy vulkan video encode 2026-03-31 09:06:27 +02:00
Patrick Nicolas 22a819b8c8 Implement main compositor
Replace the patches to Monado's main compositor with a local
implementation, reusing code when relevant.

The layer squasher is very close to comp_render_cs, while distortion is
completely replaced by foveation.
2026-03-31 09:06:27 +02:00
Patrick Nicolas 42c64a6569 vk/video: don't copy the whole buffer 2026-02-19 13:43:08 +01:00
Patrick Nicolas 2919f7d820 Fix vulkan error on queue transfer
Queue transfer acquire was performed by each encoder, it needs to be
done only once, for the first one.
2026-01-30 16:29:53 +01:00
Patrick Nicolas 5c50b9a1ad WIP: fixed encoder layout 2025-12-10 14:00:47 +01:00
Patrick Nicolas 833e405060 More reliable reconnect (especially vulkan video) 2025-11-02 15:38:10 +01:00
galister 505de3d625 vulkan h265 /w 10-bit + fix encoder hang (#565) 2025-11-02 11:21:10 +01:00
Patrick Nicolas 9c599206d6 Working NVIDIA h264 vulkan video encode!
NVIDIA fails with initalization failed error if no
VkVideoEncodeH264RateControlLayerInfoKHR structure is provided
2025-08-08 16:22:11 +02:00
Patrick Nicolas a6c20e9520 Send vulkan video idr over tcp 2025-06-12 11:07:10 +02:00
Patrick Nicolas c98b461809 fix vulkan video conformance issues 2025-06-10 11:26:32 +02:00
Patrick Nicolas a75f42ff46 Update framerate for encoders 2025-03-19 17:43:36 +01:00
Patrick Nicolas c8449a7891 larger DPB 2025-01-05 16:01:10 +01:00
Patrick Nicolas 77a0e8710c Use separate images instead of layers 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 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 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 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 04260752e9 Experimental h264 vulkan video encode 2024-10-27 11:31:29 +01:00