qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 7/7] exynox4210: port to test_and_clear instead of t


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 7/7] exynox4210: port to test_and_clear instead of test/reset
Date: Fri, 11 Oct 2013 16:20:50 +0200

From: Juan Quintela <address@hidden>

Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Juan Quintela <address@hidden>
---
 hw/display/exynos4210_fimd.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/hw/display/exynos4210_fimd.c b/hw/display/exynos4210_fimd.c
index 65cca1d..de2ba8b 100644
--- a/hw/display/exynos4210_fimd.c
+++ b/hw/display/exynos4210_fimd.c
@@ -1286,7 +1286,7 @@ static void exynos4210_fimd_update(void *opaque)
             fb_line_addr = w->mem_section.offset_within_region;

             for (line = 0; line < scrn_height; line++) {
-                is_dirty = memory_region_get_dirty(w->mem_section.mr,
+                is_dirty = 
memory_region_test_and_clear_dirty(w->mem_section.mr,
                             fb_line_addr, scrn_width, DIRTY_MEMORY_VGA);

                 if (s->invalidate || is_dirty) {
@@ -1302,9 +1302,6 @@ static void exynos4210_fimd_update(void *opaque)
                 fb_line_addr += inc_size;
                 is_dirty = false;
             }
-            memory_region_reset_dirty(w->mem_section.mr,
-                w->mem_section.offset_within_region,
-                w->fb_len, DIRTY_MEMORY_VGA);
             blend = true;
         }
     }
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]