TextureCacheBase: De-uglify hybrid EFB copies (documentation needs updating though)

TextureCacheBase: Fixed dynamic EFB copies being set to normal textures.
This commit is contained in:
NeoBrainX
2011-12-27 00:05:26 +01:00
committed by NeoBrainX
parent 67129404dd
commit 3b38295cbd
5 changed files with 27 additions and 33 deletions

View File

@ -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();