Fixing the media decode regression issue.
Change-Id: Id501a0c9dec68371e16b65692064d28a01544359
diff --git a/Source/GmmLib/Texture/GmmGen11Texture.cpp b/Source/GmmLib/Texture/GmmGen11Texture.cpp
index 4c945d7..7e6d60b 100644
--- a/Source/GmmLib/Texture/GmmGen11Texture.cpp
+++ b/Source/GmmLib/Texture/GmmGen11Texture.cpp
@@ -323,12 +323,9 @@
if(GFX_GET_CURRENT_RENDERCORE(pPlatform->Platform) > IGFX_GEN11LP_CORE)
{
- if(pTexInfo->Flags.Gpu.CCS)
- {
- //U/V must be aligned to AuxT granularity, for 16K AuxT- 4x pitchalign enforces it,
- //add extra padding for 64K AuxT
- TileHeight *= (!GMM_IS_64KB_TILE(pTexInfo->Flags) && !WA16K) ? 4 : 1;
- }
+ //U/V must be aligned to AuxT granularity, for 16K AuxT- 4x pitchalign enforces it,
+ //add extra padding for 64K AuxT
+ TileHeight *= (!GMM_IS_64KB_TILE(pTexInfo->Flags) && !WA16K) ? 4 : 1;
}
*pUOffsetX = GFX_ALIGN(*pUOffsetX, TileWidth);
diff --git a/Source/GmmLib/Texture/GmmGen12Texture.cpp b/Source/GmmLib/Texture/GmmGen12Texture.cpp
index 6a37374..450770a 100644
--- a/Source/GmmLib/Texture/GmmGen12Texture.cpp
+++ b/Source/GmmLib/Texture/GmmGen12Texture.cpp
@@ -836,12 +836,9 @@
pTexInfo->OffsetInfo.Plane.IsTileAlignedPlanes = true;
- if(pTexInfo->Flags.Gpu.CCS)
- {
- //U/V must be aligned to AuxT granularity, 4x pitchalign enforces 16K-align,
- //add extra padding for 64K AuxT
- TileHeight *= (!GMM_IS_64KB_TILE(pTexInfo->Flags) && !WA16K) ? 4 : 1;
- }
+ //U/V must be aligned to AuxT granularity, 4x pitchalign enforces 16K-align,
+ //add extra padding for 64K AuxT
+ TileHeight *= (!GMM_IS_64KB_TILE(pTexInfo->Flags) && !WA16K) ? 4 : 1;
if(pTexInfo->Format == GMM_FORMAT_IMC2 || // IMC2, IMC4 needs even tile columns
pTexInfo->Format == GMM_FORMAT_IMC4)