Merge remote-tracking branch 'airlied/for-keithp'

This commit is contained in:
Keith Packard 2012-12-17 10:56:12 -08:00
commit d982d87743
2 changed files with 5 additions and 10 deletions

View File

@ -377,14 +377,6 @@ xf86platformProbeDev(DriverPtr drvp)
continue;
}
/*
* If all of the above fails, which can happen if X was started without
* configuration or if BusID wasn't set for non-PCI devices, use the first
* device by default.
*/
if (!foundScreen && xf86_num_platform_devices > 0 && numDevs > 0)
foundScreen = probeSingleDevice(&xf86_platform_devices[0], drvp, devList[0], 0);
/* if autoaddgpu devices is enabled then go find a few more and add them as GPU screens */
if (xf86Info.autoAddGPU && numDevs) {
for (j = 0; j < xf86_num_platform_devices; j++) {

View File

@ -320,6 +320,7 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
DRIContextFlags flags = 0;
DRIContextPrivPtr pDRIContextPriv;
static Bool drm_server_inited;
/* If the DRI extension is disabled, do not initialize the DRI */
if (noXFree86DRIExtension) {
@ -345,6 +346,10 @@ DRIScreenInit(ScreenPtr pScreen, DRIInfoPtr pDRIInfo, int *pDRMFD)
return FALSE;
}
#endif
if (drm_server_inited == FALSE) {
drmSetServerInfo(&DRIDRMServerInfo);
drm_server_inited = TRUE;
}
if (!DRIOpenDRMMaster(pScrn, pDRIInfo->SAREASize,
pDRIInfo->busIdString, pDRIInfo->drmDriverName))
@ -791,8 +796,6 @@ DRIExtensionInit(void)
RegisterBlockAndWakeupHandlers(DRIBlockHandler, DRIWakeupHandler, NULL);
drmSetServerInfo(&DRIDRMServerInfo);
return TRUE;
}