0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-23 00:25:46 +00:00

Fix WidthInGobs on the GPU

This commit is contained in:
gdkchan 2018-05-11 20:20:44 -03:00
parent fee4b0eb8a
commit 0381a09227

View file

@ -1,3 +1,5 @@
using System;
namespace Ryujinx.Core.Gpu
{
class BlockLinearSwizzle : ISwizzle
@ -16,7 +18,7 @@ namespace Ryujinx.Core.Gpu
BhShift = CountLsbZeros(BlockHeight * 8);
BppShift = CountLsbZeros(Bpp);
int WidthInGobs = Width * Bpp / 64;
int WidthInGobs = (int)MathF.Ceiling(Width * Bpp / 64f);
GobStride = 512 * BlockHeight * WidthInGobs;