summaryrefslogtreecommitdiff
path: root/src/radeon_exa_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/radeon_exa_render.c')
-rw-r--r--src/radeon_exa_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c
index 15f4326f..e68faff2 100644
--- a/src/radeon_exa_render.c
+++ b/src/radeon_exa_render.c
@@ -263,7 +263,7 @@ static Bool RADEONPitchMatches(PixmapPtr pPix)
int h = pPix->drawable.height;
uint32_t txpitch = exaGetPixmapPitch(pPix);
- if (h > 1 && ((w * pPix->drawable.bitsPerPixel / 8 + 31) & ~31) != txpitch)
+ if (h > 1 && (RADEON_ALIGN(w * pPix->drawable.bitsPerPixel / 8, 32)) != txpitch)
return FALSE;
return TRUE;