Skip to content

Commit

Permalink
glamo* : keep the symbol loader happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Graeme Gregory committed Jan 1, 2009
1 parent 6b431ca commit 5e5eb41
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/glamo-driver.c
Expand Up @@ -196,6 +196,14 @@ static const char *fbdevHWSymbols[] = {
NULL
};

static const char *exaSymbols[] = {
"exaDriverAlloc",
"exaDriverInit",
"exaDriverFini",
NULL
};


#ifdef XFree86LOADER

MODULESETUPPROTO(GlamoSetup);
Expand Down Expand Up @@ -224,8 +232,8 @@ GlamoSetup(pointer module, pointer opts, int *errmaj, int *errmin)
if (!setupDone) {
setupDone = TRUE;
xf86AddDriver(&Glamo, module, HaveDriverFuncs);
LoaderRefSymLists(afbSymbols, fbSymbols,
shadowSymbols, fbdevHWSymbols, NULL);
LoaderRefSymLists(fbSymbols,
shadowSymbols, fbdevHWSymbols, exaSymbols, NULL);
return (pointer)1;
} else {
if (errmaj) *errmaj = LDR_ONCEONLY;
Expand Down Expand Up @@ -721,6 +729,9 @@ GlamoScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
"bits per pixel\n");
}

xf86LoadSubModule(pScrn, "exa");
xf86LoaderReqSymLists(exaSymbols, NULL);

if(!GLAMODrawExaInit(pScreen, pScrn)) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"EXA hardware acceleration initialization failed\n");
Expand Down

0 comments on commit 5e5eb41

Please sign in to comment.