2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2020-02-07 22:48:09 +01:00
|
|
|
* Copyright (C) 2017-2020 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"
|
|
|
|
|
#include "shared/source/helpers/hw_helper_bdw_plus.inl"
|
2020-02-24 10:22:30 +01:00
|
|
|
|
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 <>
|
|
|
|
|
SipKernelType HwHelperHw<Family>::getSipKernelType(bool debuggingActive) {
|
|
|
|
|
if (!debuggingActive) {
|
|
|
|
|
return SipKernelType::Csr;
|
|
|
|
|
}
|
|
|
|
|
return SipKernelType::DbgCsrLocal;
|
|
|
|
|
}
|
|
|
|
|
|
2019-03-28 14:15:51 +01:00
|
|
|
template <>
|
2020-02-17 12:45:24 +01:00
|
|
|
void MemorySynchronizationCommands<Family>::addPipeControlWA(LinearStream &commandStream, uint64_t gpuAddress, const HardwareInfo &hwInfo) {
|
2020-04-08 18:33:03 +02:00
|
|
|
using PIPE_CONTROL = typename Family::PIPE_CONTROL;
|
|
|
|
|
PIPE_CONTROL cmd = Family::cmdInitPipeControl;
|
|
|
|
|
cmd.setCommandStreamerStallEnable(true);
|
|
|
|
|
|
|
|
|
|
auto pipeControl = static_cast<Family::PIPE_CONTROL *>(commandStream.getSpace(sizeof(Family::PIPE_CONTROL)));
|
|
|
|
|
*pipeControl = cmd;
|
2019-03-28 14:15:51 +01: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;
|
|
|
|
|
}
|
|
|
|
|
|
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
|