Skip to content

Commit

Permalink
Generic fixes for Linear tiling selection (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmach authored Sep 7, 2021
1 parent 50505ec commit 1c975c5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Source/GmmLib/Resource/GmmResourceInfoCommonEx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ bool GmmLib::GmmResourceInfoCommon::CopyClientParams(GMM_RESCREATE_PARAMS &Creat
CreateParams.Flags.Info.TiledX = true;
}
}
else
{
//Auto-tiling selection if not Linear already
else if(CreateParams.Flags.Info.Linear == 0)
{
// Xe_HP onwards.
if((CreateParams.Flags.Info.TiledYs +
CreateParams.Flags.Info.TiledYf +
Expand Down Expand Up @@ -119,8 +120,9 @@ bool GmmLib::GmmResourceInfoCommon::CopyClientParams(GMM_RESCREATE_PARAMS &Creat
}
}
}
else
{
//Convert non linear & non-tiledX tiling selection by client to proper tiling.
else if(CreateParams.Flags.Info.Linear + CreateParams.Flags.Info.TiledX == 0)
{
if(!pGmmGlobalContext->GetSkuTable().FtrTileY)
{
__GMM_ASSERT(!(CreateParams.Flags.Info.TiledYs ||
Expand Down

0 comments on commit 1c975c5

Please sign in to comment.