Major synchronization rework

unify submit/post_submit encoder entrypoints
encoders must now wait for their command completion
use transfer queues for CPU -> GPU copy
This commit is contained in:
Patrick Nicolas
2026-04-11 16:55:02 +02:00
parent fe414c4450
commit ce83e8fb03
22 changed files with 785 additions and 617 deletions
+3 -2
View File
@@ -21,6 +21,7 @@
#include "encoder/video_encoder.h"
#include "ffmpeg_helper.h"
#include "utils/wivrn_vk_bundle.h"
namespace wivrn
{
@@ -37,8 +38,8 @@ public:
};
protected:
video_encoder_ffmpeg(uint8_t stream_idx, const encoder_settings & settings) :
wivrn::video_encoder(stream_idx, settings, std::make_unique<default_idr_handler>(), true) {}
video_encoder_ffmpeg(vk_bundle & vk, uint8_t stream_idx, const encoder_settings & settings) :
wivrn::video_encoder(vk, stream_idx, vk.queue_family_index, settings, std::make_unique<default_idr_handler>(), true) {}
virtual void push_frame(bool idr, uint8_t slot) = 0;