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; }