From 5ae6c7eaf85a5f19e47a8bf61eebfed36bb394ba Mon Sep 17 00:00:00 2001 From: Triang3l Date: Thu, 4 Mar 2021 18:14:07 +0300 Subject: [PATCH] [Vulkan] Fix primary queue mutex locking in texture_cache.cc --- src/xenia/gpu/vulkan/texture_cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xenia/gpu/vulkan/texture_cache.cc b/src/xenia/gpu/vulkan/texture_cache.cc index 0e9d3ee26..1aac2c80e 100644 --- a/src/xenia/gpu/vulkan/texture_cache.cc +++ b/src/xenia/gpu/vulkan/texture_cache.cc @@ -961,7 +961,7 @@ void TextureCache::FlushPendingCommands(VkCommandBuffer command_buffer, vkQueueSubmit(device_queue_, 1, &submit_info, completion_fence); CheckResult(status, "vkQueueSubmit"); } else { - std::lock_guard(device_->primary_queue_mutex()); + std::lock_guard lock(device_->primary_queue_mutex()); auto status = vkQueueSubmit(device_->primary_queue(), 1, &submit_info, completion_fence); @@ -1344,7 +1344,7 @@ void TextureCache::WritebackTexture(Texture* texture) { // Submit the command buffer. // Submit commands and wait. { - std::lock_guard(device_->primary_queue_mutex()); + std::lock_guard lock(device_->primary_queue_mutex()); VkSubmitInfo submit_info = { VK_STRUCTURE_TYPE_SUBMIT_INFO, nullptr,