Hi, It's me again (the guy who helped with r300 blitting). This time I have something different that might be helpful. I wrote a driver for intels G965, for my OS that is. But it should be quite easy to copy. I don't have the time etc to do it, but if anyone wants to this should be helpful. I'll try to anwser/help with any questions/issues as much as I can:)
It supports rect drawing/blitting with alpha, also blitting with color multiply. Lines, tris, quads seem to require a little bit of work with sf_kernel and wm_kernel. Ohh and by the way most of it is "just so it works", and it does at least for me;p (I have an ASUS P5B-V) Here's the stuff: http://czlug.icis.pcz.pl/~timon/bSOS_20070722.tar.bz2 The driver is in SOS/kernel/src/GRS/drivers/intel and SOS/kernel/include/GRS/drivers/intel GRS stands for Graphics related sh... I mean stuff;) SOS/kernel/src/main.c is the start point. There is no PCI probing etc like in a normal OS, so the nameofdriver_Init is simply run from GRS_Init. All in all it's all simple to the point of being primitive;p I wanted to do some of the things differently, like point 0,0 is bottom left corner not top. It's all just my little experiment in coding style, and a way to learn cool stuff about computers;) Ohh and watch out for memcpy/set it's (src, dst, size), strcpy/cat etc are also different. Hope it's helpfull, Timon P.S. and don't try to boot it, there's alot of hardcoded stuff so it might be dangerous.
_______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
