1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[dxvk] Remove pending submission counter

This commit is contained in:
Philip Rebohle 2023-06-22 20:41:27 +02:00 committed by Joshie
parent ccb87d5ea9
commit 0f4458e173
3 changed files with 0 additions and 28 deletions

View File

@ -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
*

View File

@ -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();
}
@ -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();

View File

@ -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
*
@ -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;