Eliminate double lock of Vulkan queue mutex
This commit is contained in:
parent
02a0d11326
commit
c1db89b4dd
|
@ -396,14 +396,8 @@ void VulkanCommandProcessor::PerformSwap(uint32_t frontbuffer_ptr,
|
||||||
submit_info.signalSemaphoreCount = 1;
|
submit_info.signalSemaphoreCount = 1;
|
||||||
submit_info.pSignalSemaphores = &swap_sem;
|
submit_info.pSignalSemaphores = &swap_sem;
|
||||||
|
|
||||||
if (queue_mutex_) {
|
status = vkQueueSubmit(queue_, 1, &submit_info, current_batch_fence_);
|
||||||
std::lock_guard<std::mutex> lock(*queue_mutex_);
|
CheckResult(status, "vkQueueSubmit");
|
||||||
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");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (device_->is_renderdoc_attached() && capturing_) {
|
if (device_->is_renderdoc_attached() && capturing_) {
|
||||||
device_->EndRenderDocFrameCapture();
|
device_->EndRenderDocFrameCapture();
|
||||||
|
|
Loading…
Reference in New Issue