2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2017-2019 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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2018-09-14 20:31:37 +08:00
|
|
|
#include "runtime/aub/aub_helper.h"
|
|
|
|
#include "runtime/aub/aub_helper.inl"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "runtime/helpers/flat_batch_buffer_helper_hw.inl"
|
2017-12-21 23:54:19 +08:00
|
|
|
#include "runtime/helpers/hw_helper.h"
|
2018-09-05 19:10:57 +08:00
|
|
|
#include "runtime/helpers/hw_helper_common.inl"
|
2018-06-08 22:42:29 +08:00
|
|
|
#include "runtime/memory_manager/memory_constants.h"
|
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 BDWFamily Family;
|
|
|
|
|
|
|
|
template <>
|
|
|
|
size_t HwHelperHw<Family>::getMaxBarrierRegisterPerSlice() const {
|
|
|
|
return 16;
|
|
|
|
}
|
|
|
|
|
2018-02-19 16:50:17 +08:00
|
|
|
template <>
|
2018-08-23 23:42:35 +08:00
|
|
|
void HwHelperHw<Family>::setupHardwareCapabilities(HardwareCapabilities *caps, const HardwareInfo &hwInfo) {
|
2018-02-19 16:50:17 +08:00
|
|
|
caps->image3DMaxHeight = 2048;
|
|
|
|
caps->image3DMaxWidth = 2048;
|
2018-06-08 22:42:29 +08:00
|
|
|
caps->maxMemAllocSize = 2 * MemoryConstants::gigaByte - 8 * MemoryConstants::megaByte;
|
2018-07-10 19:22:11 +08:00
|
|
|
caps->isStatelesToStatefullWithOffsetSupported = false;
|
2018-02-19 16:50:17 +08:00
|
|
|
}
|
|
|
|
|
2019-03-28 21:15:51 +08:00
|
|
|
template <>
|
|
|
|
void PipeControlHelper<Family>::addPipeControl(LinearStream &commandStream, bool dcFlush) {
|
|
|
|
auto pCmd = PipeControlHelper<Family>::addPipeControlBase(commandStream, dcFlush);
|
|
|
|
pCmd->setDcFlushEnable(true);
|
|
|
|
}
|
|
|
|
|
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
|