hw/xfree86/common: remove xf86PostProbe

A long time ago, this function used to initialize
various screen resources.
Now, this function just kills the X server in various circumstances
for no good reason.

Fixes: fc78bcca21
Fixes: 728b54528d
Fixes: https://gitlab.freedesktop.org/xorg/driver/xf86-video-fbdev/-/issues/9
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2025-09-11 00:41:57 +03:00
committed by Enrico Weigelt
parent f8973ffc2e
commit 22d963bc4d
4 changed files with 0 additions and 28 deletions

View File

@@ -553,30 +553,6 @@ xf86GetDevFromEntity(int entityIndex, int instance)
return NULL;
}
/*
* xf86PostProbe() -- Allocate all non conflicting resources
* This function gets called by xf86Init().
*/
void
xf86PostProbe(void)
{
if (fbSlotClaimed && (
#if (defined(__sparc__) || defined(__sparc)) && !defined(__OpenBSD__)
sbusSlotClaimed ||
#endif
#ifdef XSERVER_PLATFORM_BUS
platformSlotClaimed ||
#endif
#ifdef XSERVER_LIBPCIACCESS
pciSlotClaimed
#else
TRUE
#endif
))
FatalError("Cannot run in framebuffer mode. Please specify busIDs "
" for all framebuffer devices\n");
}
Bool
xf86IsEntityShared(int entityIndex)
{

View File

@@ -83,7 +83,6 @@ _X_EXPORT /* only for internal int10 module - not supposed to be used by OOT dri
ScrnInfoPtr xf86FindScreenForEntity(int entityIndex);
Bool xf86BusConfig(void);
void xf86PostProbe(void);
void xf86ClearEntityListForScreen(ScrnInfoPtr pScrn);
void xf86RemoveDevFromEntity(int entityIndex, GDevPtr dev);

View File

@@ -769,8 +769,6 @@ DoConfigure(void)
goto bail;
}
xf86PostProbe();
for (j = 0; j < xf86NumScreens; j++) {
xf86Screens[j]->scrnIndex = j;
}

View File

@@ -444,7 +444,6 @@ InitOutput(int argc, char **argv)
if (xf86BusConfig() == FALSE)
return;
xf86PostProbe();
/*
* Sort the drivers to match the requested ording. Using a slow