OSDN Git Service

modetest: use 24 bit depth on the framebuffer
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 11 Oct 2011 18:09:44 +0000 (11:09 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 11 Oct 2011 18:10:55 +0000 (11:10 -0700)
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).

tests/modetest/modetest.c

index bd0f0a0..88c5ce5 100644 (file)
@@ -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;