summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2010-09-09 10:27:22 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-09-09 10:27:22 -0700
commit0da84f89c2cb25416bd3bdecae24f287b08cdb76 (patch)
tree5cf6cae06e361df0f38b64a63067c6433bb4bca6 /tests
parentb8abe6139e5c6779ee87d983346f0f65bf67462e (diff)
modetest: align fb pitch to 64 bytes
Docs say this is necessary, and the kernel now enforces this.
Diffstat (limited to 'tests')
-rw-r--r--tests/modetest/modetest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 177b9c0a..820f8a51 100644
--- 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);