summaryrefslogtreecommitdiffstats
path: root/hw/display/ati_regs.h
diff options
context:
space:
mode:
authorBALATON Zoltan2019-06-24 11:50:12 +0200
committerGerd Hoffmann2019-06-28 10:49:36 +0200
commit866ad5f5ff620078f88183aa254f7b02727e6aa3 (patch)
tree3384afb24959939b41be9eca392a92122f2d1fa2 /hw/display/ati_regs.h
parentati-vga: Implement DDC and EDID info from monitor (diff)
downloadqemu-866ad5f5ff620078f88183aa254f7b02727e6aa3.tar.gz
qemu-866ad5f5ff620078f88183aa254f7b02727e6aa3.tar.xz
qemu-866ad5f5ff620078f88183aa254f7b02727e6aa3.zip
ati-vga: Fixes to offset and pitch registers
Fix bit masks of registers for offset and pitch and also handle default values for both R128P and RV100. This improves picture a bit but does not resolve all problems yet so there might be some more bugs somewhere. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Message-id: 20190624100005.7A1CA746395@zero.eik.bme.hu Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/ati_regs.h')
-rw-r--r--hw/display/ati_regs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/display/ati_regs.h b/hw/display/ati_regs.h
index 1ec3498b73..d7155c93d5 100644
--- a/hw/display/ati_regs.h
+++ b/hw/display/ati_regs.h
@@ -370,8 +370,8 @@
#define BRUSH_SOLIDCOLOR 0x00000d00
/* DP_GUI_MASTER_CNTL bit constants */
-#define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000
-#define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000
+#define GMC_SRC_PITCH_OFFSET_CNTL 0x00000001
+#define GMC_DST_PITCH_OFFSET_CNTL 0x00000002
#define GMC_SRC_CLIP_DEFAULT 0x00000000
#define GMC_DST_CLIP_DEFAULT 0x00000000
#define GMC_BRUSH_SOLIDCOLOR 0x000000d0