diff options
author | Benjamin Herrenschmidt | 2014-07-07 02:28:39 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2014-12-16 15:14:42 +0100 |
commit | b9fd11b86779b1fe7fe2881c6e312a028e20e67c (patch) | |
tree | 5e4d75819c7e0afe8bd05b7e8b71a5e72f3fd5d3 /hw/display/cirrus_vga.c | |
parent | vga: Add mechanism to force the use of a shadow surface (diff) | |
download | qemu-b9fd11b86779b1fe7fe2881c6e312a028e20e67c.tar.gz qemu-b9fd11b86779b1fe7fe2881c6e312a028e20e67c.tar.xz qemu-b9fd11b86779b1fe7fe2881c6e312a028e20e67c.zip |
cirrus: Force use of shadow pixmap when HW cursor is enabled
The HW cursor cannot be painted on a shared surface. This fixes HW
cursor display in Windows NT 4.0 and Windows 98.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/cirrus_vga.c')
-rw-r--r-- | hw/display/cirrus_vga.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c index 27252646bc..686b06205c 100644 --- a/hw/display/cirrus_vga.c +++ b/hw/display/cirrus_vga.c @@ -1351,7 +1351,6 @@ static void cirrus_vga_write_sr(CirrusVGAState * s, uint32_t val) case 0x0d: // VCLK 2 case 0x0e: // VCLK 3 case 0x0f: // DRAM Control - case 0x12: // Graphics Cursor Attribute case 0x13: // Graphics Cursor Pattern Address case 0x14: // Scratch Register 2 case 0x15: // Scratch Register 3 @@ -1370,6 +1369,14 @@ static void cirrus_vga_write_sr(CirrusVGAState * s, uint32_t val) s->vga.sr_index, val); #endif break; + case 0x12: // Graphics Cursor Attribute + s->vga.sr[0x12] = val; + s->vga.force_shadow = !!(val & CIRRUS_CURSOR_SHOW); +#ifdef DEBUG_CIRRUS + printf("cirrus: cursor ctl SR12=%02x (force shadow: %d)\n", + val, s->vga.force_shadow); +#endif + break; case 0x17: // Configuration Readback and Extended Control s->vga.sr[s->vga.sr_index] = (s->vga.sr[s->vga.sr_index] & 0x38) | (val & 0xc7); |