From 3ffa971337144b32f88f12260362f5cf1cec8623 Mon Sep 17 00:00:00 2001 From: rdenno Date: Sat, 31 Oct 2026 14:43:14 -0400 Subject: nx2: vdecsvc refreshes the GPU copy of each decoded frame (Yoshi demo) Co-Authored-By: Claude Opus 5.5 (cherry picked from commit 144b193c841a4b291e5eca065c94cbe82136a4b1) --- src/core/hle/service/nx2_gsv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/hle/service/nx2_gsv.h b/src/core/hle/service/nx2_gsv.h index 3e29076b8e..4731b35364 100644 --- a/src/core/hle/service/nx2_gsv.h +++ b/src/core/hle/service/nx2_gsv.h @@ -2801,6 +2801,10 @@ private: memory.WriteBlock(address + layout.chroma_offset, bytes.data() + layout.chroma_offset, layout.pitch * ((height + 1) / 2)); } + // The game samples the image on the GPU: drop the texture cache's copy of the old frame. + if (const auto device = Nvidia::Devices::Nx2GpuMemoryRegistry::Get().DeviceAddressOf(address)) { + system.GPU().InvalidateRegion(*device, layout.size); + } return {width, height}; } -- cgit v1.2.3