Invalidate the texture cache using the GPU thread when the CPU thread makes a request.

Fixes issue 6350.
This commit is contained in:
skidau
2013-06-08 11:28:54 +10:00
parent 3ff2a3a11a
commit 196d152ad7
3 changed files with 15 additions and 3 deletions

View File

@ -107,6 +107,8 @@ public:
static void CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat, unsigned int srcFormat,
const EFBRectangle& srcRect, bool isIntensity, bool scaleByHalf);
static void RequestInvalidateTextureCache();
protected:
TextureCache();
@ -118,7 +120,6 @@ private:
static PC_TexFormat LoadCustomTexture(u64 tex_hash, int texformat, unsigned int level, unsigned int& width, unsigned int& height);
static void DumpTexture(TCacheEntryBase* entry, unsigned int level);
typedef std::map<u32, TCacheEntryBase*> TexCache;
static TexCache textures;