OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8abe61
)
modetest: align fb pitch to 64 bytes
author
Jesse Barnes
<jbarnes@virtuousgeek.org>
Thu, 9 Sep 2010 17:27:22 +0000
(10:27 -0700)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Thu, 9 Sep 2010 17:27:22 +0000
(10:27 -0700)
Docs say this is necessary, and the kernel now enforces this.
tests/modetest/modetest.c
patch
|
blob
|
history
diff --git
a/tests/modetest/modetest.c
b/tests/modetest/modetest.c
index
177b9c0
..
820f8a5
100644
(file)
--- a/
tests/modetest/modetest.c
+++ b/
tests/modetest/modetest.c
@@
-438,6
+438,7
@@
create_test_buffer(drm_intel_bufmgr *bufmgr,
/* Mode size at 32 bpp */
stride = width * 4;
+ stride = (stride + 63) & ~63;
size = stride * height;
bo = drm_intel_bo_alloc(bufmgr, "frontbuffer", size, 4096);