mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 06:23:01 +08:00
Change-Id: I2f27c4de6af9ebbc0210bc5e08bbfa9cb6beec0e Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
49 lines
1.7 KiB
C++
49 lines
1.7 KiB
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "core/command_container/command_encoder.h"
|
|
#include "core/command_container/command_encoder.inl"
|
|
#include "core/command_container/command_encoder_base.inl"
|
|
#include "core/gen12lp/hw_cmds_base.h"
|
|
#include "runtime/gen12lp/reg_configs.h"
|
|
|
|
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>;
|
|
template struct EncodeMathMMIO<Family>;
|
|
template struct EncodeIndirectParams<Family>;
|
|
template struct EncodeFlush<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>;
|
|
|
|
} // namespace NEO
|