ati-vga: Attempt to handle CRTC offset not exact multiple of stride
commitc026350a842a02c225e3ecbcda5c298e70e37a62
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 11 Aug 2019 21:14:53 +0000 (11 23:14 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 21 Aug 2019 08:56:27 +0000 (21 10:56 +0200)
tree492bb67e1e60af1feb29f7d049c1a2eea66a207c
parent747d7ad231a0955991e179deb482ce94376f1e17
ati-vga: Attempt to handle CRTC offset not exact multiple of stride

MacOS uses non-0 offset so it needs this and the resulting
vbe_start_addr seems correct but picture is still broken with OpenBIOS
after FCode runs but that maybe due to firmware problems now. After
boot, picture is now correct.

It also occured to me that these CRTC regs are also present in VGA so
I wonder if they should be shared in case some drivers try to poke
them via VGA regs or these are a separate set of regs for extended
mode. Added a comment noting this but drivers I've tried so far
program the card accessing ati regs so I did not attempt to change it.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-id: 1c6fce457ef7e6f889e38dc0423791be92310a62.1565558093.git.balaton@eik.bme.hu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/ati.c