drm/nouveau/kms: send timestamp data for correct head in flip completion events
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Wed, 20 Nov 2013 05:14:31 +0000 (15:14 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 3 Dec 2013 13:28:56 +0000 (23:28 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_display.c

index 7809d92183c4236c9f1f937ea6cde6a39e780063..acec7746cafdcec93ea6284ec1f8b1ca08979d58 100644 (file)
@@ -701,7 +701,7 @@ nouveau_finish_page_flip(struct nouveau_channel *chan,
 
        s = list_first_entry(&fctx->flip, struct nouveau_page_flip_state, head);
        if (s->event)
-               drm_send_vblank_event(dev, -1, s->event);
+               drm_send_vblank_event(dev, s->crtc, s->event);
 
        list_del(&s->head);
        if (ps)