From 15154b6239b70d6e0988043eaf56eb4ae1dd1132 Mon Sep 17 00:00:00 2001 From: Thog Date: Sat, 5 Jan 2019 17:08:50 +0100 Subject: [PATCH] Remove hardcoded BlockHeight in nvflinger --- Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs b/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs index 8af8ff2821..db04f47cd0 100644 --- a/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs +++ b/Ryujinx.HLE/HOS/Services/Vi/NvFlinger.cs @@ -398,6 +398,8 @@ namespace Ryujinx.HLE.HOS.Services.Android GalImageFormat imageFormat = ConvertColorFormat(_bufferQueue[slot].Data.Buffer.Surfaces[0].ColorFormat); + int BlockHeight = 1 << _bufferQueue[slot].Data.Buffer.Surfaces[0].BlockHeightLog2; + //Note: Rotation is being ignored. int top = crop.Top; @@ -413,7 +415,7 @@ namespace Ryujinx.HLE.HOS.Services.Android { image = new GalImage( fbWidth, - fbHeight, 1, 16, + fbHeight, 1, BlockHeight, GalMemoryLayout.BlockLinear, imageFormat); }