Skip to content

Commit

Permalink
GS/HW: Kill old source using target if rect is outside target surface
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Jan 26, 2024
1 parent 1144c46 commit ddaf57d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pcsx2/GS/Renderers/HW/GSTextureCache.cpp
Original file line number Diff line number Diff line change
@@ -1039,6 +1039,12 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const bool is_color, const
if (!src)
src = FindSourceInMap(TEX0, TEXA, psm_s, clut, gpu_clut, compare_lod, region, is_fixed_tex0, m_src.m_map[lookup_page]);

if (src && src->m_from_target && GSConfig.UserHacks_TextureInsideRt >= GSTextureInRtMode::MergeTargets && GSLocalMemory::GetUnwrappedEndBlockAddress(TEX0.TBP0, TEX0.TBW, TEX0.PSM, r) > src->m_from_target->m_end_block)
{
m_src.RemoveAt(src);
src = nullptr;
}

Target* dst = nullptr;
bool half_right = false;
int x_offset = 0;

0 comments on commit ddaf57d

Please sign in to comment.