console: add support for dmabufs
commit4133fa711f37f0db303bf5aac03ea31b5be6ac1d
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 10 Oct 2017 13:54:48 +0000 (10 15:54 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 17 Oct 2017 08:25:42 +0000 (17 10:25 +0200)
tree61059c0bc0d3a77083f0fd25dffd632f0d52b8c8
parentc5bbcaa4b7c0f8a322bebe9ec563560178a68b55
console: add support for dmabufs

This patch adds support for dma-bufs to the qemu console interfaces.
It adds a new "struct QemuDmaBuf" to represent a dmabuf with accociated
metatdata (size, format).  It adds three functions (and
DisplayChangeListenerOps operations) to set a dma-buf as display
scanout, as cursor and to release a dmabuf.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20171010135453.6704-2-kraxel@redhat.com
include/qemu/typedefs.h
include/ui/console.h
ui/console.c