renderer/native: Move primary GPU choosing later
Moves the primary GPU choosing to after all secondary gpu data has been created. This makes it possible for a future patch to start looking at secondary gpu data in choose_primary_gpu () to determine if it is using a hardware driver or a software renderer. Co-authored by: Pekka Paalanen <pekka.paalanen@collabora.com> https://gitlab.gnome.org/GNOME/mutter/merge_requests/271
This commit is contained in:
parent
dfde2f59da
commit
60ac2838b5
1 changed files with 2 additions and 2 deletions
|
@ -3659,8 +3659,6 @@ meta_renderer_native_initable_init (GInitable *initable,
|
||||||
GList *gpus;
|
GList *gpus;
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
renderer_native->primary_gpu_kms = choose_primary_gpu (monitor_manager);
|
|
||||||
|
|
||||||
gpus = meta_monitor_manager_get_gpus (monitor_manager);
|
gpus = meta_monitor_manager_get_gpus (monitor_manager);
|
||||||
for (l = gpus; l; l = l->next)
|
for (l = gpus; l; l = l->next)
|
||||||
{
|
{
|
||||||
|
@ -3670,6 +3668,8 @@ meta_renderer_native_initable_init (GInitable *initable,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
renderer_native->primary_gpu_kms = choose_primary_gpu (monitor_manager);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue