X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpulib%2Fgpu.c;fp=plugins%2Fgpulib%2Fgpu.c;h=fec46882437dfe5461a9aa7ad408cf8c146975d4;hb=893f780e3ec8eb0b83fa4fc374c361ffffab0cff;hp=c84414418a32fbae99992cdd7158d57f9a3fd985;hpb=5aa9f158c9f135b5933d34857faa6e593fa9ed9b;p=pcsx_rearmed.git diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index c8441441..fec46882 100644 --- a/plugins/gpulib/gpu.c +++ b/plugins/gpulib/gpu.c @@ -447,9 +447,11 @@ static void finish_vram_transfer(int is_read) { if (is_read) gpu.status &= ~PSX_GPU_STATUS_IMG; - else + else { + gpu.state.fb_dirty = 1; renderer_update_caches(gpu.dma_start.x, gpu.dma_start.y, gpu.dma_start.w, gpu.dma_start.h, 0); + } } static void do_vram_copy(const uint32_t *params) @@ -598,6 +600,7 @@ static noinline int do_cmd_buffer(uint32_t *data, int count) break; } do_vram_copy(data + pos + 1); + vram_dirty = 1; pos += 4; continue; }