From 1c68a71acc1f9ddd98bc1bd6ff1da700442c21aa Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Thu, 5 Nov 2015 16:24:06 -0200 Subject: [PATCH] lib/igt_fb: fix open-coded ALIGN() Maybe this will help someone's life in the future. Signed-off-by: Paulo Zanoni --- lib/igt_fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/igt_fb.c b/lib/igt_fb.c index 088bc0dd..2818c9fa 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -104,7 +104,7 @@ static int create_bo_for_fb(int fd, int width, int height, int bpp, ; } else { /* Scan-out has a 64 byte alignment restriction */ - stride = (width * (bpp / 8) + 63) & ~63; + stride = ALIGN(width * (bpp / 8), 64); size = stride * height; }