]> xenbits.xensource.com Git - seabios.git/commitdiff
vga: fix cirrus bios
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 25 Jun 2020 09:17:09 +0000 (11:17 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 25 Jun 2020 14:21:28 +0000 (10:21 -0400)
Little mistake, big effect.  The patch adding the ati driver broke
cirrus due to a missing "else", which effectively downgrades cirrus
to standard vga.

Fixes: 34b6ecc16074 ("vga: add atiext driver")
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
vgasrc/vgahw.h

index c774f4f2c6b7c8012096bac2f0ed1f2a58773f97..8b64660e5ef70d71b440013300bc6a63a5b9a05a 100644 (file)
@@ -36,7 +36,7 @@ static inline int vgahw_set_mode(struct vgamode_s *vmode_g, int flags) {
 static inline void vgahw_list_modes(u16 seg, u16 *dest, u16 *last) {
     if (CONFIG_VGA_CIRRUS)
         clext_list_modes(seg, dest, last);
-    if (CONFIG_VGA_ATI)
+    else if (CONFIG_VGA_ATI)
         ati_list_modes(seg, dest, last);
     else if (CONFIG_VGA_BOCHS)
         bochsvga_list_modes(seg, dest, last);