From a66f99515ae81c2ea04242267f6c23249c9f08b4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 7 Mar 2024 11:09:34 +0100 Subject: [PATCH] Revert "dix: unexport AttachOutputGPU() and DetachOutputGPU()" This reverts commit 1277bb7143b8c62842384d5947c35129c31a1e9f. Nvidia driver needs them for PRIME handling. Part-of: --- dix/screenint_priv.h | 3 --- include/screenint.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dix/screenint_priv.h b/dix/screenint_priv.h index 2d98d9ba9..87880e664 100644 --- a/dix/screenint_priv.h +++ b/dix/screenint_priv.h @@ -20,9 +20,6 @@ void RemoveGPUScreen(ScreenPtr pScreen); void AttachUnboundGPU(ScreenPtr pScreen, ScreenPtr newScreen); void DetachUnboundGPU(ScreenPtr unbound); -void AttachOutputGPU(ScreenPtr pScreen, ScreenPtr newScreen); -void DetachOutputGPU(ScreenPtr output); - void AttachOffloadGPU(ScreenPtr pScreen, ScreenPtr newScreen); void DetachOffloadGPU(ScreenPtr slave); diff --git a/include/screenint.h b/include/screenint.h index e136f31cf..fc313042d 100644 --- a/include/screenint.h +++ b/include/screenint.h @@ -53,6 +53,10 @@ typedef struct _PixmapFormat *PixmapFormatPtr; typedef struct _Visual *VisualPtr; typedef struct _Depth *DepthPtr; typedef struct _Screen *ScreenPtr; + +extern _X_EXPORT void AttachOutputGPU(ScreenPtr pScreen, ScreenPtr newScreen); +extern _X_EXPORT void DetachOutputGPU(ScreenPtr output); + typedef struct _ColormapRec *ColormapPtr; #endif /* SCREENINT_H */