virtio-gpu: Add virtio_gpu_set_scanout_blob
commit32db3c63ae113da6ac06d65d1ffb764e0c357a6c
authorVivek Kasireddy <vivek.kasireddy@intel.com>
Wed, 26 May 2021 23:14:28 +0000 (26 16:14 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 27 May 2021 10:07:37 +0000 (27 12:07 +0200)
tree37177344fe1bb58b0f1defc94537a5296c7cc7c6
parent81cd9f71087b31d0fb231d3736a31262d232375e
virtio-gpu: Add virtio_gpu_set_scanout_blob

This API allows Qemu to set the blob allocated by the Guest as
the scanout buffer. If Opengl support is available, then the
scanout buffer would be submitted as a dmabuf to the UI; if not,
a pixman image is created from the scanout buffer and is
submitted to the UI via the display surface.

Based-on-patch-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
Message-Id: <20210526231429.1045476-14-vivek.kasireddy@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/trace-events
hw/display/virtio-gpu.c
include/hw/virtio/virtio-gpu-bswap.h