diff options
author | Matt Turner <mattst88@gmail.com> | 2010-02-24 23:23:31 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-03-01 00:56:41 -0500 |
commit | d964fc54ed06cea45dfd10832ed3d34f3ddb661b (patch) | |
tree | b4a9d37ba06c2c9ca4c2aef457922a23ddf55399 /drivers/gpu/drm/radeon/r600_blit.c | |
parent | 32b3c2abaf8c61c80a8b02071c73f05252122ffe (diff) |
drm/radeon: use ALIGN instead of open coding it
Cc: Jerome Glisse <jglisse@redhat.com>
Cc: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r600_blit.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r600_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r600_blit.c b/drivers/gpu/drm/radeon/r600_blit.c index 5ea432347589..f4fb88ece2bb 100644 --- a/drivers/gpu/drm/radeon/r600_blit.c +++ b/drivers/gpu/drm/radeon/r600_blit.c | |||
@@ -49,7 +49,7 @@ set_render_target(drm_radeon_private_t *dev_priv, int format, int w, int h, u64 | |||
49 | RING_LOCALS; | 49 | RING_LOCALS; |
50 | DRM_DEBUG("\n"); | 50 | DRM_DEBUG("\n"); |
51 | 51 | ||
52 | h = (h + 7) & ~7; | 52 | h = ALIGN(h, 8); |
53 | if (h < 8) | 53 | if (h < 8) |
54 | h = 8; | 54 | h = 8; |
55 | 55 | ||