monitor-manager-kms: Read crtc props after determining the crtc ID

Otherwise we can't read the properties.
This commit is contained in:
Rui Matos 2015-04-28 16:43:15 +02:00
parent 0de3869656
commit 9060190555

View File

@ -454,10 +454,6 @@ meta_monitor_manager_kms_read_current (MetaMonitorManager *manager)
meta_crtc = &manager->crtcs[i];
meta_crtc->driver_private = g_new (MetaCRTCKms, 1);
meta_crtc->driver_notify = (GDestroyNotify) meta_crtc_destroy_notify;
find_crtc_properties (manager_kms, meta_crtc);
meta_crtc->crtc_id = crtc->crtc_id;
meta_crtc->rect.x = crtc->x;
meta_crtc->rect.y = crtc->y;
@ -483,6 +479,10 @@ meta_monitor_manager_kms_read_current (MetaMonitorManager *manager)
height = MAX (height, meta_crtc->rect.y + meta_crtc->rect.height);
}
meta_crtc->driver_private = g_new (MetaCRTCKms, 1);
meta_crtc->driver_notify = (GDestroyNotify) meta_crtc_destroy_notify;
find_crtc_properties (manager_kms, meta_crtc);
drmModeFreeCrtc (crtc);
}