Skip to content

Commit

Permalink
[dxvk] Remove pending submission counter
Browse files Browse the repository at this point in the history
  • Loading branch information
doitsujin authored and misyltoad committed Jun 26, 2023
1 parent ccb87d5 commit 0f4458e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 28 deletions.
11 changes: 0 additions & 11 deletions src/dxvk/dxvk_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -498,17 +498,6 @@ namespace dxvk {
m_submissionQueue.unlockDeviceQueue();
}

/**
* \brief Number of pending submissions
*
* A return value of 0 indicates
* that the GPU is currently idle.
* \returns Pending submission count
*/
uint32_t pendingSubmissions() const {
return m_submissionQueue.pendingSubmissions();
}

/**
* \brief Increments a given stat counter
*
Expand Down
5 changes: 0 additions & 5 deletions src/dxvk/dxvk_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ namespace dxvk {
entry.status = status;
entry.submit = std::move(submitInfo);

m_pending += 1;
m_submitQueue.push(std::move(entry));
m_appendCond.notify_all();
}
Expand Down Expand Up @@ -215,10 +214,6 @@ namespace dxvk {
entry.submit.cmdList->notifyObjects();

lock.lock();

if (entry.submit.cmdList != nullptr)
m_pending -= 1;

m_finishQueue.pop();
m_finishCond.notify_all();
lock.unlock();
Expand Down
12 changes: 0 additions & 12 deletions src/dxvk/dxvk_queue.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@ namespace dxvk {

~DxvkSubmissionQueue();

/**
* \brief Number of pending submissions
*
* A return value of 0 indicates
* that the GPU is currently idle.
* \returns Pending submission count
*/
uint32_t pendingSubmissions() const {
return m_pending.load();
}

/**
* \brief Retrieves estimated GPU idle time
*
Expand Down Expand Up @@ -193,7 +182,6 @@ namespace dxvk {
std::atomic<VkResult> m_lastError = { VK_SUCCESS };

std::atomic<bool> m_stopped = { false };
std::atomic<uint32_t> m_pending = { 0u };
std::atomic<uint64_t> m_gpuIdle = { 0ull };

dxvk::mutex m_mutex;
Expand Down

0 comments on commit 0f4458e

Please sign in to comment.