sna: Add some DBG for tracing vblanks across modeset/resume

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-05-01 09:15:28 +01:00
parent bcbb2f222c
commit ca57ee7234
2 changed files with 6 additions and 1 deletions

View File

@ -4764,6 +4764,8 @@ void sna_mode_update(struct sna *sna)
if (sna->flags & SNA_IS_HOSTED)
return;
DBG(("%s\n", __FUNCTION__));
/* Validate CRTC attachments and force consistency upon the kernel */
sna->mode.front_active = 0;
for (i = 0; i < config->num_crtc; i++) {
@ -4822,6 +4824,8 @@ void sna_mode_reset(struct sna *sna)
if (sna->flags & SNA_IS_HOSTED)
return;
DBG(("%s\n", __FUNCTION__));
sna_hide_cursors(sna->scrn);
for (i = 0; i < config->num_crtc; i++) {
@ -5334,7 +5338,7 @@ disable1:
continue;
assert(config->crtc[i]->enabled);
assert(crtc->dpms_mode == DPMSModeOn);
assert(crtc->dpms_mode <= DPMSModeOn);
arg.crtc_id = crtc->id;
arg.fb_id = get_fb(sna, new,

View File

@ -2345,6 +2345,7 @@ sna_dri_schedule_wait_msc(ClientPtr client, DrawablePtr draw, CARD64 target_msc,
if (sna_wait_vblank(sna, &vbl))
goto out_free_info;
DBG(("%s: waiting until MSC=%llu\n", __FUNCTION__, (long long)vbl.request.sequence));
DRI2BlockClient(client, draw);
return TRUE;