mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-30 13:53:02 -08:00
Mark command pools as transient
This commit is contained in:
1 parent
d535f38938
commit
6ab58430e2
6 files changed
+8
-8
No files matched your search
@@ -499,7 +499,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca
|
||||
{
|
||||
video_command_pool = vk.device.createCommandPool(
|
||||
vk::CommandPoolCreateInfo{
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient,
|
||||
.queueFamilyIndex = vk.encode_queue_family_index,
|
||||
});
|
||||
vk.name(video_command_pool, std::format("vulkan encoder {} video command pool", stream_idx));
|
||||
@@ -520,7 +520,7 @@ void wivrn::video_encoder_vulkan::init(const vk::VideoCapabilitiesKHR & video_ca
|
||||
{
|
||||
transfer_command_pool = vk.device.createCommandPool(
|
||||
vk::CommandPoolCreateInfo{
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
|
||||
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer | vk::CommandPoolCreateFlagBits::eTransient,
|
||||
.queueFamilyIndex = vk.transfer_queue_family_index,
|
||||
});
|
||||
vk.name(transfer_command_pool, std::format("vulkan encoder {} transfer command pool", stream_idx));
|
||||
|
||||
Reference in new issue
Block a user