forked from enlightenment/efl
ecore_drm2: Allow non-pci DRM devices to be selected
Summary: This is a tweak to c264ef264f
for D5712 . chosen_dev in the loop was only being set for DRM devices attached to PCI devices. While this is useful for determining if the device is the preferred boot_vga device, There is no apparent requirement (comparing to Weston) for all DRM devices to be attached to a PCI device. (This is considering USB DisplayLink devices. I am not sure how the parent device tree is with these...)
Reviewers: devilhorns, ManMower
Reviewed By: devilhorns, ManMower
Subscribers: cedric, jpeg, #efl
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D5727
This commit is contained in:
parent
ffa276fce3
commit
324c917a20
|
@ -127,6 +127,8 @@ _drm2_device_find(Elput_Manager *em, const char *seat)
|
||||||
if (!modeset)
|
if (!modeset)
|
||||||
goto cont;
|
goto cont;
|
||||||
|
|
||||||
|
chosen_dev = dev;
|
||||||
|
|
||||||
dparent = eeze_udev_syspath_get_parent_filtered(dev, "pci", NULL);
|
dparent = eeze_udev_syspath_get_parent_filtered(dev, "pci", NULL);
|
||||||
if (!dparent)
|
if (!dparent)
|
||||||
{
|
{
|
||||||
|
@ -141,7 +143,6 @@ _drm2_device_find(Elput_Manager *em, const char *seat)
|
||||||
{
|
{
|
||||||
const char *id;
|
const char *id;
|
||||||
|
|
||||||
chosen_dev = dev;
|
|
||||||
id = eeze_udev_syspath_get_sysattr(dparent, "boot_vga");
|
id = eeze_udev_syspath_get_sysattr(dparent, "boot_vga");
|
||||||
if (id)
|
if (id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue