summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2011-10-11 11:09:44 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-10-11 11:10:55 -0700
commitb317c96361f88a0a4ccb2faeff09b0476d142c68 (patch)
tree1bc5acc67bac62a41c36f1c2e6a13ca4652a9f42 /tests
parentc82ef03e4c92017bf5644f294ea04e30500f8d4c (diff)
modetest: use 24 bit depth on the framebuffer
It's more compatible; at least the Intel driver now rejects 32 bit depths since it generally can't support real 32 bit framebuffers (supports 30, 36, and 64 bit, but not 32).
Diffstat (limited to 'tests')
-rw-r--r--tests/modetest/modetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index bd0f0a0a..88c5ce5b 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -566,7 +566,7 @@ set_mode(struct connector *c, int count, int page_flip)
return;
kms_bo_get_prop(bo, KMS_HANDLE, &handle);
- ret = drmModeAddFB(fd, width, height, 32, 32, stride, handle, &fb_id);
+ ret = drmModeAddFB(fd, width, height, 24, 32, stride, handle, &fb_id);
if (ret) {
fprintf(stderr, "failed to add fb: %s\n", strerror(errno));
return;