Thread (6 messages) flat view 6 messages, 3 authors, 2004-09-13

Re: fbdraw 0.1 available

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2004-09-11 10:53:28

On Fri, 10 Sep 2004, Zack wrote:
My changes to permit (optional) in-kernel drawing for applications
are available. It's only version 0.1 at this point, meaning alpha,
but I'm happy with the performance and structure. I've included
a test application that allows benchmarking.

home.comcast.net/~plinius/fbdraw-0.1.tar.gz

To install, move the tarfile to the 2.6.8.1 root dir, and use
tar zxfv fbdraw-0.1.tar.gz.

Constructive criticism is welcome.
A few comments/questions:

  - Is there any special reason why you implement your own fb_fill_area() and
    fb_copy_area() (which doesn't do anything?), while fb_fillrect() and
    fb_copyarea() already exist?

  - Do you have compared the performance of your fbdraw compared to user space
    mmap()ing the frame buffer and doing all drawings in user space?

BTW, I'm also considering exporting fb_fillrect(), fb_copyarea(), and
fb_imageblit() to userspace, but for a different reason.

Right now applications need to know the exact frame buffer layout. For most
modern PC graphics cards that's OK, since they all do cfb8/16/24/32. But older
(usually unaccelerated) and embedded hardware may use a different layout (e.g.
seperate buffers for even and odd display lines on some set top box hardware,
bitplanes, ...) putting a severe burden on applications.

By letting the application draw to a fixed format cfb8 (pseudocolor) or cfb32
(RGBA) shadow buffer and call the kernel for updating the screen, this can be
solved in a generic way.  Currently now fb_imageblit() already has to do the
conversion from cfb8 to native layout anyway.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help