mirror of https://github.com/intel/gmmlib.git
Fix to align HAlign to 128bytes for Linear Packed YUV format
This commit is contained in:
parent
92d702f885
commit
5fb4180e22
|
@ -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)) /////////////////////////////
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue