mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Related-To: NEO-7003 Add L1CachePolicyHelper struct. This struct is resposible for L1 cache policy in build option, Surface State and stateless caching. Currently default option for all platforms is WBP (write by-pass) Signed-off-by: Szymon Morek <szymon.morek@intel.com>
34 lines
864 B
C++
34 lines
864 B
C++
/*
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/helpers/cache_policy.h"
|
|
#include "shared/source/helpers/compiler_hw_info_config.h"
|
|
|
|
namespace NEO {
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
bool CompilerHwInfoConfigHw<gfxProduct>::isForceEmuInt32DivRemSPRequired() const {
|
|
return false;
|
|
}
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
bool CompilerHwInfoConfigHw<gfxProduct>::isStatelessToStatefulBufferOffsetSupported() const {
|
|
return true;
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
void CompilerHwInfoConfigHw<gfxProduct>::adjustHwInfoForIgc(HardwareInfo &hwInfo) const {
|
|
}
|
|
|
|
template <PRODUCT_FAMILY gfxProduct>
|
|
const char *CompilerHwInfoConfigHw<gfxProduct>::getCachingPolicyOptions() const {
|
|
return L1CachePolicyHelper<gfxProduct>::getCachingPolicyOptions();
|
|
};
|
|
|
|
} // namespace NEO
|