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:
parent
446bd04b6c
commit
1cc249fe18
@ -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 */
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -211,7 +211,6 @@ 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);
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user