Skip to content

Commit

Permalink
drm/radeon/kms: fix and unify tiled buffer alignment checking for r6x…
Browse files Browse the repository at this point in the history
…x/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>
  • Loading branch information
Alex Deucher authored and Dave Airlie committed Nov 18, 2010
1 parent 0143832 commit 1679056
Show file tree
Hide file tree
Showing 2 changed files with 199 additions and 116 deletions.
Loading

0 comments on commit 1679056

Please sign in to comment.