drm/nouveau: fix thinko causing init to fail on cards without accel
authorBen Skeggs <bskeggs@redhat.com>
Thu, 22 Mar 2012 23:10:22 +0000 (09:10 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Mar 2012 08:35:56 +0000 (09:35 +0100)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_state.c

index a3ae91fa81414779c541bda925528ead6de8b2fa..a4886b36d0faf771d6abc7d8aaa0983aca465850 100644 (file)
@@ -852,7 +852,7 @@ nouveau_card_init(struct drm_device *dev)
        if (ret)
                goto out_pm;
 
-       if (!dev_priv->noaccel) {
+       if (dev_priv->eng[NVOBJ_ENGINE_GR]) {
                ret = nouveau_card_channel_init(dev);
                if (ret)
                        goto out_fence;