summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_state.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2011-04-04 10:10:00 +0400
committerBen Skeggs <bskeggs@redhat.com>2011-05-16 04:48:59 +0400
commitc0924326c8306249aaae27016b80f3c07bb51705 (patch)
treecdaa94061d073f4ee5d90f2fbb360c0c1a0c88c0 /drivers/gpu/drm/nouveau/nouveau_state.c
parenta02ccc7f97d9e9121aa641aca33ba2a2978aef31 (diff)
downloadlinux-c0924326c8306249aaae27016b80f3c07bb51705.tar.xz
drm/nv84: add support for PMPEG
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_state.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_state.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c
index f6c2535e766e..f2855b688095 100644
--- a/drivers/gpu/drm/nouveau/nouveau_state.c
+++ b/drivers/gpu/drm/nouveau/nouveau_state.c
@@ -619,6 +619,10 @@ nouveau_card_init(struct drm_device *dev)
if (dev_priv->card_type == NV_40)
nv40_mpeg_create(dev);
+ else
+ if (dev_priv->card_type == NV_50 && dev_priv->chipset > 0x50 &&
+ (dev_priv->chipset < 0x98 || dev_priv->chipset == 0xa0))
+ nv84_mpeg_create(dev);
if (!nouveau_noaccel) {
for (e = 0; e < NVOBJ_ENGINE_NR; e++) {