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

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

drm/nv04-nv40/vm: use self as parent for subobjects



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent f83145ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ nv04_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
	if (ret)
		return ret;

	ret = nouveau_gpuobj_new(parent, NULL,
	ret = nouveau_gpuobj_new(nv_object(priv), NULL,
				 (NV04_PDMA_SIZE / NV04_PDMA_PAGE) * 4 +
				 8, 16, NVOBJ_FLAG_ZERO_ALLOC,
				 &priv->vm->pgt[0].obj[0]);
+1 −1
Original line number Diff line number Diff line
@@ -119,7 +119,7 @@ nv41_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
	if (ret)
		return ret;

	ret = nouveau_gpuobj_new(parent, NULL,
	ret = nouveau_gpuobj_new(nv_object(priv), NULL,
				(NV41_GART_SIZE / NV41_GART_PAGE) * 4,
				 16, NVOBJ_FLAG_ZERO_ALLOC,
				 &priv->vm->pgt[0].obj[0]);
+1 −1
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ nv44_vmmgr_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
	if (ret)
		return ret;

	ret = nouveau_gpuobj_new(parent, NULL,
	ret = nouveau_gpuobj_new(nv_object(priv), NULL,
				(NV44_GART_SIZE / NV44_GART_PAGE) * 4,
				 512 * 1024, NVOBJ_FLAG_ZERO_ALLOC,
				 &priv->vm->pgt[0].obj[0]);