On 12/13/2010 05:43 PM, André Draszik wrote:
Hi,
attached is an updated version of the batched stretchblit.
All the code duplication of batched vs. non batched versions has been
removed...
Not sure how to best deal with the calling of dfb_gfxcard_blit( srect,
drect->x, drect->y, state ); if the rectangle sizes match.
Should dfb_state_check()/_acquire() maybe do DFXL_BLIT |
DFXL_STRETCHBLIT in the first place, instead of releasing and releasing
and reacquiring the STRETCHBLIT state?
SetState() is specified to receive exactly one flag, so better not use the
BLIT | STRETCHBLIT approach, but always call StretchBlit() and let the driver
do optimizations if at all possible.
But I'm open for discussion...
--
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