| 1 | /* |
| 2 | * Copyright (C) 2020-2024 Intel Corporation |
| 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
| 6 | */ |
| 7 | |
| 8 | #include "shared/source/helpers/blit_commands_helper_base.inl"cxx . . $ `<file>/shared/source/helpers/blit_commands_helper_base.inl`/ |
| 9 | |
| 10 | namespace NEOcxx . . $ NEO/ { |
| 11 | |
| 12 | template <typename GfxFamily> |
| 13 | uint64_tcxx . . $ uint64_t# BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::getMaxBlitWidthOverridecxx . . $ NEO/BlitCommandsHelper#getMaxBlitWidthOverride(c458e1e3bc882193).(const RootDeviceEnvironmentcxx . . $ NEO/RootDeviceEnvironment# &rootDeviceEnvironment) { |
| 14 | return 0; |
| 15 | } |
| 16 | |
| 17 | template <typename GfxFamily> |
| 18 | uint64_tcxx . . $ uint64_t# BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::getMaxBlitHeightOverridecxx . . $ NEO/BlitCommandsHelper#getMaxBlitHeightOverride(e9aae687658c5966).(const RootDeviceEnvironmentcxx . . $ NEO/RootDeviceEnvironment# &rootDeviceEnvironment, bool isSystemMemoryPoolUsed) { |
| 19 | return 0; |
| 20 | } |
| 21 | |
| 22 | template <typename GfxFamily> |
| 23 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendBlitCommandsBlockCopycxx . . $ NEO/BlitCommandsHelper#appendBlitCommandsBlockCopy(95072f2924c3bfbc).(const BlitPropertiescxx . . $ NEO/BlitProperties# &blitProperties, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd, const RootDeviceEnvironmentcxx . . $ NEO/RootDeviceEnvironment# &rootDeviceEnvironment) { |
| 24 | appendExtraMemoryPropertiescxx . . $ NEO/BlitCommandsHelper#appendExtraMemoryProperties(d4830707441cfd24).(blitCmd, rootDeviceEnvironment); |
| 25 | } |
| 26 | |
| 27 | template <typename GfxFamily> |
| 28 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendBlitCommandsForImagescxx . . $ NEO/BlitCommandsHelper#appendBlitCommandsForImages(428846dcd2adcae5).(const BlitPropertiescxx . . $ NEO/BlitProperties# &blitProperties, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd, const RootDeviceEnvironmentcxx . . $ NEO/RootDeviceEnvironment# &rootDeviceEnvironment, uint32_tcxx . . $ uint32_t# &srcSlicePitch, uint32_tcxx . . $ uint32_t# &dstSlicePitch) { |
| 29 | appendTilingTypecxx . . $ NEO/BlitCommandsHelper#appendTilingType(d784fdef20530602).(GMM_NOT_TILED, GMM_NOT_TILED, blitCmd); |
| 30 | } |
| 31 | |
| 32 | template <typename GfxFamily> |
| 33 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendBlitCommandsForFillBuffercxx . . $ NEO/BlitCommandsHelper#appendBlitCommandsForFillBuffer(5048e37543fa0548).(NEOcxx . . $ NEO/::GraphicsAllocationcxx . . $ NEO/GraphicsAllocation# *dstAlloc, typename GfxFamily::XY_COLOR_BLT &blitCmd, const RootDeviceEnvironmentcxx . . $ NEO/RootDeviceEnvironment# &rootDeviceEnvironment) { |
| 34 | using XY_COLOR_BLTcxx . . $ NEO/BlitCommandsHelper#appendBlitCommandsForFillBuffer(5048e37543fa0548).XY_COLOR_BLT# = typename GfxFamily::XY_COLOR_BLT; |
| 35 | if (blitCmd.getColorDepth() ==cxx . . $ NEO/`operator==`(14bceeaa96b11c8d). XY_COLOR_BLTcxx . . $ NEO/BlitCommandsHelper#appendBlitCommandsForFillBuffer(5048e37543fa0548).XY_COLOR_BLT#::COLOR_DEPTH::COLOR_DEPTH_32_BIT_COLOR) { |
| 36 | blitCmd.set32BppByteMask(XY_COLOR_BLTcxx . . $ NEO/BlitCommandsHelper#appendBlitCommandsForFillBuffer(5048e37543fa0548).XY_COLOR_BLT#::_32BPP_BYTE_MASK::_32BPP_BYTE_MASK_WRITE_RGBA_CHANNEL); |
| 37 | } |
| 38 | appendExtraMemoryPropertiescxx . . $ NEO/BlitCommandsHelper#appendExtraMemoryProperties(d4830707441cfd24).(blitCmd, rootDeviceEnvironment); |
| 39 | } |
| 40 | |
| 41 | template <typename GfxFamily> |
| 42 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::dispatchBlitMemoryColorFillcxx . . $ NEO/BlitCommandsHelper#dispatchBlitMemoryColorFill(9c8fb4097ff1c524).(NEOcxx . . $ NEO/::GraphicsAllocationcxx . . $ NEO/GraphicsAllocation# *dstAlloc, uint64_tcxx . . $ uint64_t# offset, uint32_tcxx . . $ uint32_t# *pattern, size_t patternSize, LinearStreamcxx . . $ NEO/LinearStream# &linearStream, size_t size, RootDeviceEnvironmentcxx . . $ NEO/RootDeviceEnvironment# &rootDeviceEnvironment) { |
| 43 | switch (patternSize) { |
| 44 | case 1: |
| 45 | NEOcxx . . $ NEO/::BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::dispatchBlitMemoryFillcxx . . $ NEO/BlitCommandsHelper#dispatchBlitMemoryFill(d49fd0262844e5e1).<1>(dstAlloc, offset, pattern, linearStream, size, rootDeviceEnvironment, COLOR_DEPTHcxx . . $ NEO/BlitCommandsHelper#COLOR_DEPTH#::COLOR_DEPTH_8_BIT_COLOR); |
| 46 | break; |
| 47 | case 2: |
| 48 | NEOcxx . . $ NEO/::BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::dispatchBlitMemoryFillcxx . . $ NEO/BlitCommandsHelper#dispatchBlitMemoryFill(d49fd0262844e5e1).<2>(dstAlloc, offset, pattern, linearStream, size, rootDeviceEnvironment, COLOR_DEPTHcxx . . $ NEO/BlitCommandsHelper#COLOR_DEPTH#::COLOR_DEPTH_16_BIT_COLOR1555); |
| 49 | break; |
| 50 | default: |
| 51 | NEOcxx . . $ NEO/::BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::dispatchBlitMemoryFillcxx . . $ NEO/BlitCommandsHelper#dispatchBlitMemoryFill(d49fd0262844e5e1).<4>(dstAlloc, offset, pattern, linearStream, size, rootDeviceEnvironment, COLOR_DEPTHcxx . . $ NEO/BlitCommandsHelper#COLOR_DEPTH#::COLOR_DEPTH_32_BIT_COLOR); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | template <typename GfxFamily> |
| 56 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendSurfaceTypecxx . . $ NEO/BlitCommandsHelper#appendSurfaceType(be593f0cc6548763).(const BlitPropertiescxx . . $ NEO/BlitProperties# &blitProperties, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd) { |
| 57 | } |
| 58 | template <typename GfxFamily> |
| 59 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendTilingEnablecxx . . $ NEO/BlitCommandsHelper#appendTilingEnable(e135949147d3aa95).(typename GfxFamily::XY_COLOR_BLT &blitCmd) { |
| 60 | using XY_COLOR_BLTcxx . . $ NEO/BlitCommandsHelper#appendTilingEnable(e135949147d3aa95).XY_COLOR_BLT# = typename GfxFamily::XY_COLOR_BLT; |
| 61 | blitCmd.setDestTilingEnable(XY_COLOR_BLTcxx . . $ NEO/BlitCommandsHelper#appendTilingEnable(e135949147d3aa95).XY_COLOR_BLT#::DEST_TILING_ENABLE::DEST_TILING_ENABLE_TILING_ENABLED); |
| 62 | } |
| 63 | |
| 64 | template <typename GfxFamily> |
| 65 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendTilingTypecxx . . $ NEO/BlitCommandsHelper#appendTilingType(d784fdef20530602).(const GMM_TILE_TYPE srcTilingType, const GMM_TILE_TYPE dstTilingType, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd) { |
| 66 | } |
| 67 | template <typename GfxFamily> |
| 68 | template <typename T> |
| 69 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendColorDepthcxx . . $ NEO/BlitCommandsHelper#appendColorDepth(76c66673905320c1).(const BlitPropertiescxx . . $ NEO/BlitProperties# &blitProperites, T &blitCmd) { |
| 70 | } |
| 71 | |
| 72 | template <typename GfxFamily> |
| 73 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendSliceOffsetscxx . . $ NEO/BlitCommandsHelper#appendSliceOffsets(5bfeae4a82c080ac).(const BlitPropertiescxx . . $ NEO/BlitProperties# &blitProperties, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd, uint32_tcxx . . $ uint32_t# sliceIndex, const RootDeviceEnvironmentcxx . . $ NEO/RootDeviceEnvironment# &rootDeviceEnvironment, uint32_tcxx . . $ uint32_t# srcSlicePitch, uint32_tcxx . . $ uint32_t# dstSlicePitch) { |
| 74 | } |
| 75 | |
| 76 | template <typename GfxFamily> |
| 77 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::getBlitAllocationPropertiescxx . . $ NEO/BlitCommandsHelper#getBlitAllocationProperties(65c26cd1bae2aec).(const GraphicsAllocationcxx . . $ NEO/GraphicsAllocation# &allocation, uint32_tcxx . . $ uint32_t# &pitch, uint32_tcxx . . $ uint32_t# &qPitch, |
| 78 | GMM_TILE_TYPE &tileType, uint32_tcxx . . $ uint32_t# &mipTailLod, uint32_tcxx . . $ uint32_t# &compressionDetails, |
| 79 | const RootDeviceEnvironmentcxx . . $ NEO/RootDeviceEnvironment# &rootDeviceEnvironment, GMM_YUV_PLANE_ENUM plane) { |
| 80 | } |
| 81 | |
| 82 | template <typename GfxFamily> |
| 83 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::programGlobalSequencerFlushcxx . . $ NEO/BlitCommandsHelper#programGlobalSequencerFlush(238079ce69013829).(LinearStreamcxx . . $ NEO/LinearStream# &commandStream) { |
| 84 | } |
| 85 | |
| 86 | template <typename GfxFamily> |
| 87 | size_t BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::getSizeForGlobalSequencerFlushcxx . . $ NEO/BlitCommandsHelper#getSizeForGlobalSequencerFlush(f708dce9a8856c70).() { |
| 88 | return 0u; |
| 89 | } |
| 90 | |
| 91 | template <typename GfxFamily> |
| 92 | bool BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::miArbCheckWaRequiredcxx . . $ NEO/BlitCommandsHelper#miArbCheckWaRequired(c9857a73d68e59ba).() { |
| 93 | return false; |
| 94 | } |
| 95 | |
| 96 | template <typename GfxFamily> |
| 97 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::appendClearColorcxx . . $ NEO/BlitCommandsHelper#appendClearColor(be593f0cc6548763).(const BlitPropertiescxx . . $ NEO/BlitProperties# &blitProperties, typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd) { |
| 98 | } |
| 99 | |
| 100 | template <typename GfxFamily> |
| 101 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::printImageBlitBlockCopyCommandcxx . . $ NEO/BlitCommandsHelper#printImageBlitBlockCopyCommand(ab8c0c2677bfbe97).(const typename GfxFamily::XY_BLOCK_COPY_BLT &blitCmd, const uint32_tcxx . . $ uint32_t# sliceIndex) {} |
| 102 | |
| 103 | template <typename GfxFamily> |
| 104 | void BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::dispatchDummyBlitcxx . . $ NEO/BlitCommandsHelper#dispatchDummyBlit(5b33f1d087eaf32b).(LinearStreamcxx . . $ NEO/LinearStream# &linearStream, EncodeDummyBlitWaArgscxx . . $ NEO/EncodeDummyBlitWaArgs# &waArgs) {} |
| 105 | |
| 106 | template <typename GfxFamily> |
| 107 | bool BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::isDummyBlitWaNeededcxx . . $ NEO/BlitCommandsHelper#isDummyBlitWaNeeded(5efd053719f6ded3).(const EncodeDummyBlitWaArgscxx . . $ NEO/EncodeDummyBlitWaArgs# &waArgs) { |
| 108 | return false; |
| 109 | } |
| 110 | |
| 111 | template <typename GfxFamily> |
| 112 | size_t BlitCommandsHelpercxx . . $ NEO/BlitCommandsHelper#<GfxFamily>::getDummyBlitSizecxx . . $ NEO/BlitCommandsHelper#getDummyBlitSize(da07fccbfcc8ac58).(const EncodeDummyBlitWaArgscxx . . $ NEO/EncodeDummyBlitWaArgs# &waArgs) { |
| 113 | return 0u; |
| 114 | } |
| 115 | } // namespace NEO |