mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-22 07:16:14 +00:00
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:
parent
cb7dd5d401
commit
1c68a71acc
@ -104,7 +104,7 @@ static int create_bo_for_fb(int fd, int width, int height, int bpp,
|
|||||||
;
|
;
|
||||||
} else {
|
} else {
|
||||||
/* Scan-out has a 64 byte alignment restriction */
|
/* Scan-out has a 64 byte alignment restriction */
|
||||||
stride = (width * (bpp / 8) + 63) & ~63;
|
stride = ALIGN(width * (bpp / 8), 64);
|
||||||
size = stride * height;
|
size = stride * height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user