diff options
author | BALATON Zoltan <balaton@eik.bme.hu> | 2019-07-04 23:43:25 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2019-07-05 09:50:33 +0200 |
commit | 146dd326c1ff5869ba9e243e30325c44d696c996 (patch) | |
tree | ffc258e4161b24c4128dd121ea0f0fd2445b377f /hw/display/ati.c | |
parent | 584acf34cb05f16e13a46d666196a7583d232616 (diff) | |
download | qemu-146dd326c1ff5869ba9e243e30325c44d696c996.zip qemu-146dd326c1ff5869ba9e243e30325c44d696c996.tar.gz qemu-146dd326c1ff5869ba9e243e30325c44d696c996.tar.bz2 |
ati-vga: Fix setting offset together with pitch for r128pro
Turns out my last fix to this broke one case for Rage 128 Pro so
revert that part of previous patch. This now fixes the remaining
rendering problems for MorphOS which now can produce picture with
-device ati-vga (although it may not be optimised yet and video
overlay emulation is still known to be missing).
Fixes: 866ad5f5ff620078f88183aa254f7b02727e6aa3
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-id: da33261a841755691f698db8190c868df0c0d3ae.1562276605.git.balaton@eik.bme.hu
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/ati.c')
-rw-r--r-- | hw/display/ati.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/display/ati.c b/hw/display/ati.c index 590362e..a747c4c 100644 --- a/hw/display/ati.c +++ b/hw/display/ati.c @@ -689,7 +689,7 @@ static void ati_mm_write(void *opaque, hwaddr addr, break; case SRC_PITCH_OFFSET: if (s->dev_id == PCI_DEVICE_ID_ATI_RAGE128_PF) { - s->regs.src_offset = (data & 0x1fffff) << 4; + s->regs.src_offset = (data & 0x1fffff) << 5; s->regs.src_pitch = (data & 0x7fe00000) >> 21; s->regs.src_tile = data >> 31; } else { @@ -700,7 +700,7 @@ static void ati_mm_write(void *opaque, hwaddr addr, break; case DST_PITCH_OFFSET: if (s->dev_id == PCI_DEVICE_ID_ATI_RAGE128_PF) { - s->regs.dst_offset = (data & 0x1fffff) << 4; + s->regs.dst_offset = (data & 0x1fffff) << 5; s->regs.dst_pitch = (data & 0x7fe00000) >> 21; s->regs.dst_tile = data >> 31; } else { |