diff options
author | 2013-10-09 08:25:16 +0100 | |
---|---|---|
committer | 2013-11-08 16:02:47 +1000 | |
commit | 4c60fac111961e7eb71a08928c22b43cff55f1fb (patch) | |
tree | 84c677306b4ca1c9d07a4805255219028233cad4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'drm-nouveau-next' of git://anongit.freedesktop.org/git/nouveau/linux-2.6 into drm-next (diff) | |
download | linux-dev-4c60fac111961e7eb71a08928c22b43cff55f1fb.tar.xz linux-dev-4c60fac111961e7eb71a08928c22b43cff55f1fb.zip |
drm/nouveau: consider CLASS_DISPLAY_3D devices while detecting dsm/optimus
The present code assumes that optimus is present whenever two
VGA (PCI_CLASS_DISPLAY_VGA) devices are present. This does not
seem to be the case of newer laptops with optimus, in which
case the nvidia gpu is a PCI_CLASS_DISPLAY_3D device.
Rework the logic so that we count both VGA and 3D devices,
when contemplating if optimus is present on the platform.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70208
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions