Add new function setFilterMode
Change-Id: Ieebb851e739fe4568658c48ae4f416fc5902385b Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
parent
7183d30096
commit
389e751cc1
|
@ -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"
|
||||
|
|
|
@ -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){};
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue