xf86pciBus.c: use Intel ddx only for pre-gen3 hardware

Use intel ddx only on pre-gen4 hw, newer ones will fall back to modesetting.

Instead of defaulting to the Intel driver for all Intel hardware, only
default it for older hardware for which it has shown to be better for.

Note that Debian/Fedora and their derivatives, as well as the yocto project
have been carrying this patch for many years:
192254841a
ee515e44b0

so this simply aligns xserver upstream with Linux distributions.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Co-authored-by: Balló György <ballogyor@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1887>
This commit is contained in:
Timo Aaltonen 2018-03-16 17:23:11 -07:00 committed by Marge Bot
parent 4165516ac4
commit e45516afa6

View file

@ -1174,7 +1174,16 @@ xf86VideoPtrToDriverList(struct pci_device *dev, XF86MatchedDrivers *md)
case 0x0bef:
/* Use fbdev/vesa driver on Oaktrail, Medfield, CDV */
break;
default:
/* Default to intel only on pre-gen3 chips */
case 0x7121:
case 0x7123:
case 0x7125:
case 0x1132:
case 0x3577:
case 0x2562:
case 0x3582:
case 0x358e:
case 0x2572:
driverList[0] = "intel";
break;
}