From 63feeb6ddf8107a1a0f3a298a72e1b941ea17d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 09:35:44 +0300 Subject: [PATCH] B18: vk-video-ffi pick first device with both video and graphics/compute queues setup() chose the first device with a video queue, then failed with NoDevice when that device had no graphics/compute family, even if a later device had both. The predicate now requires graphics too. Verified: cargo check and clippy clean for the edited lines; golden_hw is run by the orchestrator. --- shims/vk-video-ffi/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shims/vk-video-ffi/src/lib.rs b/shims/vk-video-ffi/src/lib.rs index f7a16572..088a24b1 100644 --- a/shims/vk-video-ffi/src/lib.rs +++ b/shims/vk-video-ffi/src/lib.rs @@ -235,7 +235,7 @@ fn setup(instance: &Instance) -> Result<(vk::PhysicalDevice, Device, String, u32 .into_iter() .find_map(|pd| { let f = queue_families(instance, pd); - (f.encode.is_some() || f.decode.is_some()).then_some((pd, f)) + (f.graphics.is_some() && (f.encode.is_some() || f.decode.is_some())).then_some((pd, f)) }) .ok_or(Error::NoDevice)?; let graphics = families.graphics.ok_or(Error::NoDevice)?;