diff options
author | Francisco Jerez <currojerez@riseup.net> | 2010-10-24 21:30:34 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-12-03 00:11:14 -0500 |
commit | 1c180fa5bd5f264e4863bb88861e8cd7d135b917 (patch) | |
tree | a7f4f40f3d120c2ecc84e12289603081bee77cbf /drivers/gpu/drm | |
parent | 332b242f47786d1a43bd7a19a0513dd5d493db8e (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')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_crtc.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_crtc.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_crtc.c b/drivers/gpu/drm/nouveau/nv04_crtc.c index e4aea721971f..297505eb98d5 100644 --- a/drivers/gpu/drm/nouveau/nv04_crtc.c +++ b/drivers/gpu/drm/nouveau/nv04_crtc.c | |||
@@ -672,6 +672,7 @@ static void nv_crtc_prepare(struct drm_crtc *crtc) | |||
672 | if (nv_two_heads(dev)) | 672 | if (nv_two_heads(dev)) |
673 | NVSetOwner(dev, nv_crtc->index); | 673 | NVSetOwner(dev, nv_crtc->index); |
674 | 674 | ||
675 | drm_vblank_pre_modeset(dev, nv_crtc->index); | ||
675 | funcs->dpms(crtc, DRM_MODE_DPMS_OFF); | 676 | funcs->dpms(crtc, DRM_MODE_DPMS_OFF); |
676 | 677 | ||
677 | NVBlankScreen(dev, nv_crtc->index, true); | 678 | NVBlankScreen(dev, nv_crtc->index, true); |
@@ -704,6 +705,7 @@ static void nv_crtc_commit(struct drm_crtc *crtc) | |||
704 | #endif | 705 | #endif |
705 | 706 | ||
706 | funcs->dpms(crtc, DRM_MODE_DPMS_ON); | 707 | funcs->dpms(crtc, DRM_MODE_DPMS_ON); |
708 | drm_vblank_post_modeset(dev, nv_crtc->index); | ||
707 | } | 709 | } |
708 | 710 | ||
709 | static void nv_crtc_destroy(struct drm_crtc *crtc) | 711 | static void nv_crtc_destroy(struct drm_crtc *crtc) |
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) { |