Merge pull request #9646 from PatrickFerry/sw-textureencoder-alignedwidth

SW: Fix alignedWidth in TextureEncoder
This commit is contained in:
Léo Lam 2021-04-24 20:13:10 +02:00 committed by GitHub
commit 1c6232e95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ static void SetSpans(int sBlkSize, int tBlkSize, s32* tSpan, s32* sBlkSpan, s32*
{
// width is 1 less than the number of pixels of width
u32 width = bpmem.copyTexSrcWH.x >> bpmem.triggerEFBCopy.half_scale;
u32 alignedWidth = Common::AlignUp(width, sBlkSize);
u32 alignedWidth = Common::AlignUp(width + 1, sBlkSize);
u32 readStride = 3 << bpmem.triggerEFBCopy.half_scale;