diff options
| author | NeoBrainX <NeoBrainX@gmail.com> | 2011-12-27 00:05:26 +0100 |
|---|---|---|
| committer | NeoBrainX <NeoBrainX@googlemail.com> | 2012-01-31 18:09:35 +0100 |
| commit | 3b38295cbd08c98e7654e8715a88f4456cd61de5 (patch) | |
| tree | 8355b557f30603309f3b65194b347ae104c46571 /Source/Core/VideoCommon/Src/TextureCacheBase.h | |
| parent | 67129404dd8d6944ccc5ad1ae24ece33ae5c8bba (diff) | |
TextureCacheBase: De-uglify hybrid EFB copies (documentation needs updating though)
TextureCacheBase: Fixed dynamic EFB copies being set to normal textures.
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/Src/TextureCacheBase.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.h b/Source/Core/VideoCommon/Src/TextureCacheBase.h index 6062e5accb..88a76776df 100644 --- a/Source/Core/VideoCommon/Src/TextureCacheBase.h +++ b/Source/Core/VideoCommon/Src/TextureCacheBase.h @@ -14,6 +14,13 @@ class TextureCache { public: + enum EFBCopyState + { + EC_NO_COPY, + EC_VRAM_READY, + EC_VRAM_DYNAMIC, + }; + struct TCacheEntryBase { #define TEXHASH_INVALID 0 @@ -32,8 +39,9 @@ public: unsigned int virtual_width, virtual_height; // Texture dimensions from OUR point of view - for hires textures or scaled EFB copies // EFB copies - bool isRenderTarget; // copied from EFB - bool isDynamic; // Used for hybrid EFB copies to enable checks for CPU modifications, see CopyFromRenderTarget for details + enum EFBCopyState efbcopy_state; + + bool IsEfbCopy() { return efbcopy_state != EC_NO_COPY; } // used to delete textures which haven't been used for TEXTURE_KILL_THRESHOLD frames int frameCount; @@ -61,12 +69,6 @@ public: //this->pal_hash = pal_hash; } - void SetEFBCopyParameters(bool is_efb_copy, bool is_dynamic) - { - isRenderTarget = is_efb_copy; - isDynamic = is_dynamic; - } - virtual ~TCacheEntryBase(); |
