Claudio Ciccani wrote: > Il giorno lun, 25/02/2008 alle 00.50 +0100, Denis Oliver Kropp ha > scritto: >> Claudio Ciccani wrote: >>> Il giorno dom, 24/02/2008 alle 21.41 +0100, [EMAIL PROTECTED] ha >>> scritto: >>>> New commits: >>>> http://git.directfb.org/?p=ports/cairodfb.git;a=commit;h=12695427007196f0b51f4b2f9f3114db4138e76f >>>> commit 12695427007196f0b51f4b2f9f3114db4138e76f >>>> Author: Claudio Ciccani <[EMAIL PROTECTED]> >>>> Date: Sun Feb 24 21:42:37 2008 +0100 >>>> >>>> Experimental version of the backend based on the new DirectFB features. >>>> >>>> This also definitively implements antialiased composite_trapezoids() >>>> by using FillTriangle() and an accumulation buffer. >>>> >>>> cairo/cairo-directfb-surface.c | 769 +++++++++------ >>>> cairo/cairo-directfb.h | 70 ++ >>>> cairo/cairo-directfb.patch | 2151 >>>> +++++++++++++++++----------------------- >>>> 3 files changed, 1418 insertions(+), 1572 deletions(-) >>>> >>> And is also very fast!! >>> The cairo-spacewar demo runs at about 90fps, against the 60fps of the >>> old backend (testing hardware is a Radeon 9250). >> Great! >> >> I should test it on SH7722, but it does not support SRCALPHASAT > > I was just wondering if it is really unsupported or only > unimplemented...
Just checked it again, not supported. I forgot what it is exactly BTW. > In the cairo backend I could implement a different method that uses > DSPD_ADD. Need to do some tests, however. For AA edges? BTW, blended rectangles currently don't work properly with AA turned on on SH7722, because to draw an AA edge I have to send a command which draws a 2-pixels thick line a bit darker and put the original on top. http://www.directfb.org/tests/benchmarks/sh7722/DirectFB_AA_MX/DirectFB_AA_MX_09_Draw_Lines_%5b10%5d_0000.png http://www.directfb.org/tests/benchmarks/sh7722/DirectFB_AA_MX/DirectFB_AA_MX_04_Fill_Rectangles_%5b10%5d_(blend)_0000.png http://www.directfb.org/tests/benchmarks/sh7722/DirectFB_AA_MX/DirectFB_AA_MX_01_Fill_Rectangle_0000.png >> and allows anti-aliased edges with and without blending. > > I see that the driver enables blending internally when antialiasing is > enabled. Do you check for the alpha value of the color in this case? Not sure, but it should not influence the anti-aliasing or any of the RGB values that are written. It will define the alpha value that is written for pixels lying exactly on the middle line and is faded as RGB towards zero going to the "outer" line. >> Both make sense. You don't >> need blending if you draw something onto a black background. >> > > Yeah, but what does it happen when the background is not black? It will draw a thick line with a gradient from center to outer line :) Imagine a badly color keyed image with pixels tending to black at the border. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev