update monado

This commit is contained in:
galister
2025-10-07 09:52:57 +02:00
committed by xytovl
parent 26f087c906
commit c6e05754c8
13 changed files with 40 additions and 40 deletions
+6 -6
View File
@@ -305,7 +305,7 @@ static bool comp_wivrn_init_post_vulkan(struct comp_target * ct, uint32_t prefer
cn->wivrn_bundle->device,
{
.flags = vk::CommandPoolCreateFlagBits::eResetCommandBuffer,
.queueFamilyIndex = vk->main_queue.family_index,
.queueFamilyIndex = vk->main_queue->family_index,
});
cn->wivrn_bundle->name(cn->command_pool, "comp target command pool");
}
@@ -545,7 +545,7 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
if (cn->c->base.layer_accum.layer_count == 0 or not cn->cnx.get_offset())
{
scoped_lock lock(vk->queue_mutex);
scoped_lock lock(vk->main_queue->mutex);
cn->wivrn_bundle->queue.submit(submit_info);
cn->psc.images[index].status = pseudo_swapchain::status_t::free;
return VK_SUCCESS;
@@ -588,8 +588,8 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
.dstAccessMask = vk::AccessFlagBits::eMemoryWrite,
.oldLayout = vk::ImageLayout::eTransferSrcOptimal,
.newLayout = vk::ImageLayout::eVideoEncodeSrcKHR,
.srcQueueFamilyIndex = vk->main_queue.family_index,
.dstQueueFamilyIndex = vk->encode_queue.family_index,
.srcQueueFamilyIndex = vk->main_queue->family_index,
.dstQueueFamilyIndex = vk->encode_queue->family_index,
.image = psc_image.image,
.subresourceRange = {.aspectMask = vk::ImageAspectFlagBits::eColor,
.baseMipLevel = 0,
@@ -611,7 +611,7 @@ static VkResult comp_wivrn_present(struct comp_target * ct,
submit_info.setCommandBuffers(*command_buffer);
{
scoped_lock lock(vk->queue_mutex);
scoped_lock lock(vk->main_queue->mutex);
cn->wivrn_bundle->queue.submit(submit_info, *cn->psc.fence);
for (auto & encoder: cn->encoders)
{
@@ -715,7 +715,7 @@ static void comp_wivrn_flush(struct comp_target * ct)
};
{
scoped_lock lock(vk->queue_mutex);
scoped_lock lock(vk->main_queue->mutex);
cn->wivrn_bundle->queue.submit(submit_info);
}
}