diff options
author | Hai Lan <hai.lan@intel.com> | 2011-08-05 00:47:25 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-08-12 11:44:03 -0700 |
commit | 6857a1af816e18981515b942faaba65e85c40cc5 (patch) | |
tree | 401d372e8b22b0b5f9891696f9ef00cf40fea5d7 /tests/testdisplay.c | |
parent | e40c9c7faf7303201b8fbe8ff1ed1b17533d3c50 (diff) |
testdisplay: for tiled mode test, the height should be aligned
Signed-off-by: Hai Lan <hai.lan@intel.com>
Diffstat (limited to 'tests/testdisplay.c')
-rw-r--r-- | tests/testdisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdisplay.c b/tests/testdisplay.c index dae52ca5..1d85acd4 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; |