Defer BCS initialization in L0

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2021-06-09 15:41:41 +00:00
committed by Compute-Runtime-Automation
parent d3c47ae831
commit db8798ed94
3 changed files with 74 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/direct_submission/direct_submission_properties.h"
#include "shared/source/helpers/api_specific_config.h"
#include "shared/source/helpers/engine_node_helper.h"
#include "shared/source/helpers/hw_info.h"
@@ -35,7 +36,7 @@ bool OsContext::isImmediateContextInitializationEnabled(bool isDefaultEngine) co
return true;
}
if (engineType == aub_stream::EngineType::ENGINE_BCS) {
if (engineType == aub_stream::EngineType::ENGINE_BCS && ApiSpecificConfig::ApiType::OCL == ApiSpecificConfig::getApiType()) {
return true;
}