Blame SOURCES/kvm-ui-vnc-derive-cmp_bytes-from-VNC_DIRTY_PIXELS_PER_BI.patch

619821
From 6eed761f1505348596f34c915c56e8a98ce7c3af Mon Sep 17 00:00:00 2001
619821
From: Gerd Hoffmann <kraxel@redhat.com>
619821
Date: Wed, 22 Feb 2017 12:36:20 +0100
619821
Subject: [PATCH 02/24] ui/vnc: derive cmp_bytes from VNC_DIRTY_PIXELS_PER_BIT
619821
MIME-Version: 1.0
619821
Content-Type: text/plain; charset=UTF-8
619821
Content-Transfer-Encoding: 8bit
619821
619821
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
619821
Message-id: <1487766986-6329-3-git-send-email-kraxel@redhat.com>
619821
Patchwork-id: 73973
619821
O-Subject: [RHEL-7.4 qemu-kvm PATCH 2/8] ui/vnc: derive cmp_bytes from VNC_DIRTY_PIXELS_PER_BIT
619821
Bugzilla: 1377977
619821
RH-Acked-by: Thomas Huth <thuth@redhat.com>
619821
RH-Acked-by: Marc-André Lureau <mlureau@redhat.com>
619821
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
619821
619821
From: Peter Lieven <pl@kamp.de>
619821
619821
this allows for setting VNC_DIRTY_PIXELS_PER_BIT to different
619821
values than 16 if desired.
619821
619821
Reviewed-by: Wenchao Xia <xiawenc@linux.vnet.ibm.com>
619821
Signed-off-by: Peter Lieven <pl@kamp.de>
619821
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
619821
(cherry picked from commit 6cd859aa8a7fb60fe6edb89e628cddfe25dfe186)
619821
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
619821
---
619821
 ui/vnc.c | 2 +-
619821
 1 file changed, 1 insertion(+), 1 deletion(-)
619821
619821
diff --git a/ui/vnc.c b/ui/vnc.c
619821
index 0c799ed..13fb34b 100644
619821
--- a/ui/vnc.c
619821
+++ b/ui/vnc.c
619821
@@ -2709,7 +2709,7 @@ static int vnc_refresh_server_surface(VncDisplay *vd)
619821
      * Check and copy modified bits from guest to server surface.
619821
      * Update server dirty map.
619821
      */
619821
-    cmp_bytes = 64;
619821
+    cmp_bytes = VNC_DIRTY_PIXELS_PER_BIT * VNC_SERVER_FB_BYTES;
619821
     if (cmp_bytes > vnc_server_fb_stride(vd)) {
619821
         cmp_bytes = vnc_server_fb_stride(vd);
619821
     }
619821
-- 
619821
1.8.3.1
619821