Revert "fix: change mutex when destroying allocation"

This reverts commit 7628966f80.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2024-08-29 13:46:41 +02:00
committed by Compute-Runtime-Automation
parent 4552960e1f
commit 78d9af04e7

View File

@@ -720,7 +720,7 @@ void WddmMemoryManager::freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation
auto &registeredEngines = getRegisteredEngines(gfxAllocation->getRootDeviceIndex());
for (auto &engine : registeredEngines) {
auto &residencyController = static_cast<OsContextWin *>(engine.osContext)->getResidencyController();
auto lock = residencyController.acquireTrimCallbackLock();
auto lock = residencyController.acquireLock();
auto &evictContainer = engine.commandStreamReceiver->getEvictionAllocations();
auto iter = std::find(evictContainer.begin(), evictContainer.end(), gfxAllocation);
if (iter != evictContainer.end()) {