Extend engine checkers to support more engine types

Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
Bartosz Dunajski
2021-12-08 13:57:37 +00:00
committed by Compute-Runtime-Automation
parent 24c19509b3
commit 4dde9393ad
17 changed files with 308 additions and 74 deletions

View File

@@ -55,10 +55,18 @@ aub_stream::EngineType remapEngineTypeToHwSpecific(aub_stream::EngineType inputT
uint32_t getBcsIndex(aub_stream::EngineType engineType);
aub_stream::EngineType mapBcsIndexToEngineType(uint32_t index, bool includeMainCopyEngine);
aub_stream::EngineType mapCcsIndexToEngineType(uint32_t index);
std::string engineTypeToString(aub_stream::EngineType engineType);
std::string engineTypeToStringAdditional(aub_stream::EngineType engineType);
std::string engineUsageToString(EngineUsage usage);
bool isBcsEnabled(const HardwareInfo &hwInfo, aub_stream::EngineType engineType);
constexpr bool isLinkBcs(aub_stream::EngineType engineType) {
return engineType >= aub_stream::ENGINE_BCS1 && engineType <= aub_stream::ENGINE_BCS8;
}
bool linkCopyEnginesSupported(const HardwareInfo &hwInfo, const DeviceBitfield &deviceBitfield);
aub_stream::EngineType selectLinkCopyEngine(const HardwareInfo &hwInfo, const DeviceBitfield &deviceBitfield, std::atomic<uint32_t> &selectorCopyEngine);
}; // namespace EngineHelpers
} // namespace NEO