aboutsummaryrefslogtreecommitdiffstats
path: root/libkms
diff options
context:
space:
mode:
authorChris Wilson2011-05-14 05:15:06 -0500
committerChris Wilson2011-05-14 05:17:23 -0500
commit61be94018ae9c403517d53f69357719224fa6ff3 (patch)
tree0640fdc9f6d53e808c80b904369de14d5820be1e /libkms
parentba11501bb9f5bd98110dfe1385b4501c0a9a643a (diff)
downloadexternal-libdrm-61be94018ae9c403517d53f69357719224fa6ff3.tar.gz
external-libdrm-61be94018ae9c403517d53f69357719224fa6ff3.tar.xz
external-libdrm-61be94018ae9c403517d53f69357719224fa6ff3.zip
libkms: All current BO_TYPE are 32bpp
... so request a 32bpp dumb buffer rather than a 16bpp. Fixes modetest and friends. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'libkms')
-rw-r--r--libkms/dumb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libkms/dumb.c b/libkms/dumb.c
index 3be5f7a2..440efb31 100644
--- a/libkms/dumb.c
+++ b/libkms/dumb.c
@@ -95,7 +95,8 @@ dumb_bo_create(struct kms_driver *kms,
95 95
96 memset(&arg, 0, sizeof(arg)); 96 memset(&arg, 0, sizeof(arg));
97 97
98 arg.bpp = 16; 98 /* All BO_TYPE currently are 32bpp formats */
99 arg.bpp = 32;
99 arg.width = width; 100 arg.width = width;
100 arg.height = height; 101 arg.height = height;
101 102