Pass EngineTypeUsage to OsContext creation

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-5610
This commit is contained in:
Maciej Dziuban
2021-03-08 18:50:32 +00:00
committed by Compute-Runtime-Automation
parent 52e118fe49
commit 264f20ea00
53 changed files with 334 additions and 380 deletions

View File

@@ -973,8 +973,7 @@ struct KernelIsaTests : Test<ModuleFixture> {
if (createBcsEngine) {
auto &engine = device->getNEODevice()->getEngine(0);
bcsOsContext.reset(OsContext::create(nullptr, 0, device->getNEODevice()->getDeviceBitfield(), aub_stream::ENGINE_BCS, PreemptionMode::Disabled,
false, false, false));
bcsOsContext.reset(OsContext::create(nullptr, 0, device->getNEODevice()->getDeviceBitfield(), EngineTypeUsage{aub_stream::ENGINE_BCS, EngineUsage::Regular}, PreemptionMode::Disabled, false));
engine.osContext = bcsOsContext.get();
engine.commandStreamReceiver->setupContext(*bcsOsContext);
}