From: notaz Date: Mon, 19 Jan 2026 01:19:05 +0000 (+0200) Subject: gpulib: init {x,y}{1,2} X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12fb51810263706cb7bb714eb9d2e81be76bb628;p=pcsx_rearmed.git gpulib: init {x,y}{1,2} based on nocash. Otherwise there's weird state during early boot where y0/y1 are 0 and check_mode_change() doesn't call pl_vout_set_mode() --- diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c index 04ffbf6e..70547e25 100644 --- a/plugins/gpulib/gpu.c +++ b/plugins/gpulib/gpu.c @@ -66,9 +66,12 @@ static noinline void do_reset(struct psx_gpu *gpu) gpu->status = 0x14802000; gpu->gp0 = 0; gpu->regs[3] = 1; + gpu->screen.src_x = gpu->screen.src_y = 0; gpu->screen.hres = gpu->screen.w = 256; gpu->screen.vres = gpu->screen.h = 240; gpu->screen.x = gpu->screen.y = 0; + gpu->screen.x1 = 0x200, gpu->screen.x2 = 0x200+256*10; + gpu->screen.y1 = 0x010, gpu->screen.y2 = 0x010+240; renderer_sync_ecmds(gpu->ex_regs); renderer_notify_screen_change(&gpu->screen); gpu_async_sync_ecmds(gpu);