Re: Question about cfb_copyarea

James Simmons <[email protected]> Tue, 6 Feb 2007 21:08:49 +0000 (GMT)
Newsgroups gmane.linux.fbdev.user
Message-ID <[email protected]>
> On Wednesday 31 January 2007 10:12, Petr Vandrovec wrote:
> > > is this list alive?
> >
> > More or less.  Less...
> 
> Seems so... :-)

The main list is linux-fbdev-devel.
 
> > > Currently I'm trying to develop a accelerated framebuffer driver. My own
> > > imageblit and fillrect functions are working now. But my copyarea
> > > function will never be called. I thought it will be called to scroll the
> > > screen. But it seems not. Does anybody know what event triggers this
> > > function? If I'm on the wrong list, please give me a hint, what's the
> > > correct group for this kind of question.
> >
> > fbcon believes (quite correctly) that repainting screen is faster than
> > doing copyarea because on unaccelerated driver reads from framebuffer
> > are 4-10 times slower than writes...
> >
> > Take a look at updatescrollmode() in fbcon.c - you must persuade this
> > function to use SCROLL_*_MOVE, not SCROLL_*_REDRAW.  FBINFO_READS_FAST
> > should be sufficient - or you can report fast bitblt + fast panning, or
> > fast bitblt + slow imageblit.  If you report no panning + fast bitblt +
> > fast imageblit, redraw is used :-(
> 
> Uhhh, sounds complicated. All right, I will take a look into fbcon.c. Thank 
> you.

For fb_info.flags add in FBINFO_HWACCEL_IMAGEBLIT. For example

        info->flags = FBINFO_DEFAULT
            | FBINFO_HWACCEL_IMAGEBLIT
            | FBINFO_HWACCEL_FILLRECT
            | FBINFO_HWACCEL_COPYAREA
            | FBINFO_HWACCEL_YPAN;

See fb.h for more info.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642