OSDN Git Service

virtio-gpu/win32: allocate shareable 2d resources/images
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 6 Jun 2023 11:56:47 +0000 (15:56 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 27 Jun 2023 15:08:56 +0000 (17:08 +0200)
commit9462ff4695aa0d086fd63f7f2efafe5a05f2a243
tree599aacc2096bb851d2c9c7914881b328e5f69c4a
parent09b4c198b80c3f5c9c051bc8d8935668cdd206e5
virtio-gpu/win32: allocate shareable 2d resources/images

Allocate pixman bits for scanouts with qemu_win32_map_alloc() so we can
set a shareable handle on the associated display surface.

Note: when bits are provided to pixman_image_create_bits(), you must also give
the rowstride (the argument is ignored when bits is NULL)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230606115658.677673-11-marcandre.lureau@redhat.com>
hw/display/virtio-gpu.c
include/hw/virtio/virtio-gpu.h