Skip barrier in no-copy vulkan video encode

This commit is contained in:
Patrick Nicolas
2026-03-31 09:06:27 +02:00
parent 22a819b8c8
commit 23689abaa7
4 changed files with 25 additions and 13 deletions
+7
View File
@@ -118,6 +118,13 @@ public:
video_encoder(uint8_t stream_idx, const encoder_settings & settings, std::unique_ptr<idr_handler>, bool async_send);
virtual ~video_encoder();
// true when present_image will perform a copy
// and requires the image to be in transfer src layout
virtual bool need_copy() const
{
return true;
}
// return value: true if image should be transitioned to queue and layout for vulkan video encode
// semaphore to be signaled by the compositor
std::pair<bool, vk::Semaphore> present_image(vk::Image y_cbcr,