summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorGPUCode <geoster3d@gmail.com>2023-05-28 01:39:44 +0200
committerGPUCode <geoster3d@gmail.com>2023-05-28 01:39:44 +0200
commit4a292efbff70ed9009f1c364cc9250898be18887 (patch)
tree2234bcbe08282994983c20f31965fedd53e3dc47 /src/video_core
parentMerge pull request #10422 from liamwhite/gc (diff)
downloadyuzu-4a292efbff70ed9009f1c364cc9250898be18887.tar
yuzu-4a292efbff70ed9009f1c364cc9250898be18887.tar.gz
yuzu-4a292efbff70ed9009f1c364cc9250898be18887.tar.bz2
yuzu-4a292efbff70ed9009f1c364cc9250898be18887.tar.lz
yuzu-4a292efbff70ed9009f1c364cc9250898be18887.tar.xz
yuzu-4a292efbff70ed9009f1c364cc9250898be18887.tar.zst
yuzu-4a292efbff70ed9009f1c364cc9250898be18887.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_master_semaphore.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/video_core/renderer_vulkan/vk_master_semaphore.cpp b/src/video_core/renderer_vulkan/vk_master_semaphore.cpp
index 8b65aeaeb..b128c4f6e 100644
--- a/src/video_core/renderer_vulkan/vk_master_semaphore.cpp
+++ b/src/video_core/renderer_vulkan/vk_master_semaphore.cpp
@@ -128,15 +128,12 @@ VkResult MasterSemaphore::SubmitQueueTimeline(vk::CommandBuffer& cmdbuf,
const std::array signal_values{host_tick, u64(0)};
const std::array signal_semaphores{timeline_semaphore, signal_semaphore};
- const u32 num_wait_semaphores = wait_semaphore ? 2 : 1;
- const std::array wait_values{host_tick - 1, u64(1)};
- const std::array wait_semaphores{timeline_semaphore, wait_semaphore};
-
+ const u32 num_wait_semaphores = wait_semaphore ? 1 : 0;
const VkTimelineSemaphoreSubmitInfo timeline_si{
.sType = VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO,
.pNext = nullptr,
- .waitSemaphoreValueCount = num_wait_semaphores,
- .pWaitSemaphoreValues = wait_values.data(),
+ .waitSemaphoreValueCount = 0,
+ .pWaitSemaphoreValues = nullptr,
.signalSemaphoreValueCount = num_signal_semaphores,
.pSignalSemaphoreValues = signal_values.data(),
};
@@ -144,7 +141,7 @@ VkResult MasterSemaphore::SubmitQueueTimeline(vk::CommandBuffer& cmdbuf,
.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
.pNext = &timeline_si,
.waitSemaphoreCount = num_wait_semaphores,
- .pWaitSemaphores = wait_semaphores.data(),
+ .pWaitSemaphores = &wait_semaphore,
.pWaitDstStageMask = wait_stage_masks.data(),
.commandBufferCount = 1,
.pCommandBuffers = cmdbuf.address(),