Revert "os: move out extension disable flags to corresponing extensions"

This reverts commit 356e18dcc6.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2022>
This commit is contained in:
Alan Coopersmith 2025-06-15 12:22:36 -07:00 committed by Marge Bot
parent 33a11228cf
commit b82110826f
20 changed files with 60 additions and 43 deletions

View File

@ -46,8 +46,6 @@ Equipment Corporation.
#include "windowstr.h"
#include "protocol-versions.h"
Bool noDPMSExtension = FALSE;
CARD16 DPMSPowerLevel = 0;
Bool DPMSDisabledSwitch = FALSE;
CARD32 DPMSStandbyTime = -1;

View File

@ -63,9 +63,6 @@ extern VisualPtr glxMatchVisual(ScreenPtr pScreen,
VisualPtr pVisual, ScreenPtr pMatchScreen);
#endif
/* Xinerama is disabled by default unless enabled via +xinerama */
Bool noPanoramiXExtension = TRUE;
/*
* PanoramiX data declarations
*/

View File

@ -67,8 +67,6 @@ in this Software without prior written authorization from the X Consortium.
// see: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1355
#undef CreateWindow
Bool noScreenSaverExtension = FALSE;
static int ScreenSaverEventBase = 0;
static Bool ScreenSaverHandle(ScreenPtr pScreen, int xstate, Bool force);

View File

@ -49,8 +49,6 @@ in this Software without prior written authorization from The Open Group.
#include "extinit.h"
#include "protocol-versions.h"
Bool noSecurityExtension = FALSE;
/* Extension stuff */
static int SecurityErrorBase; /* first Security error number */
static int SecurityEventBase; /* first Security event number */

View File

@ -48,8 +48,6 @@ in this Software without prior written authorization from The Open Group.
#include "extinit_priv.h"
#include "protocol-versions.h"
Bool noShapeExtension = FALSE;
typedef RegionPtr (*CreateDftPtr) (WindowPtr /* pWin */
);

View File

@ -101,8 +101,6 @@ typedef struct _ShmScrPrivateRec {
DestroyPixmapProcPtr destroyPixmap;
} ShmScrPrivateRec;
Bool noMITShmExtension = FALSE;
static PixmapPtr fbShmCreatePixmap(XSHM_CREATE_PIXMAP_ARGS);
static int ShmDetachSegment(void *value, XID shmseg);
static void ShmResetProc(ExtensionEntry *extEntry);

View File

@ -69,8 +69,6 @@
#include "xf86bigfontsrv.h"
Bool noXFree86BigfontExtension = FALSE;
static void XF86BigfontResetProc(ExtensionEntry *extEntry );
#ifdef MITSHM

View File

@ -34,8 +34,6 @@
#include "compint.h"
#endif
Bool noResExtension = FALSE;
/** @brief Holds fragments of responses for ConstructClientIds.
*
* note: there is no consideration for data alignment */

View File

@ -61,8 +61,6 @@
#include "inpututils.h"
#include "extinit_priv.h"
Bool noTestExtensions = FALSE;
/* XTest events are sent during request processing and may be interrupted by
* a SIGIO. We need a separate event list to avoid events overwriting each
* other's memory.

View File

@ -49,8 +49,6 @@
#include "compint.h"
#include "compositeext.h"
Bool noCompositeExtension = FALSE;
DevPrivateKeyRec CompScreenPrivateKeyRec;
DevPrivateKeyRec CompWindowPrivateKeyRec;
DevPrivateKeyRec CompSubwindowsPrivateKeyRec;

View File

@ -54,8 +54,6 @@ static DevPrivateKeyRec DamageClientPrivateKeyRec;
#define DamageClientPrivateKey (&DamageClientPrivateKeyRec)
Bool noDamageExtension = FALSE;
static void
DamageNoteCritical(ClientPtr pClient)
{

View File

@ -51,7 +51,6 @@
#include "xace.h"
/* GLOBALS */
Bool noDbeExtension = FALSE;
/* These are globals for use by DDX */
DevPrivateKeyRec dbeScreenPrivKeyRec;

View File

@ -42,8 +42,6 @@
#include "dix/dix_priv.h"
Bool noGlxExtension = FALSE;
ExtensionEntry *GlxExtensionEntry;
int GlxErrorBase = 0;
static CallbackListRec vndInitCallbackList;

View File

@ -51,11 +51,6 @@
#include "vidmodestr.h"
#endif
Bool noXFree86VidModeExtension = FALSE;
Bool noXFree86DGAExtension = FALSE;
Bool noXFree86DRIExtension = FALSE;
Bool noDRI2Extension = FALSE;
/*
* DDX-specific extensions.
*/

View File

@ -52,15 +52,11 @@ is" without express or implied warranty.
Bool xnestDoFullGeneration = TRUE;
/* Xnest doesn't support GLX yet, so we don't link it, but still have
satisfy DIX's symbol requirements */
#ifdef GLXEXT
void
GlxExtensionInit(void)
{
}
Bool noGlxExtension = FALSE;
#endif
void

View File

@ -54,7 +54,6 @@
#include <os.h>
#include <propertyst.h>
#include <version-config.h>
#include "extinit.h"
#include "os/auth.h"
@ -63,7 +62,7 @@
#ifdef XF86VIDMODE
#include <X11/extensions/xf86vmproto.h>
Bool noXFree86VidModeExtension;
extern _X_EXPORT Bool noXFree86VidModeExtension;
#endif
void

View File

@ -118,7 +118,66 @@ __stdcall unsigned long GetTickCount(void);
#include "miinitext.h"
#include "present.h"
#include "dixstruct_priv.h"
Bool noTestExtensions;
#ifdef COMPOSITE
Bool noCompositeExtension = FALSE;
#endif
#ifdef DAMAGE
Bool noDamageExtension = FALSE;
#endif
#ifdef DBE
Bool noDbeExtension = FALSE;
#endif
#ifdef DPMSExtension
#include "dpmsproc.h"
Bool noDPMSExtension = FALSE;
#endif
#ifdef GLXEXT
Bool noGlxExtension = FALSE;
#endif
#ifdef SCREENSAVER
Bool noScreenSaverExtension = FALSE;
#endif
#ifdef MITSHM
Bool noMITShmExtension = FALSE;
#endif
#ifdef RANDR
Bool noRRExtension = FALSE;
#endif
Bool noRenderExtension = FALSE;
Bool noShapeExtension = FALSE;
#ifdef XCSECURITY
Bool noSecurityExtension = FALSE;
#endif
#ifdef RES
Bool noResExtension = FALSE;
#endif
#ifdef XF86BIGFONT
Bool noXFree86BigfontExtension = FALSE;
#endif
#ifdef XFreeXDGA
Bool noXFree86DGAExtension = FALSE;
#endif
#ifdef XF86DRI
Bool noXFree86DRIExtension = FALSE;
#endif
#ifdef XF86VIDMODE
Bool noXFree86VidModeExtension = FALSE;
#endif
Bool noXFixesExtension = FALSE;
#ifdef XINERAMA
/* Xinerama is disabled by default unless enabled via +xinerama */
Bool noPanoramiXExtension = TRUE;
#endif /* XINERAMA */
#ifdef DRI2
Bool noDRI2Extension = FALSE;
#endif
Bool noGEExtension = FALSE;
#define X_INCLUDE_NETDB_H
#include <X11/Xos_r.h>

View File

@ -36,8 +36,6 @@
#define SubPixelUnknown 0
#endif
Bool noRRExtension = FALSE;
#define RR_VALIDATE
static int RRNScreens;

View File

@ -57,8 +57,6 @@
#include "panoramiXsrv.h"
#endif /* XINERAMA */
Bool noRenderExtension = FALSE;
static int ProcRenderQueryVersion(ClientPtr pClient);
static int ProcRenderQueryPictFormats(ClientPtr pClient);
static int ProcRenderQueryPictIndexValues(ClientPtr pClient);

View File

@ -50,8 +50,6 @@
#include "protocol-versions.h"
#include "extinit_priv.h"
Bool noXFixesExtension = FALSE;
static unsigned char XFixesReqCode;
int XFixesEventBase;
int XFixesErrorBase;