From: Gerd Hoffmann Date: Wed, 29 May 2019 07:21:42 +0000 (+0200) Subject: vfio/display: set dmabuf modifier field X-Git-Tag: v4.1.0-rc0~70^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a6c9d5da08e60eac3ec315abf243c2b7d2665089;p=thirdparty%2Fqemu.git vfio/display: set dmabuf modifier field Fill the new QemuDmaBuf->modifier field properly from plane info. Signed-off-by: Gerd Hoffmann Reviewed-by: Marc-André Lureau Acked-by: Alex Williamson Message-id: 20190529072144.26737-3-kraxel@redhat.com --- diff --git a/hw/vfio/display.c b/hw/vfio/display.c index 2c2d3e5b71d..a5a608c5b22 100644 --- a/hw/vfio/display.c +++ b/hw/vfio/display.c @@ -248,6 +248,7 @@ static VFIODMABuf *vfio_display_get_dmabuf(VFIOPCIDevice *vdev, dmabuf->buf.height = plane.height; dmabuf->buf.stride = plane.stride; dmabuf->buf.fourcc = plane.drm_format; + dmabuf->buf.modifier = plane.drm_format_mod; dmabuf->buf.fd = fd; if (plane_type == DRM_PLANE_TYPE_CURSOR) { vfio_display_update_cursor(dmabuf, &plane);