From f5e519ed4b7a3543b8a913093625f5cc2fd669bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 24 Apr 2022 23:23:54 +0200 Subject: [PATCH] Oops, gotta update the cached framebuffer format in the other drawing paths too --- GPU/GPUCommon.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index 45427bab81..fcf97b96cc 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -1862,6 +1862,8 @@ void GPUCommon::Execute_Bezier(u32 op, u32 diff) { // We don't dirty on normal changes anymore as we prescale, but it's needed for splines/bezier. gstate_c.Dirty(DIRTY_UVSCALEOFFSET); + gstate_c.framebufFormat = gstate.FrameBufFormat(); + // This also make skipping drawing very effective. framebufferManager_->SetRenderFrameBuffer(gstate_c.IsDirty(DIRTY_FRAMEBUF), gstate_c.skipDrawReason); if (gstate_c.skipDrawReason & (SKIPDRAW_SKIPFRAME | SKIPDRAW_NON_DISPLAYED_FB)) { @@ -1930,6 +1932,8 @@ void GPUCommon::Execute_Spline(u32 op, u32 diff) { // We don't dirty on normal changes anymore as we prescale, but it's needed for splines/bezier. gstate_c.Dirty(DIRTY_UVSCALEOFFSET); + gstate_c.framebufFormat = gstate.FrameBufFormat(); + // This also make skipping drawing very effective. framebufferManager_->SetRenderFrameBuffer(gstate_c.IsDirty(DIRTY_FRAMEBUF), gstate_c.skipDrawReason); if (gstate_c.skipDrawReason & (SKIPDRAW_SKIPFRAME | SKIPDRAW_NON_DISPLAYED_FB)) { @@ -2034,6 +2038,8 @@ void GPUCommon::Execute_BlockTransferStart(u32 op, u32 diff) { PROFILE_THIS_SCOPE("block"); // don't include the flush in the profile, would be misleading. + gstate_c.framebufFormat = gstate.FrameBufFormat(); + // and take appropriate action. This is a block transfer between RAM and VRAM, or vice versa. // Can we skip this on SkipDraw? DoBlockTransfer(gstate_c.skipDrawReason);