Site hosted by Angelfire.com: Build your free website today!

Hands-on Projects for the Linux Graphics Subsystem

New book from Christos Karayiannis

Available in Amazon Kindle format at:

amazon.com   amazon.co.uk   amazon.de   amazon.es   amazon.fr   amazon.it

X Server - Video Card interaction

The main parts that X Server interacts with the video card were developed mainly in section 3.2.2 and section 7.

Section 3.2.2 covered the InitOutput() function that was called by the main() routine to handle the output processing. The first sections of 3.3.3 described mainly the configuration and the initialization of the video card. It was the last two sections section 3.2.2.12 and section 3.2.2.13 that actually included the routines that dispatch the X Client requests which handle Graphic Context (GC) manipulation, window manipulation and the Root Window (the initial window) initialization.

As we saw at section 3.2.2.12 for the current configuration those routines are grouped into two sets. The first are the mi (Machine Independent) routines and the second the fb (Frame Buffer) routines. As we read at X.Org Manual pages:

When the X server is requested to render drawing primitives, it does so by calling drawing functions through the graphics context's operation function pointer table (i.e., the GCOps functions). These functions render the basic graphics operations such as drawing rectangles, lines, text or copying pixmaps. Default routines are provided either by the MI layer, which draws indirectly through a simple span interface, or by the framebuffer layers (e.g., CFB, MFB, FB), which draw directly to a linearly mapped frame buffer.

Section 3.2.2.11 describes the process where the frame buffer is mapped to the video card memory.

Section 7.1 and section 7.1.1 discuss a complete example of a x Client request dispatching that involves the routines mentioned previously. Those sections should be read after section 1, section 2 and section 3.2.5.3.