Remove hardcoded BlockHeight in nvflinger
This commit is contained in:
parent
072d71e5ee
commit
15154b6239
1 changed files with 3 additions and 1 deletions
|
@ -398,6 +398,8 @@ namespace Ryujinx.HLE.HOS.Services.Android
|
||||||
|
|
||||||
GalImageFormat imageFormat = ConvertColorFormat(_bufferQueue[slot].Data.Buffer.Surfaces[0].ColorFormat);
|
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.
|
//Note: Rotation is being ignored.
|
||||||
|
|
||||||
int top = crop.Top;
|
int top = crop.Top;
|
||||||
|
@ -413,7 +415,7 @@ namespace Ryujinx.HLE.HOS.Services.Android
|
||||||
{
|
{
|
||||||
image = new GalImage(
|
image = new GalImage(
|
||||||
fbWidth,
|
fbWidth,
|
||||||
fbHeight, 1, 16,
|
fbHeight, 1, BlockHeight,
|
||||||
GalMemoryLayout.BlockLinear,
|
GalMemoryLayout.BlockLinear,
|
||||||
imageFormat);
|
imageFormat);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue