From d0d4ced9d3caf183db6e5ad092561a6a5a586052 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 19 May 2025 16:05:50 +0200 Subject: [PATCH] glamor: unexport glamor_set_glvnd_vendor() Not used by any external drivers, so no need to keep it exported. Signed-off-by: Enrico Weigelt, metux IT consult --- glamor/glamor.h | 5 ----- glamor/glamor_priv.h | 4 ++++ hw/kdrive/ephyr/hostx.c | 2 +- hw/xwayland/xwayland-glamor.c | 2 ++ 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/glamor/glamor.h b/glamor/glamor.h index 7ec9c5f37..41abe564f 100644 --- a/glamor/glamor.h +++ b/glamor/glamor.h @@ -114,11 +114,6 @@ extern _X_EXPORT void glamor_clear_pixmap(PixmapPtr pixmap); extern _X_EXPORT void glamor_block_handler(ScreenPtr screen); -/* This function should be called after glamor_init, - * but before adding a glamor GLX provider */ -extern _X_EXPORT void glamor_set_glvnd_vendor(ScreenPtr screen, - const char *vendor); - extern _X_EXPORT PixmapPtr glamor_create_pixmap(ScreenPtr screen, int w, int h, int depth, unsigned int usage); extern _X_EXPORT Bool glamor_destroy_pixmap(PixmapPtr pixmap); diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h index 836803720..181506bb2 100644 --- a/glamor/glamor_priv.h +++ b/glamor/glamor_priv.h @@ -986,6 +986,10 @@ Bool glamor_set_pixmap_texture(PixmapPtr pixmap, unsigned int tex); void glamor_set_pixmap_type(PixmapPtr pixmap, glamor_pixmap_type_t type); +/* This function should be called after glamor_init, + * but before adding a glamor GLX provider */ +void glamor_set_glvnd_vendor(ScreenPtr screen, const char *vendor); + #include "glamor_utils.h" #if 0 diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index ff3565a72..46118126c 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c @@ -46,6 +46,7 @@ #undef GC #include "dix/input_priv.h" +#include "glamor/glamor_priv.h" #include "hostx.h" @@ -66,7 +67,6 @@ #include #include #include -#include "glamor.h" #include "glamor_glx_provider.h" #include "ephyr_glamor.h" #endif diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c index 6618a0a34..881776a94 100644 --- a/hw/xwayland/xwayland-glamor.c +++ b/hw/xwayland/xwayland-glamor.c @@ -25,6 +25,8 @@ #include +#include "glamor/glamor_priv.h" + #define MESA_EGL_NO_X11_HEADERS #define EGL_NO_X11 #include