From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Vt5-0006G0-3p for qemu-devel@nongnu.org; Fri, 09 Jan 2015 04:29:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9Vsq-00016K-EO for qemu-devel@nongnu.org; Fri, 09 Jan 2015 04:29:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9Vsq-000163-7e for qemu-devel@nongnu.org; Fri, 09 Jan 2015 04:29:32 -0500 From: Gerd Hoffmann Date: Fri, 9 Jan 2015 10:28:35 +0100 Message-Id: <1420795717-28966-7-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 6/8] ui/gtk: 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/gtk.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/ui/gtk.c b/ui/gtk.c index 0385757..6a81076 100644 --- a/ui/gtk.c +++ b/ui/gtk.c @@ -1654,12 +1654,13 @@ static GtkWidget *gd_create_menu_machine(GtkDisplayState *s) } static const DisplayChangeListenerOps dcl_ops = { - .dpy_name = "gtk", - .dpy_gfx_update = gd_update, - .dpy_gfx_switch = gd_switch, - .dpy_refresh = gd_refresh, - .dpy_mouse_set = gd_mouse_set, - .dpy_cursor_define = gd_cursor_define, + .dpy_name = "gtk", + .dpy_gfx_update = gd_update, + .dpy_gfx_switch = gd_switch, + .dpy_gfx_check_format = qemu_pixman_check_format, + .dpy_refresh = gd_refresh, + .dpy_mouse_set = gd_mouse_set, + .dpy_cursor_define = gd_cursor_define, }; static GSList *gd_vc_gfx_init(GtkDisplayState *s, VirtualConsole *vc, -- 1.8.3.1