fix: create hwQueue when reinitialize osContext

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>

Related-To: NEO-9877
This commit is contained in:
Maciej Plewka
2024-01-04 09:10:49 +00:00
committed by Compute-Runtime-Automation
parent d472cf0a5d
commit 3970f1bc4c
4 changed files with 82 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -58,9 +58,15 @@ void OsContextWin::reInitializeContext() {
bool disableContextCreationFlag = envReader.getSetting("NEO_L0_SYSMAN_NO_CONTEXT_MODE", false);
if (!disableContextCreationFlag) {
if (contextInitialized && (false == this->wddm.skipResourceCleanup())) {
wddm.getWddmInterface()->destroyHwQueue(hardwareQueue.handle);
wddm.destroyContext(wddmContextHandle);
}
UNRECOVERABLE_IF(!wddm.createContext(*this));
auto wddmInterface = wddm.getWddmInterface();
if (wddmInterface->hwQueuesSupported()) {
UNRECOVERABLE_IF(!wddmInterface->createHwQueue(*this));
UNRECOVERABLE_IF(!wddmInterface->createMonitoredFence(*this));
}
}
};