From a6178990cd54a2ee95c8409cad66495b9e5df4cf Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 17 Sep 2018 13:02:59 +0200 Subject: [PATCH] monitor-manager/kms: Use non-pci secondary cards We may have secondary non-PCI devices, and we should drive their outputs. --- src/backends/native/meta-monitor-manager-kms.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/backends/native/meta-monitor-manager-kms.c b/src/backends/native/meta-monitor-manager-kms.c index 3e80373dc..3209bff94 100644 --- a/src/backends/native/meta-monitor-manager-kms.c +++ b/src/backends/native/meta-monitor-manager-kms.c @@ -622,10 +622,11 @@ get_gpu_paths (MetaMonitorManagerKms *manager_kms, break; } } - else - { - gpu_paths = g_list_append (gpu_paths, g_strdup (device_path)); - } + } + + if (gpu_type == GPU_TYPE_SECONDARY) + { + gpu_paths = g_list_append (gpu_paths, g_strdup (device_path)); } }