[PATCH] drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx

2010-11-14 Thread Alex Deucher
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

[PATCH] drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx

2010-11-14 Thread Alex Deucher
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