Commit a3e6789a authored by Ben Skeggs's avatar Ben Skeggs

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

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment