mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +00:00
FramebufferManager: Fix invalid transitions for 1xIR in EFB cache
This commit is contained in:
parent
5399995c61
commit
53af27b133
2 changed files with 3 additions and 6 deletions
|
@ -223,10 +223,7 @@ AbstractTexture* FramebufferManager::ResolveEFBColorTexture(const MathUtil::Rect
|
|||
{
|
||||
// Return the normal EFB texture if multisampling is off.
|
||||
if (!IsEFBMultisampled())
|
||||
{
|
||||
m_efb_color_texture->FinishedRendering();
|
||||
return m_efb_color_texture.get();
|
||||
}
|
||||
|
||||
// It's not valid to resolve an out-of-range rectangle.
|
||||
MathUtil::Rectangle<int> clamped_region = region;
|
||||
|
@ -246,10 +243,7 @@ AbstractTexture* FramebufferManager::ResolveEFBColorTexture(const MathUtil::Rect
|
|||
AbstractTexture* FramebufferManager::ResolveEFBDepthTexture(const MathUtil::Rectangle<int>& region)
|
||||
{
|
||||
if (!IsEFBMultisampled())
|
||||
{
|
||||
m_efb_depth_texture->FinishedRendering();
|
||||
return m_efb_depth_texture.get();
|
||||
}
|
||||
|
||||
// It's not valid to resolve an out-of-range rectangle.
|
||||
MathUtil::Rectangle<int> clamped_region = region;
|
||||
|
@ -566,6 +560,7 @@ void FramebufferManager::PopulateEFBCache(bool depth, u32 tile_index)
|
|||
// Downsample from internal resolution to 1x.
|
||||
// TODO: This won't produce correct results at IRs above 2x. More samples are required.
|
||||
// This is the same issue as with EFB copies.
|
||||
src_texture->FinishedRendering();
|
||||
g_renderer->BeginUtilityDrawing();
|
||||
|
||||
const float rcp_src_width = 1.0f / m_efb_framebuffer->GetWidth();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue