Around 10 o'clock on Feb 27, "Kendall Bennett" wrote:

> Ok, so it is a little early yet to start implementing this in our 
> drivers? Or should we just implement what the Matrox driver is doing and 
> follow that model for now (ie: just alpha blits)?

I think the interfaces currently provided by XAA will probably remain 
usable, so you might as well implement them.

> Ok. What stuff other than alpha blits (for fonts and menus) does XRENDER 
> provide anyway? I am a little unclear on that right now.

Render does three things:

        1) Image compositing

        2) Trapezoids (and triangles)

        3) Glyphs

However, the image compositing function has a lot of functionality buried
inside, including projective image transformations, solid fills and tiling.
Plus, trapezoids and glyphs are defined in terms of image compositing, so
in the MI implementation, they are implemented on top of the basic
Composite function.

My thought is that we'll want to have the XAA 'Composite' function 
recognise some common operations (like solid fill and screen->screen blt 
and perhaps others) and call out to driver functions designed for that 
specific operation.  Plus, we should have XAA expose special higher level 
functions for glyph rendering to the driver so that the graphics card can 
use the higher level data structures to speed this operation, rather than 
having the MI layer break the text operation into a (long) sequence of 
primitive Composite operations.

> Also I have been wondering about the accelerated anti-aliased text. Is 
> all anti-aliased text in XFree86 done via the XRENDER extension and alpha 
> blits? It is possible to implement accelerated anti-aliased text using 
> simple 4-8 levels of mono bitmap blits using FreeType (that is what we 
> used for it in our MGL graphics library).

Yes, all AA text is done with the Render glyph operations which are defined
in terms of the basic image composition primitive.  Once you have hardware 
acceleration for image compositing, that's going to be a lot faster than 
any non-standard rendering path.

-keith


_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to