feature: add regular and hp contexts in group without dedicated hp engine

- if no hp copy engine available, create group with regular and hp
contexts

Related-To: NEO-11983

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-08-28 07:04:42 +00:00
committed by Compute-Runtime-Automation
parent 1070df4c54
commit 482e077252
7 changed files with 27 additions and 12 deletions

View File

@@ -97,7 +97,7 @@ void RootDevice::initializeRootCommandStreamReceiver() {
if (useContextGroup) {
auto contextCount = gfxCoreHelper.getContextGroupContextsCount();
EngineGroupType engineGroupType = gfxCoreHelper.getEngineGroupType(engine.getEngineType(), engine.getEngineUsage(), hwInfo);
auto highPriorityContextCount = gfxCoreHelper.getContextGroupHpContextsCount(engineGroupType);
auto highPriorityContextCount = gfxCoreHelper.getContextGroupHpContextsCount(engineGroupType, false);
if (debugManager.flags.OverrideNumHighPriorityContexts.get() != -1) {
highPriorityContextCount = static_cast<uint32_t>(debugManager.flags.OverrideNumHighPriorityContexts.get());