diff --git a/dri3/dri3.h b/dri3/dri3.h index bd17522b0..fc76908e1 100644 --- a/dri3/dri3.h +++ b/dri3/dri3.h @@ -49,11 +49,11 @@ typedef PixmapPtr (*dri3_pixmap_from_fd_proc) (ScreenPtr screen, typedef PixmapPtr (*dri3_pixmap_from_fds_proc) (ScreenPtr screen, CARD8 num_fds, - int *fds, + const int *fds, CARD16 width, CARD16 height, - CARD32 *strides, - CARD32 *offsets, + const CARD32 *strides, + const CARD32 *offsets, CARD8 depth, CARD8 bpp, CARD64 modifier); diff --git a/dri3/dri3_priv.h b/dri3/dri3_priv.h index f0400a78a..168b87cbb 100644 --- a/dri3/dri3_priv.h +++ b/dri3/dri3_priv.h @@ -79,8 +79,10 @@ int dri3_open(ClientPtr client, ScreenPtr screen, RRProviderPtr provider, int *fd); int -dri3_pixmap_from_fds(PixmapPtr *ppixmap, ScreenPtr screen, CARD8 num_fds, int *fds, - CARD16 width, CARD16 height, CARD32 *strides, CARD32 *offsets, +dri3_pixmap_from_fds(PixmapPtr *ppixmap, ScreenPtr screen, + CARD8 num_fds, const int *fds, + CARD16 width, CARD16 height, + const CARD32 *strides, const CARD32 *offsets, CARD8 depth, CARD8 bpp, CARD64 modifier); int diff --git a/dri3/dri3_screen.c b/dri3/dri3_screen.c index 8d3744977..58f5ff71d 100644 --- a/dri3/dri3_screen.c +++ b/dri3/dri3_screen.c @@ -63,9 +63,9 @@ dri3_open(ClientPtr client, ScreenPtr screen, RRProviderPtr provider, int *fd) int dri3_pixmap_from_fds(PixmapPtr *ppixmap, ScreenPtr screen, - CARD8 num_fds, int *fds, + CARD8 num_fds, const int *fds, CARD16 width, CARD16 height, - CARD32 *strides, CARD32 *offsets, + const CARD32 *strides, const CARD32 *offsets, CARD8 depth, CARD8 bpp, CARD64 modifier) { dri3_screen_priv_ptr ds = dri3_screen_priv(screen); diff --git a/glamor/glamor.h b/glamor/glamor.h index b0b23d3a3..5d0659099 100644 --- a/glamor/glamor.h +++ b/glamor/glamor.h @@ -264,11 +264,11 @@ extern _X_EXPORT struct gbm_bo *glamor_gbm_bo_from_pixmap(ScreenPtr screen, * */ extern _X_EXPORT PixmapPtr glamor_pixmap_from_fds(ScreenPtr screen, CARD8 num_fds, - int *fds, + const int *fds, CARD16 width, CARD16 height, - CARD32 *strides, - CARD32 *offsets, + const CARD32 *strides, + const CARD32 *offsets, CARD8 depth, CARD8 bpp, uint64_t modifier); diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index 091d51d98..3d102ad22 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -514,9 +514,9 @@ gbm_format_for_depth(CARD8 depth) _X_EXPORT PixmapPtr glamor_pixmap_from_fds(ScreenPtr screen, - CARD8 num_fds, int *fds, + CARD8 num_fds, const int *fds, CARD16 width, CARD16 height, - CARD32 *strides, CARD32 *offsets, + const CARD32 *strides, const CARD32 *offsets, CARD8 depth, CARD8 bpp, uint64_t modifier) { diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c index 6ba716263..339420e05 100644 --- a/hw/xwayland/xwayland-glamor.c +++ b/hw/xwayland/xwayland-glamor.c @@ -647,10 +647,10 @@ xwl_dri3_open_client(ClientPtr client, _X_EXPORT PixmapPtr glamor_pixmap_from_fds(ScreenPtr screen, - CARD8 num_fds, int *fds, - CARD16 width, CARD16 height, - CARD32 *strides, CARD32 *offsets, - CARD8 depth, CARD8 bpp, uint64_t modifier) + CARD8 num_fds, const int *fds, + CARD16 width, CARD16 height, + const CARD32 *strides, const CARD32 *offsets, + CARD8 depth, CARD8 bpp, uint64_t modifier) { struct xwl_screen *xwl_screen = xwl_screen_get(screen); struct gbm_bo *bo = NULL;