[PATCH] libkms: Allocate dumb framebuffers as 32bpp if we claim they're x8r8g8b8.

Eric Anholt eric at anholt.net
Tue Apr 12 11:24:18 PDT 2011


modetest got all segfaulty after walking off the end of the 16bpp
framebuffer that it was told was 32bpp.
---
 libkms/dumb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libkms/dumb.c b/libkms/dumb.c
index 3be5f7a..fafef64 100644
--- a/libkms/dumb.c
+++ b/libkms/dumb.c
@@ -95,7 +95,7 @@ dumb_bo_create(struct kms_driver *kms,
 
 	memset(&arg, 0, sizeof(arg));
 
-	arg.bpp = 16;
+	arg.bpp = 32;
 	arg.width = width;
 	arg.height = height;
 
-- 
1.7.4.1


------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
--
_______________________________________________
Dri-devel mailing list
Dri-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


More information about the dri-devel mailing list