2020-01-17 08:56:05 +01:00
|
|
|
/*
|
2022-03-08 14:18:31 +00:00
|
|
|
* Copyright (C) 2020-2022 Intel Corporation
|
2020-01-17 08:56:05 +01:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-23 22:44:01 +01:00
|
|
|
#include "shared/source/command_container/command_encoder.h"
|
|
|
|
#include "shared/source/gen8/hw_cmds_base.h"
|
2020-03-03 11:59:49 +01:00
|
|
|
#include "shared/source/gen8/reg_configs.h"
|
2020-01-17 08:56:05 +01:00
|
|
|
|
2020-07-31 08:40:52 +02:00
|
|
|
using Family = NEO::BDWFamily;
|
2020-01-17 08:56:05 +01:00
|
|
|
|
2020-07-31 08:40:52 +02:00
|
|
|
#include "shared/source/command_container/command_encoder.inl"
|
2021-08-03 11:48:35 +00:00
|
|
|
#include "shared/source/command_container/command_encoder_bdw_and_later.inl"
|
|
|
|
#include "shared/source/command_container/encode_compute_mode_bdw_and_later.inl"
|
|
|
|
#include "shared/source/command_container/image_surface_state/compression_params_bdw_and_later.inl"
|
2020-01-17 08:56:05 +01:00
|
|
|
|
2020-07-31 08:40:52 +02:00
|
|
|
namespace NEO {
|
2022-03-08 14:18:31 +00:00
|
|
|
|
2021-01-29 10:17:10 +00:00
|
|
|
template <>
|
|
|
|
void EncodeSurfaceState<Family>::setAuxParamsForMCSCCS(R_SURFACE_STATE *surfaceState) {
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void EncodeSurfaceState<Family>::setClearColorParams(R_SURFACE_STATE *surfaceState, Gmm *gmm) {
|
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
void EncodeSurfaceState<Family>::setFlagsForMediaCompression(R_SURFACE_STATE *surfaceState, Gmm *gmm) {
|
|
|
|
if (gmm->gmmResourceInfo->getResourceFlags()->Info.MediaCompressed) {
|
|
|
|
surfaceState->setAuxiliarySurfaceMode(Family::RENDER_SURFACE_STATE::AUXILIARY_SURFACE_MODE::AUXILIARY_SURFACE_MODE_AUX_NONE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-08 14:18:31 +00:00
|
|
|
template <typename Family>
|
|
|
|
size_t EncodeComputeMode<Family>::getCmdSizeForComputeMode(const HardwareInfo &hwInfo, bool hasSharedHandles, bool isRcs) {
|
|
|
|
return 0u;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename Family>
|
|
|
|
void EncodeComputeMode<Family>::programComputeModeCommand(LinearStream &csr, StateComputeModeProperties &properties,
|
2022-06-23 15:25:10 +00:00
|
|
|
const HardwareInfo &hwInfo, LogicalStateHelper *logicalStateHelper) {
|
2022-03-08 14:18:31 +00:00
|
|
|
}
|
|
|
|
|
2022-04-20 14:12:20 +00:00
|
|
|
template <>
|
|
|
|
void EncodeStateBaseAddress<Family>::setSbaAddressesForDebugger(NEO::Debugger::SbaAddresses &sbaAddress, const STATE_BASE_ADDRESS &sbaCmd) {
|
|
|
|
sbaAddress.IndirectObjectBaseAddress = sbaCmd.getIndirectObjectBaseAddress();
|
|
|
|
sbaAddress.DynamicStateBaseAddress = sbaCmd.getDynamicStateBaseAddress();
|
|
|
|
sbaAddress.GeneralStateBaseAddress = sbaCmd.getGeneralStateBaseAddress();
|
|
|
|
sbaAddress.InstructionBaseAddress = sbaCmd.getInstructionBaseAddress();
|
|
|
|
sbaAddress.SurfaceStateBaseAddress = sbaCmd.getSurfaceStateBaseAddress();
|
|
|
|
}
|
|
|
|
|
2020-01-17 08:56:05 +01:00
|
|
|
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-04-03 17:38:09 +02:00
|
|
|
template struct EncodeMemoryPrefetch<Family>;
|
2020-07-31 08:40:52 +02:00
|
|
|
template struct EncodeWA<Family>;
|
2020-11-16 17:12:08 +00:00
|
|
|
template struct EncodeMiArbCheck<Family>;
|
2021-05-18 02:46:21 +00:00
|
|
|
template struct EncodeComputeMode<Family>;
|
2021-02-26 22:02:57 +00:00
|
|
|
template struct EncodeEnableRayTracing<Family>;
|
2021-11-17 22:36:00 +00:00
|
|
|
template struct EncodeNoop<Family>;
|
2021-12-02 14:17:45 +00:00
|
|
|
template struct EncodeStoreMemory<Family>;
|
2022-04-06 14:41:45 +00:00
|
|
|
template struct EncodeMemoryFence<Family>;
|
|
|
|
|
2020-02-25 10:23:04 -08:00
|
|
|
} // namespace NEO
|