aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_display.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2012-04-01 07:09:13 -0400
committerBen Skeggs <bskeggs@redhat.com>2012-05-24 02:31:49 -0400
commit6d597027755b2eed4298b85ebe3cb5c93b29d1a9 (patch)
tree827e189534f285c2bbf4c96e627685d27937b4db /drivers/gpu/drm/nouveau/nouveau_display.c
parent78339fb75c21403677f61a02e1839b626a79325b (diff)
drm/nouveau: use the same packet header macros as userspace
Cosmetic cleanup only. 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index 4b1cf7457983..b670b0d34233 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -446,13 +446,13 @@ nouveau_page_flip_emit(struct nouveau_channel *chan,
446 goto fail; 446 goto fail;
447 447
448 if (dev_priv->card_type < NV_C0) { 448 if (dev_priv->card_type < NV_C0) {
449 BEGIN_RING(chan, NvSubSw, NV_SW_PAGE_FLIP, 1); 449 BEGIN_NV04(chan, NvSubSw, NV_SW_PAGE_FLIP, 1);
450 OUT_RING (chan, 0x00000000); 450 OUT_RING (chan, 0x00000000);
451 OUT_RING (chan, 0x00000000); 451 OUT_RING (chan, 0x00000000);
452 } else { 452 } else {
453 BEGIN_NVC0(chan, 2, 0, NV10_SUBCHAN_REF_CNT, 1); 453 BEGIN_NVC0(chan, 0, NV10_SUBCHAN_REF_CNT, 1);
454 OUT_RING (chan, ++chan->fence.sequence); 454 OUT_RING (chan, ++chan->fence.sequence);
455 BEGIN_NVC0(chan, 8, 0, NVSW_SUBCHAN_PAGE_FLIP, 0x0000); 455 BEGIN_IMC0(chan, 0, NVSW_SUBCHAN_PAGE_FLIP, 0x0000);
456 } 456 }
457 FIRE_RING (chan); 457 FIRE_RING (chan);
458 458