mirror of
https://github.com/qemu/qemu.git
synced 2024-12-12 05:03:42 +08:00
e86a93f554
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>
29 lines
665 B
C
29 lines
665 B
C
#include "qemu/osdep.h"
|
|
#include "hw/virtio/virtio-gpu.h"
|
|
|
|
bool virtio_gpu_have_udmabuf(void)
|
|
{
|
|
/* nothing (stub) */
|
|
return false;
|
|
}
|
|
|
|
void virtio_gpu_init_udmabuf(struct virtio_gpu_simple_resource *res)
|
|
{
|
|
/* nothing (stub) */
|
|
}
|
|
|
|
void virtio_gpu_fini_udmabuf(struct virtio_gpu_simple_resource *res)
|
|
{
|
|
/* nothing (stub) */
|
|
}
|
|
|
|
int virtio_gpu_update_dmabuf(VirtIOGPU *g,
|
|
uint32_t scanout_id,
|
|
struct virtio_gpu_simple_resource *res,
|
|
struct virtio_gpu_framebuffer *fb,
|
|
struct virtio_gpu_rect *r)
|
|
{
|
|
/* nothing (stub) */
|
|
return 0;
|
|
}
|