Add modesetting driver as a fall-back when appropriate such that we can
use it when running withour root privileges which prevents us from scanning the PCI bus. This makes startx(1)/xinit(1) work again on modern systems with inteldrm(4), radeondrm(4) and amdgpu(4). In some cases this will result in using a different driver than with xenodm(4) which may expose issues (e.g. when we prefer the intel Xorg driver) or loss of acceleration (e.g. older cards supported by radeondrm(4)). ok jsg@, matthieu@
This commit is contained in:
parent
92537e2975
commit
35220e47ea
@ -257,10 +257,17 @@ listPossibleVideoDrivers(XF86MatchedDrivers *md)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (gtype) {
|
||||||
#if defined(__i386__) || defined(__amd64__)
|
#if defined(__i386__) || defined(__amd64__)
|
||||||
if (gtype == WSDISPLAY_TYPE_PCIVGA)
|
case WSDISPLAY_TYPE_PCIVGA:
|
||||||
xf86AddMatchedDriver(md, "vesa");
|
xf86AddMatchedDriver(md, "vesa");
|
||||||
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
case WSDISPLAY_TYPE_INTELDRM:
|
||||||
|
case WSDISPLAY_TYPE_RADEONDRM:
|
||||||
|
xf86AddMatchedDriver(md, "modesetting");
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user