mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +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);
|
||||
}
|
||||
|
||||
/**
|
||||
* \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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user