diff options
author | Eric Anholt <eric@anholt.net> | 2007-09-24 11:12:22 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-09-24 11:12:22 -0700 |
commit | ca67fa767dc762dac369e84b27a7ef15673d527c (patch) | |
tree | 0bf88e3398566f0a038e5343c14558dc3b4e95c5 | |
parent | 130f79613bfe6a8cfa7f431c8cce06cbb93cc91a (diff) |
Remove logic for supporting i915tex_dri.so vs. i915_dri.so.
There can be only one.
-rw-r--r-- | src/i830_dri.c | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/src/i830_dri.c b/src/i830_dri.c index bff885eb..6fe75e53 100644 --- a/src/i830_dri.c +++ b/src/i830_dri.c @@ -102,11 +102,6 @@ typedef struct drm_i915_flip { #include "dristruct.h" -static char I830KernelDriverName[] = "i915"; -static char I830ClientDriverName[] = "i915tex"; -static char I965ClientDriverName[] = "i965"; -static char I830LegacyClientDriverName[] = "i915"; - static Bool I830InitVisualConfigs(ScreenPtr pScreen); static Bool I830CreateContext(ScreenPtr pScreen, VisualPtr visual, drm_context_t hwContext, void *pVisualConfigPriv, @@ -538,11 +533,11 @@ I830DRIScreenInit(ScreenPtr pScreen) pI830->pDRIInfo = pDRIInfo; pI830->LockHeld = 0; - pDRIInfo->drmDriverName = I830KernelDriverName; + pDRIInfo->drmDriverName = "i915"; if (IS_I965G(pI830)) - pDRIInfo->clientDriverName = I965ClientDriverName; - else - pDRIInfo->clientDriverName = I830ClientDriverName; + pDRIInfo->clientDriverName = "i965"; + else + pDRIInfo->clientDriverName = "i915"; if (xf86LoaderCheckSymbol("DRICreatePCIBusID")) { pDRIInfo->busIdString = DRICreatePCIBusID(pI830->PciInfo); @@ -719,9 +714,15 @@ I830DRIScreenInit(ScreenPtr pScreen) drmFreeVersion(version); return FALSE; } - if (strncmp(version->name, I830KernelDriverName, strlen(I830KernelDriverName))) { - xf86DrvMsg(pScreen->myNum, X_WARNING, - "i830 Kernel module detected, Use the i915 Kernel module instead, aborting DRI init.\n"); + /* Check whether the kernel module attached to the device isn't the + * one we expected (meaning it's the old i830 module). + */ + if (strncmp(version->name, pDRIInfo->drmDriverName, + strlen(pDRIInfo->drmDriverName))) + { + xf86DrvMsg(pScreen->myNum, X_WARNING, + "Detected i830 kernel module. The i915 kernel module " + "is required for DRI. Aborting.\n"); I830DRICloseScreen(pScreen); drmFreeVersion(version); return FALSE; @@ -739,15 +740,6 @@ I830DRIScreenInit(ScreenPtr pScreen) } } - /* - * Backwards compatibility - */ - - if ((pDRIInfo->clientDriverName == I830ClientDriverName) && - (pI830->allocate_classic_textures)) { - pDRIInfo->clientDriverName = I830LegacyClientDriverName; - } - return TRUE; } |