mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Revert "performance: Set L1 cache policy to WB on PTL"
This reverts commit 577de9770d.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
56ce056ee2
commit
59179fa9d9
@@ -6,13 +6,6 @@
|
||||
*/
|
||||
|
||||
#ifdef SUPPORT_PTL
|
||||
|
||||
template <>
|
||||
uint32_t L1CachePolicyHelper<IGFX_PTL>::getDefaultL1CachePolicy(bool isDebuggerActive) {
|
||||
using GfxFamily = HwMapper<IGFX_PTL>::GfxFamily;
|
||||
return GfxFamily::STATE_BASE_ADDRESS::L1_CACHE_CONTROL_WB;
|
||||
}
|
||||
|
||||
template struct L1CachePolicyHelper<IGFX_PTL>;
|
||||
static EnableGfxProductHw<IGFX_PTL> enableGfxProductHwPTL;
|
||||
#endif
|
||||
|
||||
@@ -26,9 +26,7 @@ HWTEST2_F(ProductHelperTest, givenL1CachePolicyHelperWhenUnsupportedL1PoliciesAn
|
||||
HWTEST2_F(ProductHelperTest, givenAtLeastXeHpgCoreWhenGetL1CachePolicyThenReturnCorrectValue, IsAtLeastXeCore) {
|
||||
using GfxFamily = typename HwMapper<productFamily>::GfxFamily;
|
||||
auto policy = [&]() -> uint32_t {
|
||||
if constexpr (productFamily == IGFX_PTL) {
|
||||
return GfxFamily::RENDER_SURFACE_STATE::L1_CACHE_CONTROL_WB;
|
||||
} else if constexpr (GfxFamily::isHeaplessRequired()) {
|
||||
if constexpr (GfxFamily::isHeaplessRequired()) {
|
||||
return GfxFamily::RENDER_SURFACE_STATE::L1_CACHE_CONTROL_WBP;
|
||||
} else {
|
||||
return GfxFamily::STATE_BASE_ADDRESS::L1_CACHE_CONTROL_WBP;
|
||||
|
||||
@@ -8,6 +8,3 @@
|
||||
#include "shared/test/common/test_macros/hw_test_base.h"
|
||||
|
||||
HWTEST_EXCLUDE_PRODUCT(ProductHelperTest, whenGettingPreferredAllocationMethodThenNoPreferenceIsReturned, IGFX_PTL);
|
||||
HWTEST_EXCLUDE_PRODUCT(ProductHelperTest, givenProductHelperWhenGetL1CachePolicyThenReturnWriteByPass_IsSbaRequiredAndAtLeastXeCore, IGFX_PTL);
|
||||
HWTEST_EXCLUDE_PRODUCT(CompilerProductHelperFixture, givenAtLeastXeHpgCoreWhenGetCachingPolicyOptionsThenReturnWriteByPassPolicyOption_IsAtLeastXeCore, IGFX_PTL);
|
||||
HWTEST_EXCLUDE_PRODUCT(SbaTest, givenStateBaseAddressAndDebugFlagSetWhenAppendExtraCacheSettingsThenProgramCorrectL1CachePolicy_IsSbaRequiredAndAtLeastXeCore, IGFX_PTL);
|
||||
|
||||
@@ -75,11 +75,6 @@ PTLTEST_F(PtlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorS
|
||||
EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
|
||||
}
|
||||
|
||||
PTLTEST_F(ProductHelperTest, givenProductHelperWhenGetL1CachePolicyThenReturnWriteByPass) {
|
||||
EXPECT_EQ(2u, productHelper->getL1CachePolicy(false));
|
||||
EXPECT_EQ(2u, productHelper->getL1CachePolicy(true));
|
||||
}
|
||||
|
||||
PTLTEST_F(PtlProductHelper, givenDebugFlagWhenCheckingIsResolveDependenciesByPipeControlsSupportedThenTheFlagDerivedValueIsReturned) {
|
||||
DebugManagerStateRestore restorer;
|
||||
|
||||
|
||||
@@ -593,7 +593,7 @@ XE3_CORETEST_F(Xe3SbaTest, givenSpecificProductFamilyWhenAppendingSbaThenProgram
|
||||
|
||||
StateBaseAddressHelper<FamilyType>::appendStateBaseAddressParameters(args);
|
||||
|
||||
EXPECT_EQ(pDevice->getHardwareInfo().platform.eProductFamily == IGFX_PTL ? 2 : 0, sbaCmd.getL1CacheControlCachePolicy());
|
||||
EXPECT_EQ(FamilyType::STATE_BASE_ADDRESS::L1_CACHE_CONTROL_WBP, sbaCmd.getL1CacheControlCachePolicy());
|
||||
}
|
||||
|
||||
XE3_CORETEST_F(Xe3SbaTest, givenL1CachingOverrideWhenStateBaseAddressIsProgrammedThenItMatchesTheOverrideValue) {
|
||||
|
||||
Reference in New Issue
Block a user