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 <pekka.paalanen@collabora.com>

https://gitlab.gnome.org/GNOME/mutter/merge_requests/271
This commit is contained in:
Emilio Pozuelo Monfort 2018-10-12 14:19:24 +02:00 committed by Jonas Ådahl
parent 3d2ca9a67f
commit dfde2f59da

View File

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