diff mbox series

[1/3] console: add dmabuf modifier field.

Message ID 20190522095821.15240-2-kraxel@redhat.com (mailing list archive)
State New, archived
Headers show
Series add drm modifier support for dmabufs. | expand

Commit Message

Gerd Hoffmann May 22, 2019, 9:58 a.m. UTC
dmabufs can have a format modifier (DRM_FORMAT_MOD_*) which is used for
tiled layouts for example.  Add a field to QemuDmaBuf so we can carry
around that information.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 include/ui/console.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Marc-André Lureau May 22, 2019, 10:45 a.m. UTC | #1
On Wed, May 22, 2019 at 12:05 PM Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> dmabufs can have a format modifier (DRM_FORMAT_MOD_*) which is used for
> tiled layouts for example.  Add a field to QemuDmaBuf so we can carry
> around that information.
>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

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

> ---
>  include/ui/console.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/include/ui/console.h b/include/ui/console.h
> index fef900db76a5..f9816968487c 100644
> --- a/include/ui/console.h
> +++ b/include/ui/console.h
> @@ -175,6 +175,7 @@ typedef struct QemuDmaBuf {
>      uint32_t  height;
>      uint32_t  stride;
>      uint32_t  fourcc;
> +    uint64_t  modifier;
>      uint32_t  texture;
>      bool      y0_top;
>  } QemuDmaBuf;
> --
> 2.18.1
>
>
diff mbox series

Patch

diff --git a/include/ui/console.h b/include/ui/console.h
index fef900db76a5..f9816968487c 100644
--- a/include/ui/console.h
+++ b/include/ui/console.h
@@ -175,6 +175,7 @@  typedef struct QemuDmaBuf {
     uint32_t  height;
     uint32_t  stride;
     uint32_t  fourcc;
+    uint64_t  modifier;
     uint32_t  texture;
     bool      y0_top;
 } QemuDmaBuf;