drm/nouveau: no need to update bo.offset from vma after validate
authorBen Skeggs <bskeggs@redhat.com>
Fri, 3 Jun 2011 05:47:39 +0000 (15:47 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 23 Jun 2011 05:58:32 +0000 (15:58 +1000)
On chipsets using nouveau_vm, the virtual address stays constant, so
the value set at bo creation time is fine.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c

index 2ad49cbf7c8b272203976af98abb1479d6d6847c..633f724b6baf98e4dc8d45291a842f89c7243b7a 100644 (file)
@@ -312,8 +312,6 @@ nouveau_bo_validate(struct nouveau_bo *nvbo, bool interruptible,
        if (ret)
                return ret;
 
-       if (nvbo->vma.node)
-               nvbo->bo.offset = nvbo->vma.offset;
        return 0;
 }
 
This page took 0.025919 seconds and 5 git commands to generate.