This does nothing for most drivers but works around issue and fixes output with the Solaris R128 driver that only sets display parameters after enabling CRT controller which we would miss otherwise.
Signed-off-by: BALATON Zoltan <[email protected]> Tested-by: Chad Jablonski <[email protected]> Reviewed-by: Chad Jablonski <[email protected]> --- hw/display/ati.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/display/ati.c b/hw/display/ati.c index c165434938..8286f67c1c 100644 --- a/hw/display/ati.c +++ b/hw/display/ati.c @@ -632,6 +632,7 @@ static void ati_mm_write(void *opaque, hwaddr addr, ati_reg_write_offs(&s->regs.crtc_gen_cntl, addr - CRTC_GEN_CNTL, data, size); if ((val & CRTC2_CUR_EN) != (s->regs.crtc_gen_cntl & CRTC2_CUR_EN)) { + ati_vga_switch_mode(s); if (s->cursor_guest_mode) { s->vga.force_shadow = !!(s->regs.crtc_gen_cntl & CRTC2_CUR_EN); } else { -- 2.41.3
