Skip to content

Commit

Permalink
Xe2 Caching demotion for L3XD|L4WT|NC request (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmach authored Sep 6, 2024
1 parent 552325f commit 567dc09
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Source/GmmLib/CachePolicy/GmmXe2_LPGCachePolicy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,17 @@ GMM_STATUS GmmLib::GmmXe2_LPGCachePolicy::InitCachePolicy()
if ((UsagePATElement.Xe2.L4CC == GMM_GFX_PHY_L4_MT_WT) && (UsagePATElement.Xe2.L3CC == GMM_GFX_PHY_L3_MT_WB_XD))
{

PATIdx = 8;
// With L3:XD, L4:WT, NC combination
if (pGmmLibContext->GetSkuTable().FtrDiscrete)
{
// On BMG, L4 is a pass through, demote L4 to UC, keep L3 at XD
PATIdx = PAT6;
}
else
{
// On LNL, L3:XD is not needed
PATIdx = PAT13;
}
}
else
{
Expand Down

0 comments on commit 567dc09

Please sign in to comment.