mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-20 17:11:36 -08:00
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.