Add new function setFilterMode

Change-Id: Ieebb851e739fe4568658c48ae4f416fc5902385b
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska 2020-05-25 11:21:46 +02:00 committed by sys_ocldev
parent 7183d30096
commit 389e751cc1
3 changed files with 10 additions and 0 deletions

View File

@ -12,6 +12,9 @@ namespace NEO {
using Family = TGLLPFamily;
template <>
void setFilterMode<Family>(Family::RENDER_SURFACE_STATE *surfaceState, const HardwareInfo *hwInfo){};
// clang-format off
#include "shared/source/image/image_tgllp_plus.inl"
#include "shared/source/image/image_skl_plus.inl"

View File

@ -16,3 +16,6 @@ void setFlagsForMediaCompression<Family>(typename Family::RENDER_SURFACE_STATE *
surfaceState->setAuxiliarySurfaceMode(AUXILIARY_SURFACE_MODE::AUXILIARY_SURFACE_MODE_AUX_NONE);
}
}
template <>
void setFilterMode<Family>(typename Family::RENDER_SURFACE_STATE *surfaceState, const HardwareInfo *hwInfo){};

View File

@ -15,6 +15,9 @@
#include "shared/source/memory_manager/graphics_allocation.h"
namespace NEO {
template <typename GfxFamily>
void setFilterMode(typename GfxFamily::RENDER_SURFACE_STATE *surfaceState, const HardwareInfo *hwInfo);
template <typename GfxFamily>
inline void setImageSurfaceState(typename GfxFamily::RENDER_SURFACE_STATE *surfaceState, const ImageInfo &imageInfo, Gmm *gmm, GmmHelper &gmmHelper, uint32_t cubeFaceIndex, uint64_t gpuAddress, const SurfaceOffsets &surfaceOffsets, bool isNV12Format) {
using RENDER_SURFACE_STATE = typename GfxFamily::RENDER_SURFACE_STATE;
@ -87,6 +90,7 @@ inline void setImageSurfaceState(typename GfxFamily::RENDER_SURFACE_STATE *surfa
}
surfaceState->setSurfaceFormat(static_cast<SURFACE_FORMAT>(imageInfo.surfaceFormat->GenxSurfaceFormat));
setFilterMode<GfxFamily>(surfaceState, gmmHelper.getHardwareInfo());
}
template <typename GfxFamily>