mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Fix direct submission initialization
Related-To: NEO-6057 Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5aeae0cf99
commit
cdb7287816
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user