Check Windows OsContext is properly initialized

Related-To: NEO-3639

Change-Id: I9442402a109174bbf9345d8451dba8e7ddb8c1d9
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2019-12-19 14:02:05 +01:00
committed by sys_ocldev
parent 8585170f05
commit 6f7d83f7ab
14 changed files with 118 additions and 2 deletions

View File

@@ -190,6 +190,7 @@ OsContext *MemoryManager::createAndRegisterOsContext(CommandStreamReceiver *comm
DeviceBitfield deviceBitfield, PreemptionMode preemptionMode, bool lowPriority) {
auto contextId = ++latestContextId;
auto osContext = OsContext::create(peekExecutionEnvironment().osInterface.get(), contextId, deviceBitfield, engineType, preemptionMode, lowPriority);
UNRECOVERABLE_IF(!osContext->isInitialized());
osContext->incRefInternal();
registeredEngines.emplace_back(commandStreamReceiver, osContext);