From: Kristoffer Ericson Subject: s1d13xxxfb accelerated fillrect with wrong color Date: Sun, 19 Apr 2009 12:55:52 +0200 Message-ID: <20090419125552.879f7deb.kristoffer.ericson@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from sfi-mx-1.v28.ch3.sourceforge.com ([172.29.28.121] helo=mx.sourceforge.net) by 3yr0jf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1LvUeI-0003cE-1A for linux-fbdev-devel@lists.sourceforge.net; Sun, 19 Apr 2009 10:53:22 +0000 Received: from mail-fx0-f177.google.com ([209.85.220.177]) by 29vjzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1LvUe3-0005po-Lg for linux-fbdev-devel@lists.sourceforge.net; Sun, 19 Apr 2009 10:53:17 +0000 Received: by fxm25 with SMTP id 25so1576593fxm.10 for ; Sun, 19 Apr 2009 03:53:05 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-fbdev-devel-bounces@lists.sourceforge.net To: "linux-fbdev-devel@lists.sourceforge.net" , linux-arm Greetings, Working on adding accelerated fillrect and copyarea for the s1d13xxx chips. Currently its mostly working aside from an color issue with fillrect. For example when using mc it always sets the empty space colors into black while it really should be blue. Im assuming theres something Im missing about what information is gotten from rect->color. Im setting it here (fg = color) + /* set foreground color */ + s1d13xxxfb_writereg(info->par, S1DREG_BBLT_FGC0, (fg && 0xff)); + s1d13xxxfb_writereg(info->par, S1DREG_BBLT_FGC1, (fg >> 8) & 0xff); Best wishes Kristoffer Included full patch below just for reference. diff --git a/drivers/video/s1d13xxxfb.c b/drivers/video/s1d13xxxfb.c index 0726aec..6e0c5f7 100644 --- a/drivers/video/s1d13xxxfb.c +++ b/drivers/video/s1d13xxxfb.c @@ -2,6 +2,7 @@ * * (c) 2004 Simtec Electronics * (c) 2005 Thibaut VARENE + * (c) 2009 Kristoffer Ericson #include #include +#include +#include #include #include