mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-27 12:27:06 -08:00
Major synchronization rework
unify submit/post_submit encoder entrypoints encoders must now wait for their command completion use transfer queues for CPU -> GPU copy
This commit is contained in:
1 parent
fe414c4450
commit
ce83e8fb03
22 files changed
+785
-617
No files matched your search
@@ -183,8 +183,11 @@ class prober
|
||||
{
|
||||
if (*vk.encode_queue == VK_NULL_HANDLE)
|
||||
return false;
|
||||
if (not std::get<vk::PhysicalDeviceVulkan12Features>(vk.feat).timelineSemaphore)
|
||||
if (not std::get<vk::PhysicalDeviceVideoMaintenance1FeaturesKHR>(vk.feat).videoMaintenance1)
|
||||
{
|
||||
U_LOG_I("Cannot use vulkan video encode without VideoMaintenance1 feature");
|
||||
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