Re: Enabling Hardware acceleration in existing framebuffer driver
From: Krzysztof Helt <hidden>
Date: 2008-07-04 17:28:25
On Fri, 04 Jul 2008 12:33:57 -0400 Keith Williams [off-list ref] wrote:
The fillrect was the simplest to implement. I agree that the others will be much higher value. In DirectFB there are a set of benchmarks that run through all of the different drawing types including filled rectangles. That is what I am using as my baseline.
I don't know DirectFB. I am not sure if the DirectFB uses the frame buffer acceleration or its own.
However, even with the above code I don't see a change in the benchmark numbers leading me to believe that the acceleration is not being used.
Please do simple test: give "time clear" command from the command line.
Additionally, fbset shows accel to be false. Even if I do a "fbset -accel true", it still reports false.
AFAIK, the fbset tool uses the obsolete FB_ACCELF_TEXT flag. If your driver does not set this flag and does not use it you won't see any difference.
This is why I don't believe that the acceleration is being picked-up.
The only sure way is to put printk inside the fillrect function and watch if it appeared in the dmesg output. The "clear" command is good at useing the fillrect acceleration. Regards, Krzysztof ---------------------------------------------------------------------- Pogoda na dzis. Sprawdz >>> http://link.interia.pl/f1e42 ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08