From 55caac3e0901426053b32b2b506149c9b171a5e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 19 Feb 2021 09:52:14 +0100 Subject: [PATCH 1/3] Only consider the actual PPGe texture in kernel ram reliable. It seems some Chinese patches like to allocate kernel space for textures. (On that note, we should probably allocate our texture elsewhere... in case it takes up too much space). --- Core/Util/PPGeDraw.cpp | 4 ++++ Core/Util/PPGeDraw.h | 3 +++ GPU/Common/TextureCacheCommon.cpp | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Core/Util/PPGeDraw.cpp b/Core/Util/PPGeDraw.cpp index 1beff411b8..e85590fa3d 100644 --- a/Core/Util/PPGeDraw.cpp +++ b/Core/Util/PPGeDraw.cpp @@ -197,6 +197,10 @@ static void EndVertexDataAndDraw(int prim) { WriteCmd(GE_CMD_PRIM, (prim << 16) | vertexCount); } +bool PPGeIsFontTextureAddress(u32 addr) { + return addr == atlasPtr; +} + static u32 __PPGeDoAlloc(u32 &size, bool fromTop, const char *name) { u32 ptr = kernelMemory.Alloc(size, fromTop, name); // Didn't get it. diff --git a/Core/Util/PPGeDraw.h b/Core/Util/PPGeDraw.h index 564f1e27ec..6e5fca6080 100644 --- a/Core/Util/PPGeDraw.h +++ b/Core/Util/PPGeDraw.h @@ -108,6 +108,9 @@ void PPGeScissorReset(); void PPGeNotifyFrame(); +// Could have returned the address directly I guess, but nothing out side of PPGe should actually use it so.. +bool PPGeIsFontTextureAddress(u32 addr); + class PPGeImage { public: PPGeImage(const std::string &pspFilename); diff --git a/GPU/Common/TextureCacheCommon.cpp b/GPU/Common/TextureCacheCommon.cpp index 91f54c06ff..2327f6dcab 100644 --- a/GPU/Common/TextureCacheCommon.cpp +++ b/GPU/Common/TextureCacheCommon.cpp @@ -33,6 +33,7 @@ #include "GPU/GPUCommon.h" #include "GPU/GPUInterface.h" #include "GPU/GPUState.h" +#include "Core/Util/PPGeDraw.h" #if defined(_M_SSE) #include @@ -505,7 +506,7 @@ TexCacheEntry *TextureCacheCommon::SetTexture() { WARN_LOG_REPORT_ONCE(clutUseRender, G3D, "Using texture with rendered CLUT: texfmt=%d, clutfmt=%d", gstate.getTextureFormat(), gstate.getClutPaletteFormat()); } - if (Memory::IsKernelAndNotVolatileAddress(texaddr)) { + if (PPGeIsFontTextureAddress(texaddr)) { // It's the builtin font texture. entry->status = TexCacheEntry::STATUS_RELIABLE; } else if (g_Config.bTextureBackoffCache) { From d8b1271f29d36c367b196a235a9a5e65bd092f61 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 28 Feb 2021 08:19:06 -0800 Subject: [PATCH 2/3] GPU: Dirty texparams when cropping a self-copy. If we used UV to limit the blit, we may need to do the blit again next time, so re-examine texture params. --- GPU/Common/FramebufferManagerCommon.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GPU/Common/FramebufferManagerCommon.cpp b/GPU/Common/FramebufferManagerCommon.cpp index f30a05bee5..12248f91ef 100644 --- a/GPU/Common/FramebufferManagerCommon.cpp +++ b/GPU/Common/FramebufferManagerCommon.cpp @@ -914,6 +914,9 @@ void FramebufferManagerCommon::CopyFramebufferForColorTexture(VirtualFramebuffer x += gstate_c.curTextureXOffset; y += gstate_c.curTextureYOffset; } + + // We'll have to reapply these next time since we cropped to UV. + gstate_c.Dirty(DIRTY_TEXTURE_PARAMS); } if (x < src->drawnWidth && y < src->drawnHeight && w > 0 && h > 0) { From f7ace3b8ee33e97e156f3b07f416301e885472c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 2 Mar 2021 21:50:51 +0100 Subject: [PATCH 3/3] Update version to 1.11.3 --- README.md | 3 +++ android/AndroidManifest.xml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5fcd0b4935..0a43ff4ffd 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,9 @@ If you want to download regularly updated builds for Android, Windows x86 and x6 For game compatibility, see [community compatibility feedback](https://report.ppsspp.org/games). +What's new in 1.11.3 +==================== +* Fix for graphics glitches in the on-screen keyboard What's new in 1.11.2 ==================== diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index cc8739cf29..ab50419b96 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -2,8 +2,8 @@ + android:versionCode="111030000" + android:versionName="1.11.3.0">