Move isCooperativeEngineSupported to HwInfoConfig

Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2022-05-10 17:38:03 +00:00
committed by Compute-Runtime-Automation
parent fdb763aa7e
commit 0b68fdbe52
14 changed files with 767 additions and 329 deletions

View File

@@ -299,9 +299,10 @@ HWTEST2_F(CommandListAppendLaunchKernel, givenKernelUsingSyncBufferWhenAppendLau
kernelAttributes.numGrfRequired = GrfConfig::DefaultGrfNumber;
auto pCommandList = std::make_unique<WhiteBox<::L0::CommandListCoreFamily<gfxCoreFamily>>>();
auto &hwInfoConfig = *HwInfoConfig::get(defaultHwInfo->platform.eProductFamily);
auto &hwHelper = HwHelper::get(defaultHwInfo->platform.eRenderCoreFamily);
auto engineGroupType = NEO::EngineGroupType::Compute;
if (hwHelper.isCooperativeEngineSupported(*defaultHwInfo)) {
if (hwInfoConfig.isCooperativeEngineSupported(*defaultHwInfo)) {
engineGroupType = hwHelper.getEngineGroupType(aub_stream::EngineType::ENGINE_CCS, EngineUsage::Cooperative, *defaultHwInfo);
}
pCommandList->initialize(device, engineGroupType, 0u);