Module: Demos
Branch: master
Commit: 0ea0e6d13c9515c288ce45d25c993c23c6331f45
URL:    
http://cgit.freedesktop.org/mesa/demos/commit/?id=0ea0e6d13c9515c288ce45d25c993c23c6331f45

Author: Kristian Høgsberg <[email protected]>
Date:   Wed Nov 23 13:14:07 2011 -0500

eglkms: Use depth 24 when creating the KMS FB

Depth 32 used to work, but was wrong.  With the recent work to support
other framebuffer types, the kernel got more strict about rejecting
bogus depths.

---

 src/egl/opengl/eglkms.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/egl/opengl/eglkms.c b/src/egl/opengl/eglkms.c
index 6fa145c..98db61f 100644
--- a/src/egl/opengl/eglkms.c
+++ b/src/egl/opengl/eglkms.c
@@ -287,7 +287,7 @@ int main(int argc, char *argv[])
 
    ret = drmModeAddFB(fd,
                      kms.mode.hdisplay, kms.mode.vdisplay,
-                     32, 32, stride, handle, &kms.fb_id);
+                     24, 32, stride, handle, &kms.fb_id);
    if (ret) {
       fprintf(stderr, "failed to create fb\n");
       goto rm_rb;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to