Skip to contentSkip to conversation

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

PATCH New Eric Anholt 1 participant 1 message Apr 12, 2011

lore
Share & tools
lore
#0 lore raw

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

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(-)
libkms/dumb.c +1 -1
index 3be5f7a..fafef64 100644
@@ -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;
 
Signature · 14 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel