Message ID | 20110706142411.CAE0213004F@annarchy.freedesktop.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 292f73f..b3c5630 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -475,6 +475,13 @@ static int radeon_crtc_page_flip(struct drm_crtc *crtc, /* fire the ring */ radeon_ring_unlock_commit(rdev); + spin_lock_irqsave(&dev->event_lock, flags); + if (!radeon_crtc->deferred_flip_completion) { + radeon_page_flip(rdev, radeon_crtc->crtc_id, work->new_crtc_base); + radeon_crtc->deferred_flip_completion = 1; + } + spin_unlock_irqrestore(&dev->event_lock, flags); + return 0;