Find primary GPU only
authorPier Luigi Fiorini <pierluigi.fiorini@gmail.com>
Sun, 27 Jan 2013 08:53:32 +0000 (09:53 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 6 Aug 2013 09:00:23 +0000 (11:00 +0200)
commit888bfb09da4367a2eebe41a1a086a802449d2af6
treeefac1063f12a4c8f4199e558f99b3da577e96b22
parentea14a6308394ded16b4666ddc19f9c95c4e60658
Find primary GPU only

Some systems may have multiple DRM devices attached to a single seat and we are
not guaranteed to pick up the primary GPU. With this flag we can control how
DRM devices are detected and consider only the primary GPU.

This is very useful for the kms plugin or QtCompositors running on kms in order
to use the right DRM device.

Change-Id: I8b91e78f148b25aaa4e40724e39e0ed0918ca100
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
src/platformsupport/devicediscovery/qdevicediscovery_p.h
src/platformsupport/devicediscovery/qdevicediscovery_udev.cpp
src/plugins/platforms/kms/qkmsintegration.cpp