mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-07 16:54:14 +01:00
Remove unused DxvkResource::waitIdle
Spinning-based wait idle is no longer used.
This commit is contained in:
parent
bbd1d84cd0
commit
7e10021eac
@ -103,19 +103,6 @@ namespace dxvk {
|
|||||||
return bool(m_useCount.load() & mask);
|
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:
|
private:
|
||||||
|
|
||||||
std::atomic<uint64_t> m_useCount;
|
std::atomic<uint64_t> m_useCount;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user