lib/igt_fb: fix open-coded ALIGN()

Maybe this will help someone's life in the future.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2015-11-05 16:24:06 -02:00
parent cb7dd5d401
commit 1c68a71acc

View File

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