2019-05-13 16:09:52 +08:00
|
|
|
/*
|
2024-02-29 16:43:12 +08:00
|
|
|
* Copyright (C) 2020-2024 Intel Corporation
|
2019-05-13 16:09:52 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/helpers/blit_commands_helper_base.inl"
|
2019-05-13 16:09:52 +08:00
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
2020-07-01 20:12:53 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
uint64_t BlitCommandsHelper<GfxFamily>::getMaxBlitWidthOverride(const RootDeviceEnvironment &rootDeviceEnvironment) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
2022-12-20 16:39:42 +08:00
|
|
|
uint64_t BlitCommandsHelper<GfxFamily>::getMaxBlitHeightOverride(const RootDeviceEnvironment &rootDeviceEnvironment, bool isSystemMemoryPoolUsed) {
|
2020-07-01 20:12:53 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2019-05-13 16:09:52 +08:00
|
|
|
template <typename GfxFamily>
|
2022-01-14 09:12:12 +08:00
|
|
|
void BlitCommandsHelper<GfxFamily>::appendBlitCommandsBlockCopy(const BlitProperties &blitProperties, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd, const RootDeviceEnvironment &rootDeviceEnvironment) {
|
2020-11-26 00:09:44 +08:00
|
|
|
appendExtraMemoryProperties(blitCmd, rootDeviceEnvironment);
|
|
|
|
}
|
2019-05-13 16:09:52 +08:00
|
|
|
|
2020-05-21 18:36:23 +08:00
|
|
|
template <typename GfxFamily>
|
2022-01-14 09:12:12 +08:00
|
|
|
void BlitCommandsHelper<GfxFamily>::appendSurfaceType(const BlitProperties &blitProperties, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd) {
|
2020-05-21 18:36:23 +08:00
|
|
|
}
|
2020-04-28 16:24:22 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
void BlitCommandsHelper<GfxFamily>::appendTilingEnable(typename GfxFamily::XY_COLOR_BLT &blitCmd) {
|
|
|
|
using XY_COLOR_BLT = typename GfxFamily::XY_COLOR_BLT;
|
|
|
|
blitCmd.setDestTilingEnable(XY_COLOR_BLT::DEST_TILING_ENABLE::DEST_TILING_ENABLE_TILING_ENABLED);
|
|
|
|
}
|
|
|
|
|
2020-05-21 18:36:23 +08:00
|
|
|
template <typename GfxFamily>
|
2022-01-14 09:12:12 +08:00
|
|
|
void BlitCommandsHelper<GfxFamily>::appendTilingType(const GMM_TILE_TYPE srcTilingType, const GMM_TILE_TYPE dstTilingType, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd) {
|
2020-05-21 18:36:23 +08:00
|
|
|
}
|
|
|
|
|
2020-06-03 20:42:08 +08:00
|
|
|
template <typename GfxFamily>
|
2022-04-21 20:05:17 +08:00
|
|
|
void BlitCommandsHelper<GfxFamily>::getBlitAllocationProperties(const GraphicsAllocation &allocation, uint32_t &pitch, uint32_t &qPitch,
|
|
|
|
GMM_TILE_TYPE &tileType, uint32_t &mipTailLod, uint32_t &compressionDetails,
|
2023-03-31 21:55:59 +08:00
|
|
|
const RootDeviceEnvironment &rootDeviceEnvironment, GMM_YUV_PLANE_ENUM plane) {
|
2020-06-03 20:42:08 +08:00
|
|
|
}
|
|
|
|
|
2020-10-16 21:58:47 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
void BlitCommandsHelper<GfxFamily>::programGlobalSequencerFlush(LinearStream &commandStream) {
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
size_t BlitCommandsHelper<GfxFamily>::getSizeForGlobalSequencerFlush() {
|
|
|
|
return 0u;
|
|
|
|
}
|
|
|
|
|
2020-11-17 01:12:08 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
bool BlitCommandsHelper<GfxFamily>::miArbCheckWaRequired() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2020-11-19 07:58:42 +08:00
|
|
|
template <typename GfxFamily>
|
2022-01-14 09:12:12 +08:00
|
|
|
void BlitCommandsHelper<GfxFamily>::appendClearColor(const BlitProperties &blitProperties, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd) {
|
2020-11-19 07:58:42 +08:00
|
|
|
}
|
|
|
|
|
2022-03-29 19:34:56 +08:00
|
|
|
template <typename GfxFamily>
|
2022-04-11 19:08:29 +08:00
|
|
|
void BlitCommandsHelper<GfxFamily>::printImageBlitBlockCopyCommand(const typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd, const uint32_t sliceIndex) {}
|
2022-03-29 19:34:56 +08:00
|
|
|
|
2023-03-01 05:08:09 +08:00
|
|
|
template <typename GfxFamily>
|
|
|
|
void BlitCommandsHelper<GfxFamily>::dispatchDummyBlit(LinearStream &linearStream, EncodeDummyBlitWaArgs &waArgs) {}
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
bool BlitCommandsHelper<GfxFamily>::isDummyBlitWaNeeded(const EncodeDummyBlitWaArgs &waArgs) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
template <typename GfxFamily>
|
|
|
|
size_t BlitCommandsHelper<GfxFamily>::getDummyBlitSize(const EncodeDummyBlitWaArgs &waArgs) {
|
|
|
|
return 0u;
|
|
|
|
}
|
2019-05-13 16:09:52 +08:00
|
|
|
} // namespace NEO
|