Add support for queue groups (1/N)

Change-Id: If4763dcb749acc8a6fd68714119808286306410f
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2020-07-28 01:36:52 -07:00
parent b4577ade07
commit 4ca4100a9a
10 changed files with 285 additions and 8 deletions

View File

@@ -160,6 +160,20 @@ const HwHelper::EngineInstancesContainer HwHelperHw<Family>::getGpgpuEngineInsta
return engines;
};
template <>
void HwHelperHw<Family>::addEngineToEngineGroup(std::vector<std::vector<EngineControl>> &engineGroups,
EngineControl &engine, const HardwareInfo &hwInfo) const {
if (engine.engineType == aub_stream::ENGINE_RCS) {
engineGroups[static_cast<uint32_t>(EngineGroupType::RenderCompute)].push_back(engine);
}
if (engine.engineType == aub_stream::ENGINE_CCS) {
engineGroups[static_cast<uint32_t>(EngineGroupType::Compute)].push_back(engine);
}
if (engine.engineType == aub_stream::ENGINE_BCS) {
engineGroups[static_cast<uint32_t>(EngineGroupType::Copy)].push_back(engine);
}
}
template <>
void MemorySynchronizationCommands<Family>::addPipeControlWA(LinearStream &commandStream, uint64_t gpuAddress, const HardwareInfo &hwInfo) {
using PIPE_CONTROL = typename Family::PIPE_CONTROL;