Allow Device creating multiple CSRs [5/n]

- Move Engine type to OsContext
- Move OsContext to CSR
- Improve EngineMapper logic
- CompletionStamp cleanup

Change-Id: I935cb7169c8c48cd09837e20e3da06f6dd3437b9
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2018-11-26 14:04:52 +01:00
committed by sys_ocldev
parent 9a89426ec1
commit 2d77b86e70
98 changed files with 467 additions and 751 deletions

View File

@@ -323,7 +323,7 @@ TEST_F(GlArbSyncEventOsTest, GivenCallToSignalArbSyncObjectWhenSignalSynchroniza
};
FailSignalSyncObjectMock::reset();
wddm->init();
OsContext osContext(&osInterface, 0u);
OsContext osContext(&osInterface, 0u, gpgpuEngineInstances[0]);
CL_GL_SYNC_INFO syncInfo = {};
syncInfo.serverSynchronizationObject = 0x5cU;
@@ -381,7 +381,7 @@ TEST_F(GlArbSyncEventOsTest, GivenCallToSignalArbSyncObjectWhenSignalSynchroniza
};
FailSignalSyncObjectMock::reset();
wddm->init();
OsContext osContext(&osInterface, 0u);
OsContext osContext(&osInterface, 0u, gpgpuEngineInstances[0]);
CL_GL_SYNC_INFO syncInfo = {};
syncInfo.submissionSynchronizationObject = 0x7cU;