From b8d22a1306238678d8392be03ae674455e433d93 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 2 May 2024 16:53:04 +0200 Subject: [PATCH] (submit/miext-extinit) damageext: unexport noDamageExtension field This field isn't used by any drivers, and also better belongs into the corresponding extension instead of OS adaption layer. Signed-off-by: Enrico Weigelt, metux IT consult --- damageext/damageext.c | 2 ++ include/extinit.h | 4 ---- include/extinit_priv.h | 1 + os/utils.c | 4 ---- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/damageext/damageext.c b/damageext/damageext.c index 733491c40..192d2e562 100644 --- a/damageext/damageext.c +++ b/damageext/damageext.c @@ -57,6 +57,8 @@ static DevPrivateKeyRec DamageClientPrivateKeyRec; #define DamageClientPrivateKey (&DamageClientPrivateKeyRec) +Bool noDamageExtension = FALSE; + static void DamageNoteCritical(ClientPtr pClient) { diff --git a/include/extinit.h b/include/extinit.h index a92aef935..d68516196 100644 --- a/include/extinit.h +++ b/include/extinit.h @@ -57,10 +57,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. extern _X_EXPORT Bool noCompositeExtension; #endif -#ifdef DAMAGE -extern _X_EXPORT Bool noDamageExtension; -#endif - #if defined(DBE) extern _X_EXPORT Bool noDbeExtension; #endif diff --git a/include/extinit_priv.h b/include/extinit_priv.h index 186fe8ad2..2f0c8b31a 100644 --- a/include/extinit_priv.h +++ b/include/extinit_priv.h @@ -8,6 +8,7 @@ #include "extinit.h" +extern Bool noDamageExtension; extern Bool noGEExtension; void CompositeExtensionInit(void); diff --git a/os/utils.c b/os/utils.c index 6db344403..73f57eab9 100644 --- a/os/utils.c +++ b/os/utils.c @@ -125,10 +125,6 @@ Bool noTestExtensions; #ifdef COMPOSITE Bool noCompositeExtension = FALSE; #endif - -#ifdef DAMAGE -Bool noDamageExtension = FALSE; -#endif #ifdef DBE Bool noDbeExtension = FALSE; #endif