Prevent concurrent vulkan encode operations

This commit is contained in:
Patrick Nicolas
2026-04-02 14:39:48 +02:00
parent 14089200ab
commit 706f76b18d
3 changed files with 36 additions and 16 deletions
+2
View File
@@ -183,6 +183,8 @@ class prober
{
if (*vk.encode_queue == VK_NULL_HANDLE)
return false;
if (not std::get<vk::PhysicalDeviceVulkan12Features>(vk.feat).timelineSemaphore)
return false;
auto prop = vk.physical_device.getQueueFamilyProperties2<vk::StructureChain<vk::QueueFamilyProperties2, vk::QueueFamilyVideoPropertiesKHR>>();
assert(vk.encode_queue_family_index < prop.size());
const auto flags = prop.at(vk.encode_queue_family_index).get<vk::QueueFamilyVideoPropertiesKHR>().videoCodecOperations;