OSDN Git Service

libkms: All current BO_TYPE are 32bpp
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 May 2011 10:15:06 +0000 (11:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 May 2011 10:17:23 +0000 (11:17 +0100)
... so request a 32bpp dumb buffer rather than a 16bpp.

Fixes modetest and friends.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
libkms/dumb.c

index 3be5f7a..440efb3 100644 (file)
@@ -95,7 +95,8 @@ dumb_bo_create(struct kms_driver *kms,
 
        memset(&arg, 0, sizeof(arg));
 
-       arg.bpp = 16;
+       /* All BO_TYPE currently are 32bpp formats */
+       arg.bpp = 32;
        arg.width = width;
        arg.height = height;