[PATCH] viafb: Don't accelerate blit of color images

Daniel Drake dsd at laptop.org
Wed Jul 15 07:11:27 EDT 2009


When the Tux boot logo is enabled, the boot penguin does not get rendered
correctly and under certain circumstances the system will hang.

This appears to be because the accelerated blitting code only supports
mono images at the moment, as suggested by a high bit 8 of the GECMD in
viafb_imageblit().

Fixes http://dev.laptop.org/ticket/9404 and
http://dev.laptop.org/ticket/9322
---
 drivers/video/via/viafbdev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index 1374312..e91b1be 100644
--- a/drivers/video/via/viafbdev.c
+++ b/drivers/video/via/viafbdev.c
@@ -956,7 +956,7 @@ static void viafb_imageblit(struct fb_info *info,
 	u32 size, bg_col = 0, fg_col = 0, *udata;
 	int i;
 
-	if (!viafb_accel) {
+	if (!viafb_accel || image->depth != 1) {
 		cfb_imageblit(info, image);
 		return;
 	}
-- 
1.6.2.5




More information about the Devel mailing list