Commit Graph
856 Commits
Author SHA1 Message Date
Jonathan Steffan e79621d377 Fix vulkan encode QFOT layouts (NVIDIA green frame)
Compositor release left layouts as eUndefined while encoder acquire
transitioned to eVideoEncodeSrcKHR (or eTransferSrcOptimal on the NVIDIA
tmp_image path); the spec forbids that layout mismatch for exclusive-mode
QFOT. NVIDIA honoured it by treating encode-queue contents as undefined
(solid green frame).

Encoders now publish target_layout. The compositor's release and the
encoder's acquire both transition eGeneral -> target_layout in a single
barrier; per VkImageMemoryBarrier2 the layout transition is performed
exactly once between the queues, so no second non-QFOT barrier is needed.
target_layout is eVideoEncodeSrcKHR on the direct vulkan encode path and
eGeneral elsewhere.

Also fix optimal_transfer(): the inner `auto to = ...` shadowed the
parameter, so the maintenance9 check was effectively always false.
2026-05-19 06:59:03 +02:00
Patrick Nicolas 27b92bba1c Skip pressure vessel var if home is in /var 2026-05-18 17:21:38 +02:00
galister 86c19fc5cc fix convergence_angle 2026-05-10 17:21:43 +02:00
Patrick Nicolas 54b96430f6 Addjust some IDR handler logs 2026-05-10 11:35:50 +02:00
Patrick Nicolas e3be6294c8 Configurable headset margin time 2026-05-08 16:23:35 +02:00
Patrick Nicolas b5226f0480 Remove app pacer from debug GUI on destruction 2026-05-08 16:23:35 +02:00
Patrick Nicolas 1420c167fe Add back COMP_TARGET_TIMING_POINT_SUBMIT_END 2026-05-05 15:19:33 +02:00
Patrick Nicolas 7e81f23f0f Add missing includes 2026-05-02 20:39:37 +02:00
Patrick Nicolas 077a6552ef Replace vk::RemainingArrayLayers with values 2026-05-02 14:11:53 +02:00
Patrick Nicolas 6d70dca173 Configurable app pacer margin 2026-04-30 20:16:24 +02:00
Patrick Nicolas 7722ed45b3 pacer: adjust phase on feedback instead of predict 2026-04-30 16:54:02 +02:00
Patrick Nicolas f1c02d8f68 Fix debug build 2026-04-30 16:04:15 +02:00
Patrick Nicolas 74c360ebe1 Fix nvenc max encode size check 2026-04-27 14:59:41 +02:00
Patrick Nicolas e21b1adf1d Send both frame rate and refresh rate in description 2026-04-27 10:26:58 +02:00
Patrick Nicolas 775022d065 Remove useless semaphore wait (same queue) 2026-04-25 18:55:12 +02:00
Patrick Nicolas 28cffac9bd remove unused sem_value member 2026-04-25 18:55:12 +02:00
Patrick Nicolas e452488666 Fix refresh rate change 2026-04-25 18:55:12 +02:00
Patrick Nicolas 10387b9b00 Separate framerate/refresh rate 2026-04-19 09:14:03 +02:00
Patrick Nicolas 6d072e30cd Simplify some preferred refresh rate logic 2026-04-19 09:14:03 +02:00
galister 00f0553dc7 add option for half fps 2026-04-19 09:14:03 +02:00
Patrick Nicolas 542b38365f Update monado, add chroma key support 2026-04-17 16:42:53 +02:00
Patrick Nicolas cf602beefb Update monado
move view_config from sys_info to callback
2026-04-17 16:42:53 +02:00
Patrick Nicolas 6aa7c9759a Update monado
fix u_system -> b_system rename
2026-04-17 16:42:53 +02:00
Patrick Nicolas 1f23c81cd5 Update monado
fix xdev -> static_xdev rename
2026-04-17 16:42:52 +02:00
Patrick Nicolas c2a234d48a Update monado
fix u_builders.h -> target_builder_helpers.h
2026-04-17 16:42:52 +02:00
abb128 51947c3aa1 Fix null pointer dereference in start_application (#878) 2026-04-17 16:42:22 +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 1f6e237f21 Only write alpha if useful 2026-04-11 16:55:02 +02:00
Patrick Nicolas 9bb39c4809 Drop staging buffer for foveation 2026-04-11 16:55:02 +02:00
Patrick Nicolas b3479eb418 Remove vkResetCommandBuffer 2026-04-11 16:55:02 +02:00
Patrick Nicolas 6ab58430e2 Mark command pools as transient 2026-04-11 16:55:02 +02:00
Patrick Nicolas d535f38938 Reintroduce renderdoc support 2026-04-11 16:55:02 +02:00
Patrick Nicolas 9c3615dd0b Log GPU and queues on vulkan instance creation 2026-04-11 16:55:02 +02:00
Patrick Nicolas a70caa529e Add compositor timings to debug GUI 2026-04-11 16:55:02 +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 fe414c4450 Remove image layout transitions 2026-04-11 16:55:02 +02:00
Patrick Nicolas 6db5b8aeb3 Fix VmaAllocationCreateInfo usage 2026-04-10 14:39:09 +02:00
Patrick Nicolas e1f1e7b800 command line flag for debug gui 2026-04-10 14:39:04 +02:00
Patrick Nicolas a63aba7155 Smarter foveation subsampling 2026-04-10 14:38:51 +02:00
Patrick Nicolas 6c6519fab5 Use VK_KHR_maintenance9 (drop queue transfer) 2026-04-04 13:40:47 +02:00
Patrick Nicolas 2ede05dafb Remove broken quads back face culling 2026-04-04 09:56:17 +02:00
Patrick Nicolas 3a6f4d0bdf Fix cylinder crop aspect ratio 2026-04-04 09:56:17 +02:00
caszuu d1cbb730a2 don't send frames before a clock offset is found 2026-04-03 19:50:05 +02:00
Patrick Nicolas 6b58b63a33 Crop FOV in layer squasher 2026-04-03 14:19:54 +02:00
Patrick Nicolas 9d0bbdc357 Bind squasher pipeline only once 2026-04-03 14:19:54 +02:00
Patrick Nicolas 0aaf736b48 Return extent in do_layers() 2026-04-03 14:19:54 +02:00
Patrick Nicolas 3149ced724 request eye gaze in compositor 2026-04-03 07:15:40 +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