Skip to content

Commit 09324e1

Browse files
committed
Fixing the media decode regression issue.
Change-Id: Id501a0c9dec68371e16b65692064d28a01544359
1 parent afc4d65 commit 09324e1

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

Source/GmmLib/Texture/GmmGen11Texture.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,9 @@ void GmmLib::GmmGen11TextureCalc::FillPlanarOffsetAddress(GMM_TEXTURE_INFO *pTex
323323

324324
if(GFX_GET_CURRENT_RENDERCORE(pPlatform->Platform) > IGFX_GEN11LP_CORE)
325325
{
326-
if(pTexInfo->Flags.Gpu.CCS)
327-
{
328-
//U/V must be aligned to AuxT granularity, for 16K AuxT- 4x pitchalign enforces it,
329-
//add extra padding for 64K AuxT
330-
TileHeight *= (!GMM_IS_64KB_TILE(pTexInfo->Flags) && !WA16K) ? 4 : 1;
331-
}
326+
//U/V must be aligned to AuxT granularity, for 16K AuxT- 4x pitchalign enforces it,
327+
//add extra padding for 64K AuxT
328+
TileHeight *= (!GMM_IS_64KB_TILE(pTexInfo->Flags) && !WA16K) ? 4 : 1;
332329
}
333330

334331
*pUOffsetX = GFX_ALIGN(*pUOffsetX, TileWidth);

Source/GmmLib/Texture/GmmGen12Texture.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -836,12 +836,9 @@ GMM_STATUS GMM_STDCALL GmmLib::GmmGen12TextureCalc::FillTexPlanar(GMM_TEXTURE_IN
836836

837837
pTexInfo->OffsetInfo.Plane.IsTileAlignedPlanes = true;
838838

839-
if(pTexInfo->Flags.Gpu.CCS)
840-
{
841-
//U/V must be aligned to AuxT granularity, 4x pitchalign enforces 16K-align,
842-
//add extra padding for 64K AuxT
843-
TileHeight *= (!GMM_IS_64KB_TILE(pTexInfo->Flags) && !WA16K) ? 4 : 1;
844-
}
839+
//U/V must be aligned to AuxT granularity, 4x pitchalign enforces 16K-align,
840+
//add extra padding for 64K AuxT
841+
TileHeight *= (!GMM_IS_64KB_TILE(pTexInfo->Flags) && !WA16K) ? 4 : 1;
845842

846843
if(pTexInfo->Format == GMM_FORMAT_IMC2 || // IMC2, IMC4 needs even tile columns
847844
pTexInfo->Format == GMM_FORMAT_IMC4)

0 commit comments

Comments
 (0)