17
17
#include " shared/source/os_interface/linux/drm_wrappers.h"
18
18
#include " shared/source/os_interface/product_helper.h"
19
19
20
- #include < array>
21
- #include < iterator>
22
-
23
20
namespace NEO {
24
21
namespace DrmEngineMappingHelper {
25
- constexpr std::array< aub_stream::EngineType, 9 > engineMapping = { {aub_stream::ENGINE_BCS, aub_stream::ENGINE_BCS1, aub_stream::ENGINE_BCS2,
26
- aub_stream::ENGINE_BCS3, aub_stream::ENGINE_BCS4, aub_stream::ENGINE_BCS5,
27
- aub_stream::ENGINE_BCS6, aub_stream::ENGINE_BCS7, aub_stream::ENGINE_BCS8} };
22
+ constexpr aub_stream::EngineType engineMapping[] = {aub_stream::ENGINE_BCS, aub_stream::ENGINE_BCS1, aub_stream::ENGINE_BCS2,
23
+ aub_stream::ENGINE_BCS3, aub_stream::ENGINE_BCS4, aub_stream::ENGINE_BCS5,
24
+ aub_stream::ENGINE_BCS6, aub_stream::ENGINE_BCS7, aub_stream::ENGINE_BCS8};
28
25
29
26
// 3 types of copy engines:
30
27
// - Main - BCS (legacy, aka. BCS0)
@@ -51,7 +48,7 @@ void assignLinkCopyEngine(std::vector<EngineInfo::EngineToInstanceMap> &tileToEn
51
48
}
52
49
53
50
auto getCopyEnginesMappingIterator (const NEO::RootDeviceEnvironment &rootDeviceEnvironment) {
54
- auto mappingCopyEngineIt = DrmEngineMappingHelper::engineMapping. begin () ;
51
+ auto mappingCopyEngineIt = DrmEngineMappingHelper::engineMapping;
55
52
if (const auto defaultCopyEngine = rootDeviceEnvironment.getProductHelper ().getDefaultCopyEngine (); defaultCopyEngine != *mappingCopyEngineIt) {
56
53
mappingCopyEngineIt++;
57
54
} // Note that BCS0 may not be enabled
0 commit comments