All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@gmail.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Alex Williamson <alex.williamson@redhat.com>,
	QEMU <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH 2/3] vfio/display: set dmabuf modifier field
Date: Wed, 22 May 2019 12:45:40 +0200	[thread overview]
Message-ID: <CAJ+F1C+7sMizD2gqOtz5HykXhL-3qKAOiMm+pOUPpTcVECQBgg@mail.gmail.com> (raw)
In-Reply-To: <20190522095821.15240-3-kraxel@redhat.com>

On Wed, May 22, 2019 at 12:05 PM Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> Fill the new QemuDmaBuf->modifier field properly from plane info.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>

> ---
>  hw/vfio/display.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/hw/vfio/display.c b/hw/vfio/display.c
> index a3d9c8f5beac..13969180b2dd 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);
> --
> 2.18.1
>
>


-- 
Marc-André Lureau


  reply	other threads:[~2019-05-22 10:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22  9:58 [Qemu-devel] [PATCH 0/3] add drm modifier support for dmabufs Gerd Hoffmann
2019-05-22  9:58 ` [Qemu-devel] [PATCH 1/3] console: add dmabuf modifier field Gerd Hoffmann
2019-05-22 10:45   ` Marc-André Lureau
2019-05-22  9:58 ` [Qemu-devel] [PATCH 2/3] vfio/display: set " Gerd Hoffmann
2019-05-22 10:45   ` Marc-André Lureau [this message]
2019-05-22  9:58 ` [Qemu-devel] [PATCH 3/3] egl-helpers: add dmabuf modifier support Gerd Hoffmann
2019-05-22 10:47   ` Marc-André Lureau
2019-05-22 11:30     ` Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ+F1C+7sMizD2gqOtz5HykXhL-3qKAOiMm+pOUPpTcVECQBgg@mail.gmail.com \
    --to=marcandre.lureau@gmail.com \
    --cc=alex.williamson@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.