mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-21 09:31:33 -08:00
Prevent concurrent vulkan encode operations
This commit is contained in:
1 parent
14089200ab
commit
706f76b18d
3 files changed
+36
-16
No files matched your search
@@ -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