diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2017-06-26 12:06:50 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2017-11-17 22:11:29 -0600 |
| commit | 2cd9565b187806490a962f4d78e975e6fb9dc027 (patch) | |
| tree | 5b911996c78acbc849fe631fe59ce42e95f67a3f /Source/Core/VideoCommon/TextureCacheBase.h | |
| parent | 65cd085f9bb80531f5739807afffe837c7d2ffc1 (diff) | |
Add an additional flag fo 'XFB Copy'
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 40c1779fbb..53ab41a836 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -85,6 +85,7 @@ public: bool has_arbitrary_mips = false; // indicates that the mips in this texture are arbitrary // content, aren't just downscaled bool should_force_safe_hashing = false; // for XFB + bool is_xfb_copy = false; unsigned int native_width, native_height; // Texture dimensions from the GameCube's point of view @@ -137,11 +138,15 @@ public: other_entry->references.emplace(this); } + void SetXfbCopy(u32 stride); void SetEfbCopy(u32 stride); + void SetNotCopy(); bool OverlapsMemoryRange(u32 range_address, u32 range_size) const; bool IsEfbCopy() const { return is_efb_copy; } + bool IsCopy() const { return is_xfb_copy || is_efb_copy; } + u32 NumBlocksY() const; u32 BytesPerRow() const; |
