]> git.itanic.dy.fi Git - linux-stable/commit
drm/radeon/kms: fix and unify tiled buffer alignment checking for r6xx/7xx
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 15 Nov 2010 01:24:35 +0000 (20:24 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 18 Nov 2010 04:55:37 +0000 (14:55 +1000)
commit16790569eddf4d406a16a65f4750f405fa669c52
treed43fd3e94ecb0a7548863ffbe9b7aa4ad5cdfaff
parent0143832cc96d0bf78486297aad5c8fb2c2ead02a
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 <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r600_cs.c
drivers/gpu/drm/radeon/r600d.h