2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2020-02-08 05:48:09 +08:00
|
|
|
* Copyright (C) 2017-2020 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-11-13 17:01:19 +08:00
|
|
|
#include "core/helpers/hw_helper_bdw_plus.inl"
|
2019-05-16 15:52:28 +08:00
|
|
|
#include "runtime/aub/aub_helper_bdw_plus.inl"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "runtime/helpers/flat_batch_buffer_helper_hw.inl"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
typedef SKLFamily Family;
|
|
|
|
|
2018-04-06 20:25:22 +08:00
|
|
|
template <>
|
|
|
|
SipKernelType HwHelperHw<Family>::getSipKernelType(bool debuggingActive) {
|
|
|
|
if (!debuggingActive) {
|
|
|
|
return SipKernelType::Csr;
|
|
|
|
}
|
|
|
|
return SipKernelType::DbgCsrLocal;
|
|
|
|
}
|
|
|
|
|
2019-03-28 21:15:51 +08:00
|
|
|
template <>
|
2020-02-08 05:48:09 +08:00
|
|
|
void PipeControlHelper<Family>::addPipeControlWA(LinearStream &commandStream, uint64_t gpuAddress, const HardwareInfo &hwInfo) {
|
2019-03-28 21:15:51 +08:00
|
|
|
auto pCmd = static_cast<Family::PIPE_CONTROL *>(commandStream.getSpace(sizeof(Family::PIPE_CONTROL)));
|
|
|
|
*pCmd = Family::cmdInitPipeControl;
|
|
|
|
pCmd->setCommandStreamerStallEnable(true);
|
|
|
|
}
|
|
|
|
|
2019-05-20 17:19:27 +08:00
|
|
|
template <>
|
|
|
|
uint32_t HwHelperHw<Family>::getMetricsLibraryGenId() const {
|
|
|
|
return static_cast<uint32_t>(MetricsLibraryApi::ClientGen::Gen9);
|
|
|
|
}
|
|
|
|
|
2018-09-14 20:31:37 +08:00
|
|
|
template class AubHelperHw<Family>;
|
2017-12-21 23:54:19 +08:00
|
|
|
template class HwHelperHw<Family>;
|
2018-09-04 17:25:54 +08:00
|
|
|
template class FlatBatchBufferHelperHw<Family>;
|
2019-03-21 00:08:05 +08:00
|
|
|
template struct PipeControlHelper<Family>;
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|