From 03f19c4d1313bf0006c2216b52eba12d63ba7d97 Mon Sep 17 00:00:00 2001 From: georgemoralis Date: Fri, 6 Oct 2023 22:03:59 +0300 Subject: [PATCH] partial fix buffer_size for tilemode 1 --- src/Core/PS4/HLE/Graphics/video_out.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Core/PS4/HLE/Graphics/video_out.cpp b/src/Core/PS4/HLE/Graphics/video_out.cpp index 565c7ee5..a78cf03c 100644 --- a/src/Core/PS4/HLE/Graphics/video_out.cpp +++ b/src/Core/PS4/HLE/Graphics/video_out.cpp @@ -167,7 +167,13 @@ s32 PS4_SYSV_ABI sceVideoOutRegisterBuffers(s32 handle, s32 startIndex, void* co GPU::renderCreateCtx(); // 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; VideoOutBufferSetInternal buf{};