Skip to content

Commit 567dc09

Browse files
authored
Xe2 Caching demotion for L3XD|L4WT|NC request (#212)
1 parent 552325f commit 567dc09

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Source/GmmLib/CachePolicy/GmmXe2_LPGCachePolicy.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,17 @@ GMM_STATUS GmmLib::GmmXe2_LPGCachePolicy::InitCachePolicy()
130130
if ((UsagePATElement.Xe2.L4CC == GMM_GFX_PHY_L4_MT_WT) && (UsagePATElement.Xe2.L3CC == GMM_GFX_PHY_L3_MT_WB_XD))
131131
{
132132

133-
PATIdx = 8;
133+
// With L3:XD, L4:WT, NC combination
134+
if (pGmmLibContext->GetSkuTable().FtrDiscrete)
135+
{
136+
// On BMG, L4 is a pass through, demote L4 to UC, keep L3 at XD
137+
PATIdx = PAT6;
138+
}
139+
else
140+
{
141+
// On LNL, L3:XD is not needed
142+
PATIdx = PAT13;
143+
}
134144
}
135145
else
136146
{

0 commit comments

Comments
 (0)