mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 17:20:26 +08:00
Move programminng image surface state to core folder [5/n]
Change-Id: I062e3367b6398af6198847c80113a6c2aea2bb73
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -22,8 +22,5 @@ void ImageHw<Family>::setMediaSurfaceRotation(void *) {}
|
||||
template <>
|
||||
void ImageHw<Family>::setSurfaceMemoryObjectControlStateIndexToMocsTable(void *, uint32_t) {}
|
||||
|
||||
template <>
|
||||
void ImageHw<Family>::setMipTailStartLod(RENDER_SURFACE_STATE *surfaceState) {}
|
||||
|
||||
#include "runtime/mem_obj/image_factory_init.inl"
|
||||
} // namespace NEO
|
||||
|
||||
@@ -349,8 +349,5 @@ class ImageHw : public Image {
|
||||
return inputShaderChannel;
|
||||
}
|
||||
typename RENDER_SURFACE_STATE::SURFACE_TYPE surfaceType;
|
||||
|
||||
protected:
|
||||
void setMipTailStartLod(RENDER_SURFACE_STATE *surfaceState);
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
@@ -64,7 +64,7 @@ void ImageHw<GfxFamily>::setImageArg(void *memory, bool setAsMediaBlockImage, ui
|
||||
|
||||
surfaceState->setSurfaceMinLod(this->baseMipLevel + mipLevel);
|
||||
surfaceState->setMipCountLod((this->mipCount > 0) ? (this->mipCount - 1) : 0);
|
||||
setMipTailStartLod(surfaceState);
|
||||
setMipTailStartLod<GfxFamily>(surfaceState, gmm);
|
||||
|
||||
cl_channel_order imgChannelOrder = getSurfaceFormatInfo().OCLImageFormat.image_channel_order;
|
||||
int shaderChannelValue = ImageHw<GfxFamily>::getShaderChannelValue(RENDER_SURFACE_STATE::SHADER_CHANNEL_SELECT_RED, imgChannelOrder);
|
||||
@@ -189,13 +189,4 @@ void ImageHw<GfxFamily>::transformImage3dTo2dArray(void *memory) {
|
||||
template <typename GfxFamily>
|
||||
void ImageHw<GfxFamily>::setAuxParamsForMCSCCS(RENDER_SURFACE_STATE *surfaceState, Gmm *gmm) {
|
||||
}
|
||||
|
||||
template <typename GfxFamily>
|
||||
void ImageHw<GfxFamily>::setMipTailStartLod(RENDER_SURFACE_STATE *surfaceState) {
|
||||
surfaceState->setMipTailStartLod(0);
|
||||
|
||||
if (auto gmm = getGraphicsAllocation()->getDefaultGmm()) {
|
||||
surfaceState->setMipTailStartLod(gmm->gmmResourceInfo->getMipTailStartLodSurfaceState());
|
||||
}
|
||||
}
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user