From: Hai Lan Date: Fri, 5 Aug 2011 04:47:25 +0000 (-0400) Subject: testdisplay: for tiled mode test, the height should be aligned X-Git-Tag: 1.1~127 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6857a1af816e18981515b942faaba65e85c40cc5;p=profile%2Fextras%2Fintel-gpu-tools.git testdisplay: for tiled mode test, the height should be aligned Signed-off-by: Hai Lan --- diff --git a/tests/testdisplay.c b/tests/testdisplay.c index dae52ca..1d85acd 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -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;