Extend bindDrmContext function

move implementation to drm_neo.cpp
respect multiple CCS and BCS engines

Related-To: NEO-6591
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2022-02-11 13:46:23 +00:00
committed by Compute-Runtime-Automation
parent 6d96ac9deb
commit 2e32bcb2e1
5 changed files with 111 additions and 13 deletions

View File

@@ -181,5 +181,8 @@ aub_stream::EngineType selectLinkCopyEngine(const HardwareInfo &hwInfo, const De
return isBcsEnabled(hwInfo, engine1) ? engine1 : engine2;
}
}
aub_stream::EngineType mapCcsIndexToEngineType(uint32_t index) {
return static_cast<aub_stream::EngineType>(index + static_cast<uint32_t>(aub_stream::ENGINE_CCS));
}
} // namespace NEO::EngineHelpers