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:
authorTatsuyuki Ishi <ishitatsuyuki@gmail.com>2023-08-28 08:00:33 +0300
committerPhilip Rebohle <25567304+doitsujin@users.noreply.github.com>2023-08-29 12:05:42 +0300
commit7e10021eacffb0bbaca7370dfedeedae18e35537 (patch)
tree212ad106e0ea9806d6428368ba7c14f1be9f89b1
parentbbd1d84cd0e0a083a4d162c7207f81cf6604940d (diff)
Remove unused DxvkResource::waitIdle
Spinning-based wait idle is no longer used.
-rw-r--r--src/dxvk/dxvk_resource.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/dxvk/dxvk_resource.h b/src/dxvk/dxvk_resource.h
index 97e82cb7..185a2b56 100644
--- a/src/dxvk/dxvk_resource.h
+++ b/src/dxvk/dxvk_resource.h
@@ -103,19 +103,6 @@ namespace dxvk {
return bool(m_useCount.load() & mask);
}
- /**
- * \brief Waits for resource to become unused
- *
- * Blocks calling thread until the GPU finishes
- * using the resource with the given access type.
- * \param [in] access Access type to check for
- */
- void waitIdle(DxvkAccess access = DxvkAccess::Read) const {
- sync::spin(50000, [this, access] {
- return !isInUse(access);
- });
- }
-
private:
std::atomic<uint64_t> m_useCount;