mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-09 17:06:14 +00:00
testdisplay: for tiled mode test, the height should be aligned
Signed-off-by: Hai Lan <hai.lan@intel.com>
This commit is contained in:
parent
e40c9c7faf
commit
6857a1af81
@ -414,7 +414,7 @@ allocate_surface(int fd, int width, int height, uint32_t depth, uint32_t bpp,
|
||||
|
||||
if (tiled) {
|
||||
stride = (width * (bpp / 8) + 511) & ~511;
|
||||
size = stride * height;
|
||||
size = stride * (height + 7) & ~7;
|
||||
} else {
|
||||
/* Scan-out has a 64 byte alignment restriction */
|
||||
stride = (width * (bpp / 8) + 63) & ~63;
|
||||
|
Loading…
x
Reference in New Issue
Block a user