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.
This commit is contained in:
Patrick Nicolas
2026-04-12 16:03:05 +02:00
parent 1f6e237f21
commit 19c5285479
3 changed files with 186 additions and 17 deletions
+1
View File
@@ -45,6 +45,7 @@ class video_encoder_vulkan : public video_encoder
vk::raii::CommandPool transfer_command_pool = nullptr;
vk::raii::CommandPool video_command_pool = nullptr;
image_allocation tmp_image;
vk::ImageViewUsageCreateInfo image_view_template_next;
vk::ImageViewCreateInfo image_view_template;
std::unordered_map<VkImage, vk::raii::ImageView> image_views; // for input images