Remove unused DxvkResource::waitIdle

Spinning-based wait idle is no longer used.
This commit is contained in:
Tatsuyuki Ishi 2023-08-28 14:00:33 +09:00
parent bbd1d84cd0
commit e3d3d5c3aa
1 changed files with 0 additions and 13 deletions

View File

@ -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;