diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-07-07 17:07:14 +1000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-01-19 13:33:26 +0100 |
commit | fcf73af68ecb83dcb1d997c6b6a0c29989ebfea8 (patch) | |
tree | 27a2ca9f84eaec2a23c91505f3eef3760c5dd12d | |
parent | 0002a51889101a818c1b8328b2a95f284caa030f (diff) | |
download | qemu-fcf73af68ecb83dcb1d997c6b6a0c29989ebfea8.zip |
ui/gtk: Support shared surface for most pixman formats
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 <benh@kernel.crashing.org>
[ kraxel: just hook up qemu_pixman_check_format ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | ui/gtk.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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, |