partial fix buffer_size for tilemode 1

This commit is contained in:
georgemoralis 2023-10-06 22:03:59 +03:00
parent 67da986e19
commit 03f19c4d13
1 changed files with 7 additions and 1 deletions

View File

@ -167,7 +167,13 @@ s32 PS4_SYSV_ABI sceVideoOutRegisterBuffers(s32 handle, s32 startIndex, void* co
GPU::renderCreateCtx(); GPU::renderCreateCtx();
// try to calculate buffer size // try to calculate buffer size
u64 buffer_size = 1280 * 768 * 4; // TODO hardcoded value should be redone u64 buffer_size = 0;//still calculation is probably partial or wrong :D
if (attribute->tilingMode == 0)
{
buffer_size = 1920 * 1088 * 4;
} else {
buffer_size = 1920 * 1080 * 4;
}
u64 buffer_pitch = attribute->pitchInPixel; u64 buffer_pitch = attribute->pitchInPixel;
VideoOutBufferSetInternal buf{}; VideoOutBufferSetInternal buf{};