]> xenbits.xensource.com Git - qemu-xen.git/commit
virtio-gpu: splitting one extended mode guest fb into n-scanouts
authorDongwon Kim <dongwon.kim@intel.com>
Thu, 4 Nov 2021 06:51:52 +0000 (23:51 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 5 Nov 2021 11:29:19 +0000 (12:29 +0100)
commite86a93f55463c088aa0b5260e915ffbf9f86c62b
treed5412f3e0057ee8a2dddc2732688b8a07ec59fc5
parentb1fd92137e4d485adeec8e9f292f928ff335b76c
virtio-gpu: splitting one extended mode guest fb into n-scanouts

When guest is running Linux/X11 with extended multiple displays mode enabled,
the guest shares one scanout resource each time containing whole surface
rather than sharing individual display output separately. This extended frame
is properly splited and rendered on the corresponding scanout surfaces but
not in case of blob-resource (zero copy).

This code change lets the qemu split this one large surface data into multiple
in case of blob-resource as well so that each sub frame then can be blitted
properly to each scanout.

v2: resizing qemu console in virtio_gpu_update_dmabuf to scanout's width and
    height

v3: updating stub function of virtio_gpu_update_dmabuf to match the type

Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Signed-off-by: Dongwon Kim <dongwon.kim@intel.com>
Message-Id: <20211104065153.28897-5-dongwon.kim@intel.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/virtio-gpu-udmabuf-stubs.c
hw/display/virtio-gpu-udmabuf.c
hw/display/virtio-gpu.c
include/hw/virtio/virtio-gpu.h
include/ui/console.h