diff options
author | BALATON Zoltan | 2019-08-11 23:14:53 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2019-08-21 10:56:27 +0200 |
commit | 8bb9a2b26d83a0989367e3688badb2914283827d (patch) | |
tree | ae5d6a79f9a0fd715bbdaae4d3c95e75f0ad4de3 /hw/display/ati_int.h | |
parent | ati-vga: Attempt to handle CRTC offset not exact multiple of stride (diff) | |
download | qemu-8bb9a2b26d83a0989367e3688badb2914283827d.tar.gz qemu-8bb9a2b26d83a0989367e3688badb2914283827d.tar.xz qemu-8bb9a2b26d83a0989367e3688badb2914283827d.zip |
ati-vga: Add limited support for big endian frame buffer aperture
Set frame buffer endianness according to requested endianness for
frame buffer apertures. We set frame buffer to big endian if any of
the two apertures are set to big endian. Using different endianness
for the two apertures is not implemented. This fixes inverted colors
with MacOS and Xorg frame buffer driver but some Linux drivers may
have endianness issues even on real hardware so this may not fix all
cases. MorphOS uses aper0 in LE, Linux uses aper0 in BE and MacOS uses
aper1 in BE but not sure about others or if MacOS also may need aper0
in which case we'll need a more complex fix but MacOS has other
problems yet so for now this might work.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-id: e2a7ec7af3fc30523213bcd27832ccad34323f2c.1565558093.git.balaton@eik.bme.hu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/ati_int.h')
-rw-r--r-- | hw/display/ati_int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/display/ati_int.h b/hw/display/ati_int.h index 31a1927b3e..5b4d3be1e6 100644 --- a/hw/display/ati_int.h +++ b/hw/display/ati_int.h @@ -39,6 +39,7 @@ typedef struct ATIVGARegs { uint32_t gpio_vga_ddc; uint32_t gpio_dvi_ddc; uint32_t gpio_monid; + uint32_t config_cntl; uint32_t crtc_h_total_disp; uint32_t crtc_h_sync_strt_wid; uint32_t crtc_v_total_disp; |