mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-21 18:18:59 +02:00
TextureCache: Split efb2ram from efb2tex
This commit is contained in:
1 parent
d7d8704353
commit
dcdf8fd3ce
7 files changed
+54
-23
No files matched your search
@@ -1050,6 +1050,25 @@ void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFo
|
||||
|
||||
entry->FromRenderTarget(dst, dstFormat, dstStride, srcFormat, srcRect, isIntensity, scaleByHalf, cbufid, colmat);
|
||||
|
||||
if (g_ActiveConfig.bSkipEFBCopyToRam)
|
||||
{
|
||||
entry->Zero(dst);
|
||||
}
|
||||
else
|
||||
{
|
||||
g_texture_cache->CopyEFB(
|
||||
dst,
|
||||
entry->format,
|
||||
entry->native_width,
|
||||
entry->BytesPerRow(),
|
||||
entry->NumBlocksY(),
|
||||
entry->memory_stride,
|
||||
srcFormat,
|
||||
srcRect,
|
||||
isIntensity,
|
||||
scaleByHalf);
|
||||
}
|
||||
|
||||
u64 hash = entry->CalculateHash();
|
||||
entry->SetHashes(hash, hash);
|
||||
|
||||
|
||||
Reference in new issue
Block a user