Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Rebohle <philip.rebohle@tu-dortmund.de>2023-06-22 21:41:27 +0300
committerPhilip Rebohle <philip.rebohle@tu-dortmund.de>2023-06-25 19:40:35 +0300
commitcc052a11e7fe7e69ca5ae03ac3aed749863c805a (patch)
tree7ec55206843470225a48db6c61928bcd7f1e1644
parentab7c2082115653df78f89fbfa07d1b9326d1d6a8 (diff)
[dxvk] Remove pending submission counterd3d9-flush-rework
-rw-r--r--src/dxvk/dxvk_device.h11
-rw-r--r--src/dxvk/dxvk_queue.cpp5
-rw-r--r--src/dxvk/dxvk_queue.h12
3 files changed, 0 insertions, 28 deletions
diff --git a/src/dxvk/dxvk_device.h b/src/dxvk/dxvk_device.h
index d01c1f98..a24ee311 100644
--- a/src/dxvk/dxvk_device.h
+++ b/src/dxvk/dxvk_device.h
@@ -499,17 +499,6 @@ namespace dxvk {
}
/**
- * \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
*
* \param [in] counter Stat counter to increment
diff --git a/src/dxvk/dxvk_queue.cpp b/src/dxvk/dxvk_queue.cpp
index 12673414..7273a37d 100644
--- a/src/dxvk/dxvk_queue.cpp
+++ b/src/dxvk/dxvk_queue.cpp
@@ -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();
diff --git a/src/dxvk/dxvk_queue.h b/src/dxvk/dxvk_queue.h
index 8bedcaa1..38d91f5d 100644
--- a/src/dxvk/dxvk_queue.h
+++ b/src/dxvk/dxvk_queue.h
@@ -73,17 +73,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
*
* This is a monotonically increasing counter
@@ -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;