From da3791e9ce36da977e96452c3fc4188cacb2a9a8 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 5 Jun 2025 11:17:46 +0200 Subject: [PATCH] randr: re-export RRProviderCreate() for Nvidia legacy NVidia's proprietary driver does it's own randr implementation (why ?) and needs this function for this. Signed-off-by: Enrico Weigelt, metux IT consult --- randr/randrstr.h | 12 ++++++++++++ randr/randrstr_priv.h | 11 ----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/randr/randrstr.h b/randr/randrstr.h index b89fb03d2..82a7f914e 100644 --- a/randr/randrstr.h +++ b/randr/randrstr.h @@ -710,6 +710,18 @@ RRTransformPtr RRCrtcGetTransform(RRCrtcPtr crtc); _X_EXPORT /* just for Nvidia legacy */ void RRCrtcDetachScanoutPixmap(RRCrtcPtr crtc); +/* + * Create / allocate new provider structure + * + * @param pScreen the screen the provider belongs to + * @param name name of the provider (counted string) + * @param nameLen size of the provider name + * @return new provider structure, or NULL on failure + */ +_X_EXPORT /* just for Nvidia legacy */ +RRProviderPtr RRProviderCreate(ScreenPtr pScreen, const char *name, + int nameLen); + #endif /* _RANDRSTR_H_ */ /* diff --git a/randr/randrstr_priv.h b/randr/randrstr_priv.h index 8afbbee92..b61f94b32 100644 --- a/randr/randrstr_priv.h +++ b/randr/randrstr_priv.h @@ -381,17 +381,6 @@ Bool RRProviderInit(void); */ void RRProviderInitErrorValue(void); -/* - * Create / allocate new provider structure - * - * @param pScreen the screen the provider belongs to - * @param name name of the provider (counted string) - * @param nameLen size of the provider name - * @return new provider structure, or NULL on failure - */ -RRProviderPtr RRProviderCreate(ScreenPtr pScreen, const char *name, - int nameLen); - /* * Set provider capabilities field *