2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2021-05-16 20:51:16 +02:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-08-26 22:36:51 +02:00
|
|
|
#include "shared/source/gen9/aub_mapper.h"
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/helpers/flat_batch_buffer_helper_hw.inl"
|
2020-10-22 11:25:32 +02:00
|
|
|
#include "shared/source/helpers/hw_helper_base.inl"
|
2021-08-03 11:48:35 +00:00
|
|
|
#include "shared/source/helpers/hw_helper_bdw_and_later.inl"
|
2020-10-22 11:25:32 +02:00
|
|
|
#include "shared/source/helpers/hw_helper_bdw_to_icllp.inl"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
2021-02-09 19:28:51 +00:00
|
|
|
#include <cstring>
|
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
typedef SKLFamily Family;
|
|
|
|
|
|
2018-04-06 14:25:22 +02:00
|
|
|
template <>
|
2021-01-14 13:08:10 +01:00
|
|
|
SipKernelType HwHelperHw<Family>::getSipKernelType(bool debuggingActive) const {
|
2018-04-06 14:25:22 +02:00
|
|
|
if (!debuggingActive) {
|
|
|
|
|
return SipKernelType::Csr;
|
|
|
|
|
}
|
2021-10-18 15:59:47 +00:00
|
|
|
return DebugManager.flags.UseBindlessDebugSip.get() ? SipKernelType::DbgBindless : SipKernelType::DbgCsrLocal;
|
2018-04-06 14:25:22 +02:00
|
|
|
}
|
|
|
|
|
|
2019-05-20 11:19:27 +02:00
|
|
|
template <>
|
|
|
|
|
uint32_t HwHelperHw<Family>::getMetricsLibraryGenId() const {
|
|
|
|
|
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Gen9);
|
|
|
|
|
}
|
|
|
|
|
|
2020-08-03 20:39:06 +02:00
|
|
|
template <>
|
|
|
|
|
uint32_t HwHelperHw<Family>::getDefaultThreadArbitrationPolicy() const {
|
|
|
|
|
return ThreadArbitrationPolicy::RoundRobin;
|
|
|
|
|
}
|
|
|
|
|
|
2021-02-09 19:28:51 +00:00
|
|
|
template <>
|
|
|
|
|
uint32_t HwHelperHw<Family>::getDefaultRevisionId(const HardwareInfo &hwInfo) const {
|
|
|
|
|
if (std::strcmp(hwInfo.capabilityTable.platformType, "core") == 0) {
|
|
|
|
|
return 9u;
|
|
|
|
|
}
|
|
|
|
|
return 0u;
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-05 18:32:55 +02:00
|
|
|
template <>
|
|
|
|
|
bool MemorySynchronizationCommands<Family>::isPipeControlWArequired(const HardwareInfo &hwInfo) { return true; }
|
|
|
|
|
|
2017-12-21 16:54:19 +01:00
|
|
|
template class HwHelperHw<Family>;
|
2018-09-04 11:25:54 +02:00
|
|
|
template class FlatBatchBufferHelperHw<Family>;
|
2020-02-17 12:45:24 +01:00
|
|
|
template struct MemorySynchronizationCommands<Family>;
|
2020-04-28 16:48:23 +02:00
|
|
|
template struct LriHelper<Family>;
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|