From 1d144486d100f320d4c00149a3c1167a16fc6863 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Mon, 17 Jun 2019 13:53:36 +0300 Subject: [PATCH] wayland/dma-buf: Fix offset, stride types These parameters are uint32_t in the Wayland protocol so make them uint32_t here as well. https://gitlab.gnome.org/GNOME/mutter/merge_requests/615 --- src/wayland/meta-wayland-dma-buf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c index e49fba9cf..8faba34cf 100644 --- a/src/wayland/meta-wayland-dma-buf.c +++ b/src/wayland/meta-wayland-dma-buf.c @@ -3,7 +3,7 @@ /* * Copyright (C) 2016 Red Hat Inc. * Copyright (C) 2017 Intel Corporation - * Copyright (C) 2018 DisplayLink (UK) Ltd. + * Copyright (C) 2018,2019 DisplayLink (UK) Ltd. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -59,8 +59,8 @@ struct _MetaWaylandDmaBufBuffer uint64_t drm_modifier; bool is_y_inverted; int fds[META_WAYLAND_DMA_BUF_MAX_FDS]; - int offsets[META_WAYLAND_DMA_BUF_MAX_FDS]; - unsigned int strides[META_WAYLAND_DMA_BUF_MAX_FDS]; + uint32_t offsets[META_WAYLAND_DMA_BUF_MAX_FDS]; + uint32_t strides[META_WAYLAND_DMA_BUF_MAX_FDS]; }; G_DEFINE_TYPE (MetaWaylandDmaBufBuffer, meta_wayland_dma_buf_buffer, G_TYPE_OBJECT);