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

Commit 354fb52c authored by Thomas Hellstrom's avatar Thomas Hellstrom Committed by Dave Airlie
Browse files

drm/ttm: Make sure system buffer objects has offset == 0.



This is a convention that the vmwgfx driver has come to rely on.

Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent d9f36a00
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -426,7 +426,8 @@ moved:
		    bdev->man[bo->mem.mem_type].gpu_offset;
		bo->cur_placement = bo->mem.placement;
		spin_unlock(&bo->lock);
	}
	} else
		bo->offset = 0;

	return 0;