fix: use regular engine for HP copy engine if no HP engine

- map HIGH PRIORTY queues to regular engine for copy engine if there is
no HP copy engine available

Related-To: NEO-11983

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2024-07-26 15:44:23 +00:00
committed by Compute-Runtime-Automation
parent 85df385582
commit a734a738fa
2 changed files with 32 additions and 2 deletions

View File

@@ -1720,7 +1720,9 @@ ze_result_t DeviceImp::getCsrForOrdinalAndIndex(NEO::CommandStreamReceiver **csr
}
if (copyOnly && contextPriority == NEO::EngineUsage::highPriority) {
getCsrForHighPriority(csr, copyOnly);
if (getCsrForHighPriority(csr, copyOnly) != ZE_RESULT_SUCCESS) {
contextPriority = NEO::EngineUsage::regular;
}
}
auto &osContext = (*csr)->getOsContext();