2020-01-17 08:56:05 +01:00
|
|
|
/*
|
2024-01-10 12:32:03 +00:00
|
|
|
* Copyright (C) 2020-2024 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
|
|
|
|
2022-07-25 15:30:11 +00:00
|
|
|
using Family = NEO::Gen8Family;
|
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"
|
2024-04-09 15:25:08 +00:00
|
|
|
#include "shared/source/command_container/command_encoder_heap_addressing.inl"
|
2021-08-03 11:48:35 +00:00
|
|
|
#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 <>
|
2023-07-18 11:48:29 +00:00
|
|
|
void EncodeSurfaceState<Family>::setAuxParamsForMCSCCS(R_SURFACE_STATE *surfaceState, const ReleaseHelper *releaseHelper) {
|
2021-01-29 10:17:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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>
|
2023-01-23 14:08:25 +00:00
|
|
|
size_t EncodeComputeMode<Family>::getCmdSizeForComputeMode(const RootDeviceEnvironment &rootDeviceEnvironment, bool hasSharedHandles, bool isRcs) {
|
2022-03-08 14:18:31 +00:00
|
|
|
return 0u;
|
|
|
|
|
}
|
|
|
|
|
|
2024-03-09 00:00:20 +00:00
|
|
|
template <>
|
|
|
|
|
inline size_t EncodeComputeMode<Family>::getSizeForComputeMode() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-08 14:18:31 +00:00
|
|
|
template <typename Family>
|
2023-09-12 17:51:43 +00:00
|
|
|
void EncodeComputeMode<Family>::programComputeModeCommand(LinearStream &csr, StateComputeModeProperties &properties, const RootDeviceEnvironment &rootDeviceEnvironment) {
|
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) {
|
2023-04-28 09:38:31 +00:00
|
|
|
sbaAddress.indirectObjectBaseAddress = sbaCmd.getIndirectObjectBaseAddress();
|
|
|
|
|
sbaAddress.dynamicStateBaseAddress = sbaCmd.getDynamicStateBaseAddress();
|
|
|
|
|
sbaAddress.generalStateBaseAddress = sbaCmd.getGeneralStateBaseAddress();
|
|
|
|
|
sbaAddress.instructionBaseAddress = sbaCmd.getInstructionBaseAddress();
|
|
|
|
|
sbaAddress.surfaceStateBaseAddress = sbaCmd.getSurfaceStateBaseAddress();
|
2022-04-20 14:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
2023-11-28 12:00:47 +00:00
|
|
|
template <>
|
|
|
|
|
void EncodeBatchBufferStartOrEnd<Family>::appendBatchBufferStart(MI_BATCH_BUFFER_START &cmd, bool indirect, bool predicate) {
|
|
|
|
|
}
|
|
|
|
|
|
2023-12-21 12:10:25 +00:00
|
|
|
} // namespace NEO
|
2023-11-23 13:58:58 +00:00
|
|
|
|
2023-12-21 12:10:25 +00:00
|
|
|
#include "shared/source/command_container/command_encoder_enablers.inl"
|
2023-12-21 13:16:43 +00:00
|
|
|
|
2023-12-21 12:10:25 +00:00
|
|
|
namespace NEO {
|
2020-01-17 08:56:05 +01:00
|
|
|
template struct EncodeL3State<Family>;
|
2022-04-06 14:41:45 +00:00
|
|
|
|
2023-12-21 12:10:25 +00:00
|
|
|
template void InOrderPatchCommandHelpers::PatchCmd<Family>::patchComputeWalker(uint64_t appendCounterValue);
|
2020-02-25 10:23:04 -08:00
|
|
|
} // namespace NEO
|
2023-12-22 15:59:55 +00:00
|
|
|
|
|
|
|
|
#include "shared/source/command_container/implicit_scaling_before_xe_hp.inl"
|