From 2fb9beca52be1f55e8e027fc01fbabdc9ab40a45 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sat, 18 Feb 2023 14:26:52 +1000 Subject: [PATCH] GS/HW: Use block instead of page pointer for height lookup Some callers were using blocks, others were using pages before. Enables target expansion in Stuntman, which slightly improves rendering without CPU sprite. The full "fix" needs page handling in P8 conversion. --- pcsx2/GS/Renderers/HW/GSRendererHW.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp index ecb10ad774..c12d2b7b4d 100644 --- a/pcsx2/GS/Renderers/HW/GSRendererHW.cpp +++ b/pcsx2/GS/Renderers/HW/GSRendererHW.cpp @@ -766,7 +766,7 @@ GSVector2i GSRendererHW::GetTargetSize(GSVector2i* unscaled_size) // Align to even lines, reduces the chance of tiny resizes. min_height = Common::AlignUpPow2(min_height, 2); - u32 height = m_tc->GetTargetHeight(m_context->FRAME.FBP, m_context->FRAME.FBW, m_context->FRAME.PSM, min_height); + u32 height = m_tc->GetTargetHeight(m_context->FRAME.Block(), m_context->FRAME.FBW, m_context->FRAME.PSM, min_height); if (unscaled_size) { @@ -774,7 +774,7 @@ GSVector2i GSRendererHW::GetTargetSize(GSVector2i* unscaled_size) unscaled_size->y = static_cast(height); } - GL_INS("Target size for %x %u %u: %ux%u", m_context->FRAME.FBP, m_context->FRAME.FBW, m_context->FRAME.PSM, width, height); + GL_INS("Target size for %x %u %u: %ux%u", m_context->FRAME.Block(), m_context->FRAME.FBW, m_context->FRAME.PSM, width, height); return GSVector2i(static_cast(static_cast(width) * GSConfig.UpscaleMultiplier), static_cast(static_cast(height) * GSConfig.UpscaleMultiplier));