xf86: Accept devices with the 'simpledrm' driver.

SimpleDRM 'devices' are a fallback device, and do not have a busid
so they are getting skipped. This will allow simpledrm to work
with the modesetting driver
This commit is contained in:
nerdopolis 2021-09-30 08:51:18 -04:00 committed by Povilas Kanapickas
parent 4b75e65766
commit b9218fadf3

View File

@ -557,8 +557,13 @@ xf86platformProbeDev(DriverPtr drvp)
} }
else { else {
/* for non-seat0 servers assume first device is the master */ /* for non-seat0 servers assume first device is the master */
if (ServerIsNotSeat0()) if (ServerIsNotSeat0()) {
break; break;
} else {
/* Accept the device if the driver is simpledrm */
if (strcmp(xf86_platform_devices[j].attribs->driver, "simpledrm") == 0)
break;
}
if (xf86IsPrimaryPlatform(&xf86_platform_devices[j])) if (xf86IsPrimaryPlatform(&xf86_platform_devices[j]))
break; break;