xf86: Accept devices with the kernel's ofdrm driver

Add a workaround to accept devices of the kernel's ofdrm driver.
Makes Xorg work on Open Firmware's pre-configured display with the
DRM graphics stack.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
This commit is contained in:
Thomas Zimmermann 2022-05-18 10:44:06 +02:00 committed by Matt Turner
parent a8e41a8190
commit cd617f2d0f

View File

@ -579,6 +579,9 @@ xf86platformProbeDev(DriverPtr drvp)
/* Accept the device if the driver is hyperv_drm */
if (strcmp(xf86_platform_devices[j].attribs->driver, "hyperv_drm") == 0)
break;
/* Accept the device if the driver is ofdrm */
if (strcmp(xf86_platform_devices[j].attribs->driver, "ofdrm") == 0)
break;
/* Accept the device if the driver is simpledrm */
if (strcmp(xf86_platform_devices[j].attribs->driver, "simpledrm") == 0)
break;