kms/mode: Recreate blob id each mode set

This simplifies the blob management and isn't that less efficient that
it matters.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1828>
This commit is contained in:
Jonas Ådahl
2021-04-10 21:20:41 +02:00
parent 3c9ab768ec
commit db1d35c53d
3 changed files with 8 additions and 15 deletions

View File

@ -264,10 +264,12 @@ process_mode_set (MetaKmsImplDevice *impl_device,
uint32_t mode_id;
GList *l;
mode_id = meta_kms_mode_ensure_blob_id (mode, error);
mode_id = meta_kms_mode_create_blob_id (mode, error);
if (mode_id == 0)
return FALSE;
g_array_append_val (blob_ids, mode_id);
meta_topic (META_DEBUG_KMS,
"[atomic] Setting mode of CRTC %u (%s) to %s",
meta_kms_crtc_get_id (crtc),