From: Alex Deucher Date: Mon, 15 Nov 2010 01:24:35 +0000 (-0500) Subject: drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx X-Git-Tag: v2.6.37-rc3~8^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16790569eddf4d406a16a65f4750f405fa669c52;p=pandora-kernel.git drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx Tiled buffers have the same alignment requirements regardless of whether the surface is for db, cb, or textures. Previously, the calculations where inconsistent for each buffer type. - Unify the alignment calculations in a common function - Standardize the alignment units (pixels for pitch/height/depth, bytes for base) - properly check the buffer base alignments Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie --- Reading git-diff-tree failed