Explicitely disable DRI on SandyBridge and above chipsets. It doesn't

work anyways, so prevent X from crashing. ok oga@
This commit is contained in:
matthieu 2012-01-31 07:47:28 +00:00
parent 77cabb72e1
commit 16bbf25500

View File

@ -1174,6 +1174,12 @@ Bool I830DRI2ScreenInit(ScreenPtr screen)
intel->deviceName = drmGetDeviceNameFromFd(intel->drmSubFD);
memset(&info, '\0', sizeof(info));
if (INTEL_INFO(intel)->gen >= 60) {
xf86DrvMsg(scrn->scrnIndex, X_WARNING,
"DRI disabled on Sandy Bridge chipsets\n");
return FALSE;
}
info.fd = intel->drmSubFD;
info.driverName = INTEL_INFO(intel)->gen < 40 ? "i915" : "i965";
info.deviceName = intel->deviceName;