From: Jerome Glisse Date: Fri, 11 Nov 2011 20:42:57 +0000 (-0500) Subject: drm/ttm: simplify memory accounting for ttm user v2 X-Git-Tag: v3.3-rc1~121^2~88^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57de4ba959b290f0b8cf36ecd5e7f1b29d4b8a12;p=pandora-kernel.git drm/ttm: simplify memory accounting for ttm user v2 Provide helper function to compute the kernel memory size needed for each buffer object. Move all the accounting inside ttm, simplifying driver and avoiding code duplication accross them. v2 fix accounting of ghost object, one would have thought that i would have run into the issue since a longtime but it seems ghost object are rare when you have plenty of vram ;) Signed-off-by: Jerome Glisse Reviewed-by: Thomas Hellstrom --- Reading git-diff-tree failed