Fix to align HAlign to 128bytes for Linear Packed YUV format

This commit is contained in:
John Machado 2023-12-05 17:32:21 +05:30 committed by GitHub
parent 92d702f885
commit 5fb4180e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -230,7 +230,15 @@ GMM_INLINE GMM_STATUS __GmmTexFillHAlignVAlign(GMM_TEXTURE_INFO *pTexInfo,GMM_LI
UnitAlignHeight = pPlatform->TexAlign.YUV422.Height; UnitAlignHeight = pPlatform->TexAlign.YUV422.Height;
// For packed 8/16-bit formats alignment factor of 4 will give us < 16B so expand to 32B // For packed 8/16-bit formats alignment factor of 4 will give us < 16B so expand to 32B
SET_ALIGN_FACTOR(Width, 32);
if (pTexInfo->Flags.Info.Linear)
{
SET_ALIGN_FACTOR(Width, 128);
}
else
{
SET_ALIGN_FACTOR(Width, 32);
}
} }
else if(GmmIsCompressed(pGmmLibContext, pTexInfo->Format)) ///////////////////////////// else if(GmmIsCompressed(pGmmLibContext, pTexInfo->Format)) /////////////////////////////
{ {