From a6727f6e32a811ee56bd0138930462ccedf9e762 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 25 Apr 2024 04:38:04 +0300 Subject: [PATCH] bdk: display: update active regs on vsync for WinD Doing that on hsync can cause issues on disable without actually syncing to it. --- bdk/display/di.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bdk/display/di.c b/bdk/display/di.c index 0b3301f..b032db1 100644 --- a/bdk/display/di.c +++ b/bdk/display/di.c @@ -914,6 +914,9 @@ u32 *display_init_framebuffer_log() void display_activate_console() { + // Only update active registers on vsync. + DISPLAY_A(_DIREG(DC_CMD_REG_ACT_CONTROL)) = DISPLAY_A(_DIREG(DC_CMD_REG_ACT_CONTROL)) & ~WIN_D_ACT_HCNTR_SEL; + // Select window D. DISPLAY_A(_DIREG(DC_CMD_DISPLAY_WINDOW_HEADER)) = WINDOW_D_SELECT;