[mutter] renderer/native: Secondary gpu data for all
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] renderer/native: Secondary gpu data for all
- Date: Sun, 13 Jan 2019 10:48:11 +0000 (UTC)
commit dfde2f59da7c31529f2ca5bad39c5a47c90791e3
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Fri Oct 12 14:19:24 2018 +0200
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
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]