Georges Basile Stavracas Neto 3832c6b607 gpu-kms: Ignore GPUs with no connectors
Mutter recently gained the ability to deal with multiple GPUs
rendering at different displays. These GPUs would have a display
connected to them, and Mutter was adapted in order to be aware
of different GPUs and their outputs.

However, one specific edge case appeared: PRIME systems. PRIME
systems have two GPUs:

 * The integrated GPU (iGPU), usually Intel, which has connectors
   and deals with the routine load.

 * The dedicated GPU (dGPU), usually AMD or NVidia, which has no
   connectors at all and are there just to aid heavy loads.

On those systems, the dGPU is aggressively put to sleep by the
kernel to avoid energy waste. Waking it up is a costly operation.

With Mutter's adaptation to deal with multiple GPUs, Mutter began
wakening the dGPU every time some rendering had to be done. This
was causing stuttering every time the dGPU was put to sleep, and
Mutter asked it to wake up again.

To fix this situation, this commit ignores GPUs with no connectors
attached.

Issue: #77
2018-03-21 18:50:14 +00:00
2018-03-21 13:22:35 +08:00
2015-07-06 00:52:18 -07:00
2018-03-20 22:39:36 +01:00
2014-03-18 20:37:35 -04:00
2017-05-11 13:45:44 +02:00
2018-03-12 19:45:19 +01:00
2016-04-27 20:37:47 +02:00
2014-07-31 17:50:28 +02:00
2018-03-12 19:45:19 +01:00
Description
94 MiB
Languages
C 98.9%
Meson 0.7%
Python 0.3%