drm/nvf0/gr: enable support, if external cs ucode is available
authorBen Skeggs <bskeggs@redhat.com>
Thu, 4 Jul 2013 01:17:33 +0000 (11:17 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 5 Jul 2013 03:43:49 +0000 (13:43 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
drivers/gpu/drm/nouveau/core/engine/graph/nvf0.c

index fae6daec2a545a10e25d5b4c9da35b09ed53771b..3f4f35cc3848ae6bf08e3d7164fc360366ed5f7b 100644 (file)
@@ -1132,7 +1132,8 @@ nvc0_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        struct nvc0_graph_priv *priv;
        int ret, i;
 
-       ret = nouveau_graph_create(parent, engine, bclass, true, &priv);
+       ret = nouveau_graph_create(parent, engine, bclass,
+                                  (oclass->fecs.ucode != NULL), &priv);
        *pobject = nv_object(priv);
        if (ret)
                return ret;
index d7dff11c1883929fc75b5258026654fa65431864..01294b0a06329015f3aa6e3b5078a1ebb33c6669 100644 (file)
 
 static struct nouveau_oclass
 nvf0_graph_sclass[] = {
+       { 0x902d, &nouveau_object_ofuncs },
+       { 0xa140, &nouveau_object_ofuncs },
+       { 0xa197, &nouveau_object_ofuncs },
+       { 0xa1c0, &nouveau_object_ofuncs },
        {}
 };