From: James S. <jsi...@in...> - 2007-02-06 21:09:10
|
> 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. |