Fix direct submission initialization

Related-To: NEO-6057
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2021-10-12 10:08:17 +00:00
committed by Compute-Runtime-Automation
parent 5aeae0cf99
commit cdb7287816
3 changed files with 17 additions and 3 deletions

View File

@@ -92,9 +92,11 @@ class CommandQueueHw : public CommandQueue {
gpgpuEngine->osContext->ensureContextInitialized();
gpgpuEngine->commandStreamReceiver->initDirectSubmission(device->getDevice(), *gpgpuEngine->osContext);
if (const EngineControl *mainBcsEngine = bcsEngines[0]; mainBcsEngine != nullptr) {
mainBcsEngine->osContext->ensureContextInitialized();
mainBcsEngine->commandStreamReceiver->initDirectSubmission(device->getDevice(), *mainBcsEngine->osContext);
for (const EngineControl *engine : bcsEngines) {
if (engine != nullptr) {
engine->osContext->ensureContextInitialized();
engine->commandStreamReceiver->initDirectSubmission(device->getDevice(), *engine->osContext);
}
}
}