Skip to content

Commit

Permalink
4k page backing for small sized resources on DG1 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmach authored Jun 17, 2021
1 parent 915cfec commit f3762cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/GmmLib/Resource/GmmResourceInfoCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ uint8_t GMM_STDCALL GmmLib::GmmResourceInfoCommon::Is64KBPageSuitable()
{
Ignore64KBPadding |= (Surf.Flags.Info.NonLocalOnly || (Surf.Flags.Info.Shared && !Surf.Flags.Info.NotLockable));
Ignore64KBPadding |= (pGmmGlobalContext->GetSkuTable().FtrLocalMemoryAllows4KB && Surf.Flags.Info.NoOptimizationPadding);
Ignore64KBPadding |= ((pGmmGlobalContext->GetSkuTable().FtrLocalMemoryAllows4KB) && (((Size * (100 + (GMM_GFX_SIZE_T)pGmmGlobalContext->GetAllowedPaddingFor64KbPagesPercentage())) / 100) < GFX_ALIGN(Size, GMM_KBYTE(64))));
}
else
{
Expand Down

0 comments on commit f3762cd

Please sign in to comment.