summaryrefslogtreecommitdiff
path: root/src/intel_memory.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2010-08-21 17:32:24 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2010-08-22 09:52:42 +0100
commitb611bced15c30f7bcd03106ce90668b684c1ada6 (patch)
tree7cd855510996cb39dbe6a454d3e36dbb2ce75b45 /src/intel_memory.c
parent8b04b350a983b89eb2d741f55baa297a933ac6ea (diff)
Use ALIGN macro instead of open coding it.
Signed-off-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_memory.c')
-rw-r--r--src/intel_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel_memory.c b/src/intel_memory.c
index 47444ebe..b42e6d79 100644
--- a/src/intel_memory.c
+++ b/src/intel_memory.c
@@ -167,7 +167,7 @@ intel_check_display_stride(ScrnInfoPtr scrn, int stride, Bool tiling)
*/
static inline int intel_pad_drawable_width(int width)
{
- return (width + 63) & ~63;
+ return ALIGN(width, 64);
}
/**