提交 a3e6789a 编写于 作者: B Ben Skeggs

drm/nv20-nv30/gr: use parent as self for subobjects

Signed-off-by: NBen Skeggs <bskeggs@redhat.com>
上级 617a6cbd
...@@ -254,7 +254,7 @@ nv20_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine, ...@@ -254,7 +254,7 @@ nv20_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret) if (ret)
return ret; return ret;
ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16, ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab); NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
if (ret) if (ret)
return ret; return ret;
......
...@@ -142,7 +142,7 @@ nv25_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine, ...@@ -142,7 +142,7 @@ nv25_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret) if (ret)
return ret; return ret;
ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16, ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab); NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
if (ret) if (ret)
return ret; return ret;
......
...@@ -109,7 +109,7 @@ nv2a_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine, ...@@ -109,7 +109,7 @@ nv2a_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret) if (ret)
return ret; return ret;
ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16, ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab); NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
if (ret) if (ret)
return ret; return ret;
......
...@@ -143,7 +143,7 @@ nv30_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine, ...@@ -143,7 +143,7 @@ nv30_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret) if (ret)
return ret; return ret;
ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16, ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab); NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
if (ret) if (ret)
return ret; return ret;
......
...@@ -143,7 +143,7 @@ nv34_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine, ...@@ -143,7 +143,7 @@ nv34_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret) if (ret)
return ret; return ret;
ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16, ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab); NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
if (ret) if (ret)
return ret; return ret;
......
...@@ -141,7 +141,7 @@ nv35_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine, ...@@ -141,7 +141,7 @@ nv35_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
if (ret) if (ret)
return ret; return ret;
ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16, ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab); NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册