]> git.proxmox.com Git - mirror_qemu.git/commit - ui/console.c
ui: Add dpy_gfx_check_format() to check backend shared surface support
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 7 Jul 2014 06:39:05 +0000 (16:39 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 19 Jan 2015 12:33:26 +0000 (13:33 +0100)
commit49743df399ca1029f4e22b52e9238d8e25c26bb2
tree6e1df21a5e3c5daccbbcc6b1b055459b9315a29d
parentaca7aaf6287b6a9f688c1b115a76fdc056565a7e
ui: Add dpy_gfx_check_format() to check backend shared surface support

This allows VGA to decide whether to use a shared surface based on
whether the UI backend supports the format or not. Backends that
don't provide the new callback fallback to native 32 bpp which
is equivalent to what was supported before.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
[ kraxel: fix console check, allow only 32 bpp as fallback ]

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/vga.c
include/ui/console.h
ui/console.c