Skip to content

Commit f3762cd

Browse files
authored
4k page backing for small sized resources on DG1 (#57)
1 parent 915cfec commit f3762cd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/GmmLib/Resource/GmmResourceInfoCommon.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ uint8_t GMM_STDCALL GmmLib::GmmResourceInfoCommon::Is64KBPageSuitable()
5656
{
5757
Ignore64KBPadding |= (Surf.Flags.Info.NonLocalOnly || (Surf.Flags.Info.Shared && !Surf.Flags.Info.NotLockable));
5858
Ignore64KBPadding |= (pGmmGlobalContext->GetSkuTable().FtrLocalMemoryAllows4KB && Surf.Flags.Info.NoOptimizationPadding);
59+
Ignore64KBPadding |= ((pGmmGlobalContext->GetSkuTable().FtrLocalMemoryAllows4KB) && (((Size * (100 + (GMM_GFX_SIZE_T)pGmmGlobalContext->GetAllowedPaddingFor64KbPagesPercentage())) / 100) < GFX_ALIGN(Size, GMM_KBYTE(64))));
5960
}
6061
else
6162
{

0 commit comments

Comments
 (0)