Port PR 2800 stale VRAM buffer fix

This commit is contained in:
izzy2lost
2026-04-08 02:34:52 -04:00
parent 2389e06ee7
commit 28e6ac2942
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -2353,6 +2353,9 @@ static void surface_download(NV2AState *d, SurfaceBinding *surface, bool force)
memory_region_set_client_dirty(d->vram, surface->vram_addr,
surface->pitch * surface->height,
DIRTY_MEMORY_NV2A_TEX);
memory_region_set_client_dirty(d->vram, surface->vram_addr,
surface->pitch * surface->height,
DIRTY_MEMORY_NV2A);
surface->download_pending = false;
surface->draw_dirty = false;
+3
View File
@@ -632,6 +632,9 @@ static void download_surface(NV2AState *d, SurfaceBinding *surface, bool force)
memory_region_set_client_dirty(d->vram, surface->vram_addr,
surface->pitch * surface->height,
DIRTY_MEMORY_NV2A_TEX);
memory_region_set_client_dirty(d->vram, surface->vram_addr,
surface->pitch * surface->height,
DIRTY_MEMORY_NV2A);
surface->download_pending = false;
surface->draw_dirty = false;