diff options
| author | JMC47 <JMC4789@gmail.com> | 2021-10-11 23:11:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 23:11:43 -0400 |
| commit | 6987ea059648d1e74cba4aec2e69bba5890239e1 (patch) | |
| tree | 0b7a3481319c9383d2b1c2146299b0db29a99a8a /Source/Core/VideoCommon/TextureCacheBase.h | |
| parent | 3bfb3fa52b05868f2b7f3f768a3d80f9c4991158 (diff) | |
| parent | edb66dab8469736e5c2954fd3ffb9704de4542c3 (diff) | |
Merge pull request #8350 from phire/fix-tmem
Extend Minimal TMEM cache implementation.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 0d456bfddf..12db848aa3 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -14,6 +14,7 @@ #include <unordered_set> #include <vector> +#include "Common/BitSet.h" #include "Common/CommonTypes.h" #include "Common/MathUtil.h" #include "VideoCommon/AbstractTexture.h" @@ -175,6 +176,7 @@ public: bool IsEfbCopy() const { return is_efb_copy; } bool IsCopy() const { return is_xfb_copy || is_efb_copy; } + u32 NumBlocksX() const; u32 NumBlocksY() const; u32 BytesPerRow() const; @@ -214,13 +216,11 @@ public: void Invalidate(); TCacheEntry* Load(const u32 stage); - static void InvalidateAllBindPoints() { valid_bind_points.reset(); } - static bool IsValidBindPoint(u32 i) { return valid_bind_points.test(i); } TCacheEntry* GetTexture(const int textureCacheSafetyColorSampleSize, TextureInfo& texture_info); TCacheEntry* GetXFBTexture(u32 address, u32 width, u32 height, u32 stride, MathUtil::Rectangle<int>* display_rect); - virtual void BindTextures(); + virtual void BindTextures(BitSet32 used_textures); void CopyRenderTargetToTexture(u32 dstAddr, EFBCopyFormat dstFormat, u32 width, u32 height, u32 dstStride, bool is_depth_copy, const MathUtil::Rectangle<int>& srcRect, bool isIntensity, |
