summaryrefslogtreecommitdiff
path: root/lib/igt_fb.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-11-05 16:24:06 -0200
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-11-27 09:57:35 -0200
commit1c68a71acc1f9ddd98bc1bd6ff1da700442c21aa (patch)
tree9f7181be8c8e7cf55daf011ad29c3cfc8556185c /lib/igt_fb.c
parentcb7dd5d401acceb62197eddf3cc6f0860c49faa3 (diff)
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>
Diffstat (limited to 'lib/igt_fb.c')
-rw-r--r--lib/igt_fb.c2
1 files changed, 1 insertions, 1 deletions
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;
}