/* * Copyright (C) 2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/command_container/command_encoder.h" #include "shared/source/gen12lp/hw_cmds_base.h" #include "shared/source/gen12lp/reg_configs.h" #include "shared/source/helpers/preamble.h" using Family = NEO::TGLLPFamily; #include "shared/source/command_container/command_encoder.inl" #include "shared/source/command_container/command_encoder_base.inl" #include "shared/source/command_container/encode_compute_mode_tgllp_plus.inl" namespace NEO { template <> size_t EncodeWA::getAdditionalPipelineSelectSize(Device &device) { size_t size = 0; if (device.getDefaultEngine().commandStreamReceiver->isRcs()) { size += 2 * PreambleHelper::getCmdSizeForPipelineSelect(device.getHardwareInfo()); } return size; } template <> size_t EncodeStates::getAdjustStateComputeModeSize() { return sizeof(typename Family::STATE_COMPUTE_MODE); } template <> void EncodeComputeMode::adjustComputeMode(LinearStream &csr, uint32_t numGrfRequired, void *const stateComputeModePtr, bool isMultiOsContextCapable) { STATE_COMPUTE_MODE *stateComputeMode = static_cast(stateComputeModePtr); auto buffer = csr.getSpace(sizeof(STATE_COMPUTE_MODE)); *reinterpret_cast(buffer) = *stateComputeMode; } template <> void EncodeWA::encodeAdditionalPipelineSelect(Device &device, LinearStream &stream, bool is3DPipeline) { if (device.getDefaultEngine().commandStreamReceiver->isRcs()) { PipelineSelectArgs args; args.is3DPipelineRequired = is3DPipeline; PreambleHelper::programPipelineSelect(&stream, args, device.getHardwareInfo()); } } template struct EncodeDispatchKernel; template struct EncodeStates; template struct EncodeMath; template struct EncodeMathMMIO; template struct EncodeIndirectParams; template struct EncodeSetMMIO; template struct EncodeL3State; template struct EncodeMediaInterfaceDescriptorLoad; template struct EncodeStateBaseAddress; template struct EncodeStoreMMIO; template struct EncodeSurfaceState; template struct EncodeAtomic; template struct EncodeSempahore; template struct EncodeBatchBufferStartOrEnd; template struct EncodeMiFlushDW; template struct EncodeWA; template struct EncodeMemoryPrefetch; } // namespace NEO