projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e40c9c7
)
testdisplay: for tiled mode test, the height should be aligned
author
Hai Lan
<hai.lan@intel.com>
Fri, 5 Aug 2011 04:47:25 +0000
(
00:47
-0400)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Fri, 12 Aug 2011 18:44:03 +0000
(11:44 -0700)
Signed-off-by: Hai Lan <hai.lan@intel.com>
tests/testdisplay.c
patch
|
blob
|
history
diff --git
a/tests/testdisplay.c
b/tests/testdisplay.c
index
dae52ca
..
1d85acd
100644
(file)
--- 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;