File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,9 @@ bool GmmLib::GmmResourceInfoCommon::CopyClientParams(GMM_RESCREATE_PARAMS &Creat
7575 CreateParams.Flags .Info .TiledX = true ;
7676 }
7777 }
78- else
79- {
78+ // Auto-tiling selection if not Linear already
79+ else if (CreateParams.Flags .Info .Linear == 0 )
80+ {
8081 // Xe_HP onwards.
8182 if ((CreateParams.Flags .Info .TiledYs +
8283 CreateParams.Flags .Info .TiledYf +
@@ -119,8 +120,9 @@ bool GmmLib::GmmResourceInfoCommon::CopyClientParams(GMM_RESCREATE_PARAMS &Creat
119120 }
120121 }
121122 }
122- else
123- {
123+ // Convert non linear & non-tiledX tiling selection by client to proper tiling.
124+ else if (CreateParams.Flags .Info .Linear + CreateParams.Flags .Info .TiledX == 0 )
125+ {
124126 if (!pGmmGlobalContext->GetSkuTable ().FtrTileY )
125127 {
126128 __GMM_ASSERT (!(CreateParams.Flags .Info .TiledYs ||
You can’t perform that action at this time.
0 commit comments