From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Vsu-0005xx-NL for qemu-devel@nongnu.org; Fri, 09 Jan 2015 04:29:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9Vsq-00016W-Er for qemu-devel@nongnu.org; Fri, 09 Jan 2015 04:29:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Vsq-00015u-7c for qemu-devel@nongnu.org; Fri, 09 Jan 2015 04:29:32 -0500 From: Gerd Hoffmann Date: Fri, 9 Jan 2015 10:28:33 +0100 Message-Id: <1420795717-28966-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1420795717-28966-1-git-send-email-kraxel@redhat.com> References: <1420795717-28966-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 4/8] ui/vnc: Support shared surface for most pixman formats List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori From: Benjamin Herrenschmidt At least all the ones I've tested. We make the assumption that pixman is going to be better at conversion than we are. Signed-off-by: Benjamin Herrenschmidt [ kraxel: just hook up qemu_pixman_check_format ] Signed-off-by: Gerd Hoffmann --- ui/vnc.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 5707015..0385160 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -2942,13 +2942,14 @@ static void vnc_listen_websocket_read(void *opaque) #endif /* CONFIG_VNC_WS */ static const DisplayChangeListenerOps dcl_ops = { - .dpy_name = "vnc", - .dpy_refresh = vnc_refresh, - .dpy_gfx_copy = vnc_dpy_copy, - .dpy_gfx_update = vnc_dpy_update, - .dpy_gfx_switch = vnc_dpy_switch, - .dpy_mouse_set = vnc_mouse_set, - .dpy_cursor_define = vnc_dpy_cursor_define, + .dpy_name = "vnc", + .dpy_refresh = vnc_refresh, + .dpy_gfx_copy = vnc_dpy_copy, + .dpy_gfx_update = vnc_dpy_update, + .dpy_gfx_switch = vnc_dpy_switch, + .dpy_gfx_check_format = qemu_pixman_check_format, + .dpy_mouse_set = vnc_mouse_set, + .dpy_cursor_define = vnc_dpy_cursor_define, }; void vnc_display_init(DisplayState *ds) -- 1.8.3.1