Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3e6789a authored by Ben Skeggs's avatar Ben Skeggs
Browse files

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



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 617a6cbd
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;
Loading