Remove hardcoded BlockHeight in nvflinger

This commit is contained in:
Thog 2019-01-05 17:08:50 +01:00
parent 072d71e5ee
commit 15154b6239
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6

View file

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