@samitouri / QOSamiQemu / commits / 5c520d976a

ati-vga: Also switch mode on HW cursor enable bit change

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 <balaton@eik.bme.hu> Tested-by: Chad Jablonski <chad@jablonski.xyz> Reviewed-by: Chad Jablonski <chad@jablonski.xyz> Message-ID: <ad3f415749178984c764f4ba810c663d1299ddfd.1774110169.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

BALATON Zoltan committed Mar 21, 2026 at 17:30 UTC 5c520d976ae402c949a944519ad4d69754175eb8
1 file changed +1
hw/display/ati.c
+1
@@ -617,6 +617,7 @@ static void ati_mm_write(void *opaque, hwaddr addr,
617 ati_reg_write_offs(&s->regs.crtc_gen_cntl,
618 addr - CRTC_GEN_CNTL, data, size);
619 if ((val & CRTC2_CUR_EN) != (s->regs.crtc_gen_cntl & CRTC2_CUR_EN)) {
620 + ati_vga_switch_mode(s);
621 if (s->cursor_guest_mode) {
622 s->vga.force_shadow = !!(s->regs.crtc_gen_cntl & CRTC2_CUR_EN);
623 } else {