vk/video: fix crash on iGPU

This commit is contained in:
Patrick Nicolas
2026-02-20 15:56:34 +01:00
parent 42c64a6569
commit f8a6db5834
+1 -1
View File
@@ -567,7 +567,7 @@ std::optional<wivrn::video_encoder::data> 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;