[mutter] wayland/dma-buf: Fix offset, stride types



commit 1d144486d100f320d4c00149a3c1167a16fc6863
Author: Pekka Paalanen <pekka paalanen collabora com>
Date:   Mon Jun 17 13:53:36 2019 +0300

    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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]