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:
parent
ccb87d5ea9
commit
0f4458e173
@ -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
|
||||
*
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user