From c1db89b4ddbdbc9eb6f026f59c43b49237e4115e Mon Sep 17 00:00:00 2001 From: Dan Weatherford Date: Sun, 6 Nov 2016 17:40:40 -0600 Subject: [PATCH] Eliminate double lock of Vulkan queue mutex --- src/xenia/gpu/vulkan/vulkan_command_processor.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/xenia/gpu/vulkan/vulkan_command_processor.cc b/src/xenia/gpu/vulkan/vulkan_command_processor.cc index 67b9bc017..b6e2398fa 100644 --- a/src/xenia/gpu/vulkan/vulkan_command_processor.cc +++ b/src/xenia/gpu/vulkan/vulkan_command_processor.cc @@ -396,14 +396,8 @@ void VulkanCommandProcessor::PerformSwap(uint32_t frontbuffer_ptr, submit_info.signalSemaphoreCount = 1; submit_info.pSignalSemaphores = &swap_sem; - if (queue_mutex_) { - std::lock_guard lock(*queue_mutex_); - status = vkQueueSubmit(queue_, 1, &submit_info, current_batch_fence_); - CheckResult(status, "vkQueueSubmit"); - } else { - status = vkQueueSubmit(queue_, 1, &submit_info, current_batch_fence_); - CheckResult(status, "vkQueueSubmit"); - } + status = vkQueueSubmit(queue_, 1, &submit_info, current_batch_fence_); + CheckResult(status, "vkQueueSubmit"); if (device_->is_renderdoc_attached() && capturing_) { device_->EndRenderDocFrameCapture();