All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
To: kraxel@redhat.com, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 06/14] tcx: ensure tcx_set_dirty() also invalidates the 24-bit plane and cplane
Date: Wed,  5 Apr 2017 09:35:21 +0100	[thread overview]
Message-ID: <1491381329-3995-7-git-send-email-mark.cave-ayland@ilande.co.uk> (raw)
In-Reply-To: <1491381329-3995-1-git-send-email-mark.cave-ayland@ilande.co.uk>

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
---
 hw/display/tcx.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/hw/display/tcx.c b/hw/display/tcx.c
index d24466f..6817bd2 100644
--- 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,
-- 
1.7.10.4

  parent reply	other threads:[~2017-04-05  8:36 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-05  8:35 [Qemu-devel] [PATCH 00/14] TCX/CG3 adapter cleanups Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 01/14] cg3: remove TARGET_PAGE_SIZE rounding on dirty page detection Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 02/14] cg3: fix up size parameter for memory_region_get_dirty() Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 03/14] cg3: remove unused width and height variables Mark Cave-Ayland
2017-04-07 19:25   ` Philippe Mathieu-Daudé
2017-04-15 10:54   ` Richard Henderson
2017-04-18 14:38     ` Mark Cave-Ayland
2017-04-18 14:55       ` Richard Henderson
2017-04-21  7:00         ` Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 04/14] cg3: switch to load_image_mr() and remove prom-addr hack Mark Cave-Ayland
2017-04-15 14:39   ` Philippe Mathieu-Daudé
2017-04-05  8:35 ` [Qemu-devel] [PATCH 05/14] tcx: alter tcx_set_dirty() to accept address and length parameters Mark Cave-Ayland
2017-04-15 14:27   ` Philippe Mathieu-Daudé
2017-04-18 14:46     ` Mark Cave-Ayland
2017-04-05  8:35 ` Mark Cave-Ayland [this message]
2017-04-05  8:35 ` [Qemu-devel] [PATCH 07/14] tcx: alter tcx24_check_dirty() " Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 08/14] tcx: alter tcx24_reset_dirty() " Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 09/14] tcx: remove page24 and cpage from tcx24_update_display() Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 10/14] tcx: remove TARGET_PAGE_SIZE from tcx_update_display() Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 11/14] tcx: remove TARGET_PAGE_SIZE from tcx24_update_display() Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 12/14] tcx: remove primitives for non-32-bit surfaces Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 13/14] tcx: use tcx_set_dirty() for accelerated ops Mark Cave-Ayland
2017-04-05  8:35 ` [Qemu-devel] [PATCH 14/14] tcx: switch to load_image_mr() and remove prom_addr hack Mark Cave-Ayland
2017-04-15 14:38   ` Philippe Mathieu-Daudé
2017-04-07 10:28 ` [Qemu-devel] [PATCH 00/14] TCX/CG3 adapter cleanups Gerd Hoffmann
2017-04-07 10:37   ` Mark Cave-Ayland
2017-04-07 11:00     ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1491381329-3995-7-git-send-email-mark.cave-ayland@ilande.co.uk \
    --to=mark.cave-ayland@ilande.co.uk \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.