diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-02-12 04:52:52 -0500 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2011-02-12 04:52:52 -0500 |
commit | 355f0f7a67ce239b7fd2f2e81bcaaa88b2a09f03 (patch) | |
tree | 57bc06f63ff3ff008c5bdcc9b5ef0dac878f6e3c /src | |
parent | f1dc419c989addc4737aed06ec8b8acdb4d40063 (diff) |
kms: fix rotate pitch align
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/drmmode_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c index 705a41ad..82d6a336 100644 --- a/src/drmmode_display.c +++ b/src/drmmode_display.c @@ -489,7 +489,7 @@ drmmode_crtc_shadow_create(xf86CrtcPtr crtc, void *data, int width, int height) if (!data) data = drmmode_crtc_shadow_allocate (crtc, width, height); - rotate_pitch = RADEON_ALIGN(width, 64) * drmmode->cpp; + rotate_pitch = RADEON_ALIGN(width, drmmode_get_pitch_align(pScrn, drmmode->cpp, 0)) * drmmode->cpp; rotate_pixmap = drmmode_create_bo_pixmap(pScrn->pScreen, width, height, |