xfree86: drivers: geode: call GXRandRSetConfig() directly

No need to do funny linker tricks to call GXRandRSetConfig() via
dynamically resolved symbols. We can call it directly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-07-22 18:15:36 +02:00
parent 929f396b0d
commit d485295be6
2 changed files with 5 additions and 12 deletions

View File

@@ -390,7 +390,7 @@ void GXShowCursor(ScrnInfoPtr pScrni);
/* gx_randr.c */
Rotation GXGetRotation(ScreenPtr pScreen);
Bool GXRandRInit(ScreenPtr pScreen, int rotation);
extern _X_EXPORT Bool GXRandRSetConfig(ScreenPtr pScreen, Rotation rotation,
Bool GXRandRSetConfig(ScreenPtr pScreen, Rotation rotation,
int rate, RRScreenSizePtr pSize);
/* gx_rotate.c */

View File

@@ -1110,11 +1110,7 @@ GXCreateScreenResources(ScreenPtr pScreen)
if (!(*pScreen->CreateScreenResources) (pScreen))
return FALSE;
if (xf86LoaderCheckSymbol("GXRandRSetConfig")
&& pGeode->rotation != RR_Rotate_0) {
Rotation(*GXRandRSetConfig) (ScreenPtr pScreen, Rotation rr, int rate,
RRScreenSizePtr pSize) = NULL;
if (pGeode->rotation != RR_Rotate_0) {
RRScreenSize p;
Rotation requestedRotation = pGeode->rotation;
@@ -1127,12 +1123,9 @@ GXCreateScreenResources(ScreenPtr pScreen)
p.mmWidth = pScreen->mmWidth;
p.mmHeight = pScreen->mmHeight;
GXRandRSetConfig = LoaderSymbol("GXRandRSetConfig");
if (GXRandRSetConfig) {
pGeode->starting = TRUE;
(*GXRandRSetConfig) (pScreen, requestedRotation, 0, &p);
pGeode->starting = FALSE;
}
pGeode->starting = TRUE;
GXRandRSetConfig(pScreen, requestedRotation, 0, &p);
pGeode->starting = FALSE;
}
return TRUE;