mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
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:
committed by
Compute-Runtime-Automation
parent
4552960e1f
commit
78d9af04e7
@@ -720,7 +720,7 @@ void WddmMemoryManager::freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation
|
||||
auto ®isteredEngines = 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()) {
|
||||
|
||||
Reference in New Issue
Block a user