[mutter] monitor-manager/kms: Use non-pci secondary cards



commit a6178990cd54a2ee95c8409cad66495b9e5df4cf
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Mon Sep 17 13:02:59 2018 +0200

    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));
         }
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]