mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-20 08:52:22 +01:00
[dxvk] Remove obsolete fence code from command submissions
Unused since the timeline semaphore rework.
This commit is contained in:
parent
662cfd49f5
commit
763780fb4c
@ -39,12 +39,6 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void DxvkCommandSubmission::signalFence(
|
|
||||||
VkFence fence) {
|
|
||||||
m_fence = fence;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void DxvkCommandSubmission::executeCommandBuffer(
|
void DxvkCommandSubmission::executeCommandBuffer(
|
||||||
VkCommandBuffer commandBuffer) {
|
VkCommandBuffer commandBuffer) {
|
||||||
VkCommandBufferSubmitInfo submitInfo = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_SUBMIT_INFO };
|
VkCommandBufferSubmitInfo submitInfo = { VK_STRUCTURE_TYPE_COMMAND_BUFFER_SUBMIT_INFO };
|
||||||
@ -79,7 +73,7 @@ namespace dxvk {
|
|||||||
VkResult vr = VK_SUCCESS;
|
VkResult vr = VK_SUCCESS;
|
||||||
|
|
||||||
if (!this->isEmpty())
|
if (!this->isEmpty())
|
||||||
vr = vk->vkQueueSubmit2(queue, 1, &submitInfo, m_fence);
|
vr = vk->vkQueueSubmit2(queue, 1, &submitInfo, VK_NULL_HANDLE);
|
||||||
|
|
||||||
this->reset();
|
this->reset();
|
||||||
return vr;
|
return vr;
|
||||||
@ -87,7 +81,6 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
void DxvkCommandSubmission::reset() {
|
void DxvkCommandSubmission::reset() {
|
||||||
m_fence = VK_NULL_HANDLE;
|
|
||||||
m_semaphoreWaits.clear();
|
m_semaphoreWaits.clear();
|
||||||
m_semaphoreSignals.clear();
|
m_semaphoreSignals.clear();
|
||||||
m_commandBuffers.clear();
|
m_commandBuffers.clear();
|
||||||
@ -95,8 +88,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
|
|
||||||
bool DxvkCommandSubmission::isEmpty() const {
|
bool DxvkCommandSubmission::isEmpty() const {
|
||||||
return m_fence == VK_NULL_HANDLE
|
return m_semaphoreWaits.empty()
|
||||||
&& m_semaphoreWaits.empty()
|
|
||||||
&& m_semaphoreSignals.empty()
|
&& m_semaphoreSignals.empty()
|
||||||
&& m_commandBuffers.empty();
|
&& m_commandBuffers.empty();
|
||||||
}
|
}
|
||||||
|
@ -89,13 +89,6 @@ namespace dxvk {
|
|||||||
uint64_t value,
|
uint64_t value,
|
||||||
VkPipelineStageFlags2 stageMask);
|
VkPipelineStageFlags2 stageMask);
|
||||||
|
|
||||||
/**
|
|
||||||
* \brief Adds a fence to signal
|
|
||||||
* \param [in] fence The fence
|
|
||||||
*/
|
|
||||||
void signalFence(
|
|
||||||
VkFence fence);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Adds a command buffer to execute
|
* \brief Adds a command buffer to execute
|
||||||
* \param [in] commandBuffer The command buffer
|
* \param [in] commandBuffer The command buffer
|
||||||
@ -129,7 +122,6 @@ namespace dxvk {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
VkFence m_fence = VK_NULL_HANDLE;
|
|
||||||
small_vector<VkSemaphoreSubmitInfo, 4> m_semaphoreWaits;
|
small_vector<VkSemaphoreSubmitInfo, 4> m_semaphoreWaits;
|
||||||
small_vector<VkSemaphoreSubmitInfo, 4> m_semaphoreSignals;
|
small_vector<VkSemaphoreSubmitInfo, 4> m_semaphoreSignals;
|
||||||
small_vector<VkCommandBufferSubmitInfo, 4> m_commandBuffers;
|
small_vector<VkCommandBufferSubmitInfo, 4> m_commandBuffers;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user