summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureCacheBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.h')
-rw-r--r--Source/Core/VideoCommon/Src/TextureCacheBase.h18
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();