From 81c1479ea9f235787d328d3ab10c13ecdb02f0cd Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 19 May 2025 17:01:31 +0200 Subject: [PATCH] glamor: unexport glamor_pixmap_from_fds() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- glamor/glamor.h | 25 ------------------------- glamor/glamor_priv.h | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/glamor/glamor.h b/glamor/glamor.h index c87a48d33..545e5174c 100644 --- a/glamor/glamor.h +++ b/glamor/glamor.h @@ -218,31 +218,6 @@ extern _X_EXPORT int glamor_name_from_pixmap(PixmapPtr pixmap, extern _X_EXPORT struct gbm_bo *glamor_gbm_bo_from_pixmap(ScreenPtr screen, PixmapPtr pixmap); -/* @glamor_pixmap_from_fds: Creates a pixmap to wrap a dma-buf fds. - * - * @screen: Current screen pointer. - * @num_fds: Number of fds to import - * @fds: The dma-buf fds to import. - * @width: The width of the buffers. - * @height: The height of the buffers. - * @stride: The stride of the buffers. - * @depth: The depth of the buffers. - * @bpp: The bpp of the buffers. - * @modifier: The modifier of the buffers. - * - * Returns a valid pixmap if the import succeeded, else NULL. - * */ -extern _X_EXPORT PixmapPtr glamor_pixmap_from_fds(ScreenPtr screen, - CARD8 num_fds, - const int *fds, - CARD16 width, - CARD16 height, - const CARD32 *strides, - const CARD32 *offsets, - CARD8 depth, - CARD8 bpp, - uint64_t modifier); - /* @glamor_pixmap_from_fd: Creates a pixmap to wrap a dma-buf fd. * * @screen: Current screen pointer. diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index b53d30e06..146a5c258 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -1017,6 +1017,31 @@ int glamor_fds_from_pixmap(ScreenPtr screen, PixmapPtr pixmap, int *fds, uint32_t *strides, uint32_t *offsets, uint64_t *modifier); +/* @glamor_pixmap_from_fds: Creates a pixmap to wrap a dma-buf fds. + * + * @screen: Current screen pointer. + * @num_fds: Number of fds to import + * @fds: The dma-buf fds to import. + * @width: The width of the buffers. + * @height: The height of the buffers. + * @stride: The stride of the buffers. + * @depth: The depth of the buffers. + * @bpp: The bpp of the buffers. + * @modifier: The modifier of the buffers. + * + * Returns a valid pixmap if the import succeeded, else NULL. + * */ +PixmapPtr glamor_pixmap_from_fds(ScreenPtr screen, + CARD8 num_fds, + const int *fds, + CARD16 width, + CARD16 height, + const CARD32 *strides, + const CARD32 *offsets, + CARD8 depth, + CARD8 bpp, + uint64_t modifier); + #include "glamor_utils.h" #if 0