mirror of https://github.com/PCSX2/pcsx2.git
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.
This commit is contained in:
parent
cd4c1e920e
commit
2fb9beca52
|
@ -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<int>(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<int>(static_cast<float>(width) * GSConfig.UpscaleMultiplier),
|
||||
static_cast<int>(static_cast<float>(height) * GSConfig.UpscaleMultiplier));
|
||||
|
|
Loading…
Reference in New Issue