kms: Always predict state after processing update

Not only mode sets have state that should be predicted; changing gamma
currently happens with its own update, so we missed predicting that.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/840
This commit is contained in:
Jonas Ådahl 2019-10-10 10:10:38 +02:00
parent 446bd04b6c
commit 1cc249fe18
3 changed files with 1 additions and 10 deletions

View File

@ -110,6 +110,4 @@ GList * meta_kms_update_get_connector_properties (MetaKmsUpdate *update);
GList * meta_kms_update_get_crtc_gammas (MetaKmsUpdate *update);
gboolean meta_kms_update_has_mode_set (MetaKmsUpdate *update);
#endif /* META_KMS_UPDATE_PRIVATE_H */

View File

@ -282,12 +282,6 @@ meta_kms_update_get_crtc_gammas (MetaKmsUpdate *update)
return update->crtc_gammas;
}
gboolean
meta_kms_update_has_mode_set (MetaKmsUpdate *update)
{
return !!update->mode_sets;
}
void
meta_kms_update_seal (MetaKmsUpdate *update)
{

View File

@ -211,8 +211,7 @@ meta_kms_update_process_in_impl (MetaKmsImpl *impl,
ret = meta_kms_impl_process_update (impl, update, error);
if (meta_kms_update_has_mode_set (update))
meta_kms_predict_states_in_impl (meta_kms_impl_get_kms (impl), update);
meta_kms_predict_states_in_impl (meta_kms_impl_get_kms (impl), update);
return ret;
}