diff options
| author | degasus <wickmarkus@web.de> | 2016-12-26 20:54:37 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2016-12-26 22:10:21 +0100 |
| commit | 04f319066dd13917dc652855eec3614bc79c56f7 (patch) | |
| tree | bc0fba15e955a55a7292fce4463aeee069c2e2a2 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | d07d9ba499b837568a63175c8492070d15a42963 (diff) | |
TextureCache: Extract BP enum check to VideoCommon.
We have TOO many video backends.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index d26110b5d0..4d63e52a0a 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -862,9 +862,8 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::Load(const u32 stage) } void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat, u32 dstStride, - PEControl::PixelFormat srcFormat, - const EFBRectangle& srcRect, bool isIntensity, - bool scaleByHalf) + bool is_depth_copy, const EFBRectangle& srcRect, + bool isIntensity, bool scaleByHalf) { // Emulation methods: // @@ -936,7 +935,7 @@ void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFo unsigned int cbufid = -1; bool efbHasAlpha = bpmem.zcontrol.pixel_format == PEControl::RGBA6_Z24; - if (srcFormat == PEControl::Z24) + if (is_depth_copy) { switch (dstFormat) { @@ -1240,7 +1239,7 @@ void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFo if (copy_to_ram) { - CopyEFB(dst, dstFormat, tex_w, bytes_per_row, num_blocks_y, dstStride, srcFormat, srcRect, + CopyEFB(dst, dstFormat, tex_w, bytes_per_row, num_blocks_y, dstStride, is_depth_copy, srcRect, isIntensity, scaleByHalf); } else @@ -1321,7 +1320,7 @@ void TextureCacheBase::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFo entry->SetEfbCopy(dstStride); entry->is_custom_tex = false; - entry->FromRenderTarget(dst, srcFormat, srcRect, scaleByHalf, cbufid, colmat); + entry->FromRenderTarget(dst, is_depth_copy, srcRect, scaleByHalf, cbufid, colmat); u64 hash = entry->CalculateHash(); entry->SetHashes(hash, hash); |
