diff options
| author | Markus Wick <markus+github@selfnet.de> | 2015-01-27 09:42:15 +0100 |
|---|---|---|
| committer | Markus Wick <markus+github@selfnet.de> | 2015-01-27 09:42:15 +0100 |
| commit | 43605f87166cc4bc5e76cec016076aeb6103e24f (patch) | |
| tree | c1e741a89e03fc6b4e0256c179f69b91829e76a4 /Source/Core/VideoCommon/TextureCacheBase.h | |
| parent | 8eda3ca844ca9b05682ec57aa3be2cbe07e19d28 (diff) | |
| parent | 6659c15bedd4add4bd536394900e74ab6b7d6648 (diff) | |
Merge pull request #1948 from magumagu/remove-efb-cache
Remove EFB to RAM cache, and simplify code.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.h')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.h b/Source/Core/VideoCommon/TextureCacheBase.h index 52f9e04e16..1d4ebe9ba7 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.h +++ b/Source/Core/VideoCommon/TextureCacheBase.h @@ -20,13 +20,6 @@ struct VideoConfig; class TextureCache { public: - enum TexCacheEntryType - { - TCET_NORMAL, - TCET_EC_VRAM, // EFB copy which sits in VRAM and is ready to be used - TCET_EC_DYNAMIC, // EFB copy which sits in RAM and needs to be decoded before being used - }; - struct TCacheEntryConfig { TCacheEntryConfig() : width(0), height(0), levels(1), layers(1), rendertarget(false) {} @@ -61,8 +54,6 @@ public: u64 hash; u32 format; - enum TexCacheEntryType type; - unsigned int native_width, native_height; // Texture dimensions from the GameCube's point of view unsigned int native_levels; @@ -104,7 +95,7 @@ public: bool OverlapsMemoryRange(u32 range_address, u32 range_size) const; - bool IsEfbCopy() { return (type == TCET_EC_VRAM || type == TCET_EC_DYNAMIC); } + bool IsEfbCopy() { return config.rendertarget; } }; virtual ~TextureCache(); // needs virtual for DX11 dtor @@ -119,7 +110,6 @@ public: static void InvalidateRange(u32 start_address, u32 size); static void MakeRangeDynamic(u32 start_address, u32 size); static void ClearRenderTargets(); // currently only used by OGL - static bool Find(u32 start_address, u64 hash); virtual TCacheEntryBase* CreateTexture(const TCacheEntryConfig& config) = 0; |
