From f8a6db583459c4b0d6c5f4e5c289a48a464dc1e1 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Fri, 20 Feb 2026 15:56:34 +0100 Subject: [PATCH] vk/video: fix crash on iGPU --- server/encoder/video_encoder_vulkan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/encoder/video_encoder_vulkan.cpp b/server/encoder/video_encoder_vulkan.cpp index 51663bf1..23f73e46 100644 --- a/server/encoder/video_encoder_vulkan.cpp +++ b/server/encoder/video_encoder_vulkan.cpp @@ -567,7 +567,7 @@ std::optional wivrn::video_encoder_vulkan::encode(ui // We don't copy the whole buffer, but an estimate of how much we'll need // If that wasn't enough, we have to issue a second copy command for the rest - if (size > slot_item.copy_size) + if (slot_item.host_buffer and size > slot_item.copy_size) { U_LOG_D("additional copy needed: %ld", size - slot_item.copy_size); const bool main_queue = *slot_item.transfer_cmd_buf;