projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9800b3c
)
tcx: ensure tcx_set_dirty() also invalidates the 24-bit plane and cplane
author
Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk>
Wed, 5 Apr 2017 08:02:46 +0000
(09:02 +0100)
committer
Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk>
Fri, 21 Apr 2017 08:02:04 +0000
(09:02 +0100)
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/tcx.c
patch
|
blob
|
history
diff --git
a/hw/display/tcx.c
b/hw/display/tcx.c
index d24466f59d934489f603afe3bf2d8faca2beb60e..6817bd207dcbe0c6be0e07313b93539b7885dece 100644
(file)
--- a/
hw/display/tcx.c
+++ b/
hw/display/tcx.c
@@
-96,6
+96,13
@@
typedef struct TCXState {
static void tcx_set_dirty(TCXState *s, ram_addr_t addr, int len)
{
memory_region_set_dirty(&s->vram_mem, addr, len);
+
+ if (s->depth == 24) {
+ memory_region_set_dirty(&s->vram_mem, s->vram24_offset + addr * 4,
+ len * 4);
+ memory_region_set_dirty(&s->vram_mem, s->cplane_offset + addr * 4,
+ len * 4);
+ }
}
static inline int tcx24_check_dirty(TCXState *s, ram_addr_t page,