Prevent concurrent vulkan encode operations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user