From dfde2f59da7c31529f2ca5bad39c5a47c90791e3 Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Fri, 12 Oct 2018 14:19:24 +0200 Subject: [PATCH] renderer/native: Secondary gpu data for all Initialize the secondary GPU data for all GPUs, even the primary one. By not looking at the primary_gpu_kms member, a future patch is allowed to postpone choosing the primary GPU. A future patch will use the secondary GPU data to decide which GPU will become the primary GPU. Co-authored by: Pekka Paalanen https://gitlab.gnome.org/GNOME/mutter/merge_requests/271 --- src/backends/native/meta-renderer-native.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c index 553e79b69..51a7a2cd1 100644 --- a/src/backends/native/meta-renderer-native.c +++ b/src/backends/native/meta-renderer-native.c @@ -3325,8 +3325,7 @@ create_renderer_gpu_data_gbm (MetaRendererNative *renderer_native, renderer_gpu_data->mode = META_RENDERER_NATIVE_MODE_GBM; renderer_gpu_data->egl_display = egl_display; - if (gpu_kms != renderer_native->primary_gpu_kms) - init_secondary_gpu_data (renderer_gpu_data); + init_secondary_gpu_data (renderer_gpu_data); return renderer_gpu_data; }