From e2ee8392501a02e9d9e68697dfbaaeab631eb043 Mon Sep 17 00:00:00 2001 From: "Mrozek, Michal" Date: Mon, 24 Sep 2018 12:41:59 -0700 Subject: [PATCH] Limit unrecoverable scope. Change-Id: I3967d64eb0fbae7d34268458568090c2305226f5 --- runtime/os_interface/windows/wddm_memory_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runtime/os_interface/windows/wddm_memory_manager.cpp b/runtime/os_interface/windows/wddm_memory_manager.cpp index ad9e4d8655..41227d5c86 100644 --- a/runtime/os_interface/windows/wddm_memory_manager.cpp +++ b/runtime/os_interface/windows/wddm_memory_manager.cpp @@ -299,7 +299,10 @@ void WddmMemoryManager::freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation releaseResidencyLock(); - UNRECOVERABLE_IF(gfxAllocation->taskCount != ObjectNotUsed && this->csr && this->csr->getTagAddress() && gfxAllocation->taskCount > *this->csr->getTagAddress()); + UNRECOVERABLE_IF(DebugManager.flags.CreateMultipleDevices.get() == 0 && + gfxAllocation->taskCount != ObjectNotUsed && + this->csr && this->csr->getTagAddress() && + gfxAllocation->taskCount > *this->csr->getTagAddress()); if (input->gmm) { if (input->gmm->isRenderCompressed) {