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:
c82ef03
)
modetest: use 24 bit depth on the framebuffer
author
Jesse Barnes
<jbarnes@virtuousgeek.org>
Tue, 11 Oct 2011 18:09:44 +0000
(11:09 -0700)
committer
Jesse 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
patch
|
blob
|
history
diff --git
a/tests/modetest/modetest.c
b/tests/modetest/modetest.c
index
bd0f0a0
..
88c5ce5
100644
(file)
--- 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;