From 7e10021eacffb0bbaca7370dfedeedae18e35537 Mon Sep 17 00:00:00 2001 From: Tatsuyuki Ishi Date: Mon, 28 Aug 2023 14:00:33 +0900 Subject: Remove unused DxvkResource::waitIdle Spinning-based wait idle is no longer used. --- src/dxvk/dxvk_resource.h | 13 ------------- 1 file changed, 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 m_useCount; -- cgit v1.2.3