aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nv50_crtc.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-10-24 21:30:34 -0400
committerBen Skeggs <bskeggs@redhat.com>2010-12-03 00:11:14 -0500
commit1c180fa5bd5f264e4863bb88861e8cd7d135b917 (patch)
treea7f4f40f3d120c2ecc84e12289603081bee77cbf /drivers/gpu/drm/nouveau/nv50_crtc.c
parent332b242f47786d1a43bd7a19a0513dd5d493db8e (diff)
drm/nouveau: Call drm_vblank_pre/post_modeset() around mode setting.
Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv50_crtc.c')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_crtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_crtc.c b/drivers/gpu/drm/nouveau/nv50_crtc.c
index 1225ea0a841b..f3570cc45017 100644
--- a/drivers/gpu/drm/nouveau/nv50_crtc.c
+++ b/drivers/gpu/drm/nouveau/nv50_crtc.c
@@ -454,6 +454,7 @@ nv50_crtc_prepare(struct drm_crtc *crtc)
454 454
455 NV_DEBUG_KMS(dev, "index %d\n", nv_crtc->index); 455 NV_DEBUG_KMS(dev, "index %d\n", nv_crtc->index);
456 456
457 drm_vblank_pre_modeset(dev, nv_crtc->index);
457 nv50_crtc_blank(nv_crtc, true); 458 nv50_crtc_blank(nv_crtc, true);
458} 459}
459 460
@@ -469,6 +470,7 @@ nv50_crtc_commit(struct drm_crtc *crtc)
469 NV_DEBUG_KMS(dev, "index %d\n", nv_crtc->index); 470 NV_DEBUG_KMS(dev, "index %d\n", nv_crtc->index);
470 471
471 nv50_crtc_blank(nv_crtc, false); 472 nv50_crtc_blank(nv_crtc, false);
473 drm_vblank_post_modeset(dev, nv_crtc->index);
472 474
473 ret = RING_SPACE(evo, 2); 475 ret = RING_SPACE(evo, 2);
474 if (ret) { 476 if (ret) {