aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_display.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-11-11 23:28:12 -0500
committerBen Skeggs <bskeggs@redhat.com>2011-12-21 04:01:37 -0500
commit3376ee374d2318d311bd3aa7b9bb0186f64ccca5 (patch)
treeab0f1710880207c0788aeade81895dd861dea630 /drivers/gpu/drm/nouveau/nouveau_display.c
parent4acd42939867df4596ae3b433ec1f80e0c461038 (diff)
drm/nvd0/disp: add support for page flipping
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_display.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index fdeb64a3a84d..b186174fa72f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -466,7 +466,10 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb,
466 466
467 /* Emit a page flip */ 467 /* Emit a page flip */
468 if (dev_priv->card_type >= NV_50) { 468 if (dev_priv->card_type >= NV_50) {
469 ret = nv50_display_flip_next(crtc, fb, chan); 469 if (dev_priv->card_type >= NV_D0)
470 ret = nvd0_display_flip_next(crtc, fb, chan, 0);
471 else
472 ret = nv50_display_flip_next(crtc, fb, chan);
470 if (ret) { 473 if (ret) {
471 nouveau_channel_put(&chan); 474 nouveau_channel_put(&chan);
472 goto fail_unreserve; 475 goto fail_unreserve;