소스 검색

Fix WidthInGobs on the GPU

gdkchan 8 년 전
부모
커밋
0381a09227
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      Ryujinx.Core/Gpu/BlockLinearSwizzle.cs

+ 3 - 1
Ryujinx.Core/Gpu/BlockLinearSwizzle.cs

@@ -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;