Skip to content

Commit

Permalink
drm/nvf0/gr: enable support, if external cs ucode is available
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Jul 5, 2013
1 parent b054aad commit 9d1c4c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/nouveau/core/engine/graph/nvc0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions drivers/gpu/drm/nouveau/core/engine/graph/nvf0.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@

static struct nouveau_oclass
nvf0_graph_sclass[] = {
{ 0x902d, &nouveau_object_ofuncs },
{ 0xa140, &nouveau_object_ofuncs },
{ 0xa197, &nouveau_object_ofuncs },
{ 0xa1c0, &nouveau_object_ofuncs },
{}
};

Expand Down

0 comments on commit 9d1c4c5

Please sign in to comment.