2020-01-17 08:56:05 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2020 Intel Corporation
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/command_container/command_encoder.h"
|
|
|
|
|
#include "shared/source/command_container/command_encoder.inl"
|
|
|
|
|
#include "shared/source/command_container/command_encoder_base.inl"
|
|
|
|
|
#include "shared/source/gen12lp/hw_cmds_base.h"
|
2020-03-03 11:59:49 +01:00
|
|
|
#include "shared/source/gen12lp/reg_configs.h"
|
2020-01-17 08:56:05 +01:00
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
using Family = TGLLPFamily;
|
|
|
|
|
|
|
|
|
|
template <>
|
|
|
|
|
void EncodeStates<Family>::adjustStateComputeMode(CommandContainer &container) {
|
|
|
|
|
auto stateComputeModeCmd = Family::cmdInitStateComputeMode;
|
|
|
|
|
using STATE_COMPUTE_MODE = typename Family::STATE_COMPUTE_MODE;
|
|
|
|
|
using FORCE_NON_COHERENT = typename Family::STATE_COMPUTE_MODE::FORCE_NON_COHERENT;
|
|
|
|
|
|
|
|
|
|
stateComputeModeCmd.setForceNonCoherent(FORCE_NON_COHERENT::FORCE_NON_COHERENT_FORCE_GPU_NON_COHERENT);
|
|
|
|
|
|
|
|
|
|
stateComputeModeCmd.setMaskBits(Family::stateComputeModeForceNonCoherentMask);
|
|
|
|
|
|
|
|
|
|
// Commit our commands to the commandStream
|
|
|
|
|
auto buffer = container.getCommandStream()->getSpace(sizeof(stateComputeModeCmd));
|
|
|
|
|
*(decltype(stateComputeModeCmd) *)buffer = stateComputeModeCmd;
|
|
|
|
|
}
|
|
|
|
|
template <>
|
|
|
|
|
size_t EncodeStates<Family>::getAdjustStateComputeModeSize() {
|
|
|
|
|
return sizeof(typename Family::STATE_COMPUTE_MODE);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template struct EncodeDispatchKernel<Family>;
|
|
|
|
|
template struct EncodeStates<Family>;
|
2020-02-25 10:23:04 -08:00
|
|
|
template struct EncodeMath<Family>;
|
2020-01-17 08:56:05 +01:00
|
|
|
template struct EncodeMathMMIO<Family>;
|
|
|
|
|
template struct EncodeIndirectParams<Family>;
|
|
|
|
|
template struct EncodeSetMMIO<Family>;
|
|
|
|
|
template struct EncodeL3State<Family>;
|
|
|
|
|
template struct EncodeMediaInterfaceDescriptorLoad<Family>;
|
|
|
|
|
template struct EncodeStateBaseAddress<Family>;
|
|
|
|
|
template struct EncodeStoreMMIO<Family>;
|
|
|
|
|
template struct EncodeSurfaceState<Family>;
|
2020-01-24 14:58:15 +01:00
|
|
|
template struct EncodeAtomic<Family>;
|
|
|
|
|
template struct EncodeSempahore<Family>;
|
2020-01-28 13:50:19 +01:00
|
|
|
template struct EncodeBatchBufferStartOrEnd<Family>;
|
2020-02-21 15:35:08 +01:00
|
|
|
template struct EncodeMiFlushDW<Family>;
|
2020-01-24 14:58:15 +01:00
|
|
|
} // namespace NEO
|