diff --git a/src/dxvk/dxvk_cmdlist.cpp b/src/dxvk/dxvk_cmdlist.cpp index e864368f0..08356843d 100644 --- a/src/dxvk/dxvk_cmdlist.cpp +++ b/src/dxvk/dxvk_cmdlist.cpp @@ -39,12 +39,6 @@ namespace dxvk { } - void DxvkCommandSubmission::signalFence( - VkFence fence) { - m_fence = fence; - } - - void DxvkCommandSubmission::executeCommandBuffer( VkCommandBuffer commandBuffer) { VkCommandBufferSubmitInfo submitInfo = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_SUBMIT_INFO }; @@ -79,7 +73,7 @@ namespace dxvk { VkResult vr = VK_SUCCESS; if (!this->isEmpty()) - vr = vk->vkQueueSubmit2(queue, 1, &submitInfo, m_fence); + vr = vk->vkQueueSubmit2(queue, 1, &submitInfo, VK_NULL_HANDLE); this->reset(); return vr; @@ -87,7 +81,6 @@ namespace dxvk { void DxvkCommandSubmission::reset() { - m_fence = VK_NULL_HANDLE; m_semaphoreWaits.clear(); m_semaphoreSignals.clear(); m_commandBuffers.clear(); @@ -95,8 +88,7 @@ namespace dxvk { bool DxvkCommandSubmission::isEmpty() const { - return m_fence == VK_NULL_HANDLE - && m_semaphoreWaits.empty() + return m_semaphoreWaits.empty() && m_semaphoreSignals.empty() && m_commandBuffers.empty(); } diff --git a/src/dxvk/dxvk_cmdlist.h b/src/dxvk/dxvk_cmdlist.h index da59fc95f..a5eb437f3 100644 --- a/src/dxvk/dxvk_cmdlist.h +++ b/src/dxvk/dxvk_cmdlist.h @@ -89,13 +89,6 @@ namespace dxvk { uint64_t value, VkPipelineStageFlags2 stageMask); - /** - * \brief Adds a fence to signal - * \param [in] fence The fence - */ - void signalFence( - VkFence fence); - /** * \brief Adds a command buffer to execute * \param [in] commandBuffer The command buffer @@ -129,7 +122,6 @@ namespace dxvk { private: - VkFence m_fence = VK_NULL_HANDLE; small_vector m_semaphoreWaits; small_vector m_semaphoreSignals; small_vector m_commandBuffers;