a5c50cf43ff7fa36032718b40329546026e7ad9d
[mesa.git] / docs / sourcetree.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html lang="en">
3 <head>
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
5 <title>Mesa Source Tree</title>
6 <link rel="stylesheet" type="text/css" href="mesa.css">
7 </head>
8 <body>
9
10 <div class="header">
11 <h1>The Mesa 3D Graphics Library</h1>
12 </div>
13
14 <iframe src="contents.html"></iframe>
15 <div class="content">
16
17 <h1>Mesa source code tree overview</h1>
18
19 <p>
20 This is a brief summary of Mesa's directory tree and what's contained in
21 each directory.
22 </p>
23
24
25 <ul>
26 <li><b>docs</b> - Documentation
27 <li><b>include</b> - Public OpenGL header files
28 <li><b>src</b>
29 <ul>
30 <li><b>egl</b> - EGL library sources
31 <ul>
32 <li><b>docs</b> - EGL documentation
33 <li><b>drivers</b> - EGL drivers
34 <li><b>main</b> - main EGL library implementation. This is where all
35 the EGL API functions are implemented, like eglCreateContext().
36 </ul>
37 <li><b>glsl</b> - the GLSL compiler
38 <li><b>mapi</b> - Mesa APIs
39 <li><b>glapi</b> - OpenGL API dispatch layer. This is where all the
40 GL entrypoints like glClear, glBegin, etc. are generated, as well as
41 the GL dispatch table. All GL function calls jump through the
42 dispatch table to functions found in main/.
43 <li><b>mesa</b> - Main Mesa sources
44 <ul>
45 <li><b>main</b> - The core Mesa code (mainly state management)
46 <li><b>drivers</b> - Mesa drivers (not used with Gallium)
47 <ul>
48 <li><b>common</b> - code which may be shared by all drivers
49 <li><b>dri</b> - Direct Rendering Infrastructure drivers
50 <ul>
51 <li><b>common</b> - code shared by all DRI drivers
52 <li><b>i915</b> - driver for Intel i915/i945
53 <li><b>i965</b> - driver for Intel i965
54 <li><b>radeon</b> - driver for ATI R100
55 <li><b>r200</b> - driver for ATI R200
56 <li>XXX more
57 </ul>
58 <li><b>x11</b> - Xlib-based software driver
59 <li><b>osmesa</b> - off-screen software driver
60 <li>XXX more
61 </ul>
62 <li><b>math</b> - vertex array translation and transformation code
63 (not used with Gallium)
64 <li><b>program</b> - Vertex/fragment shader and GLSL compiler code
65 <li><b>sparc</b> - Assembly code/optimizations for SPARC systems
66 (not used with Gallium)
67 <li><b>state_tracker</b> - State tracker / driver for Gallium. This
68 is basically a Mesa device driver that speaks to Gallium. This
69 directory may be moved to src/mesa/drivers/gallium at some point.
70 <li><b>swrast</b> - Software rasterization module. For drawing points,
71 lines, triangles, bitmaps, images, etc. in software.
72 (not used with Gallium)
73 <li><b>swrast_setup</b> - Software primitive setup. Does things like
74 polygon culling, glPolygonMode, polygon offset, etc.
75 (not used with Gallium)
76 <li><b>tnl</b> - Software vertex Transformation 'n Lighting.
77 (not used with Gallium)
78 <li><b>tnl_dd</b> - TNL code for device drivers.
79 (not used with Gallium)
80 <li><b>vbo</b> - Vertex Buffer Object code. All drawing with
81 glBegin/glEnd, glDrawArrays, display lists, etc. goes through this
82 module. The results is a well-defined set of vertex arrays which
83 are passed to the device driver (or tnl module) for rendering.
84 <li><b>x86</b> - Assembly code/optimizations for 32-bit x86 systems
85 (not used with Gallium)
86 <li><b>x86-64</b> - Assembly code/optimizations for 64-bit x86 systems
87 (not used with Gallium)
88 </ul>
89 <li><b>gallium</b> - Gallium3D source code
90 <ul>
91 <li><b>include</b> - Gallium3D header files which define the Gallium3D
92 interfaces
93 <li><b>drivers</b> - Gallium3D device drivers
94 <ul>
95 <li><b>i915</b> - Driver for Intel i915/i945.
96 <li><b>llvmpipe</b> - Software driver using LLVM for runtime code generation.
97 <li><b>nv*</b> - Drivers for NVIDIA GPUs.
98 <li><b>radeonsi</b> - Driver for AMD Southern Island.
99 <li><b>r300</b> - Driver for ATI R300 - R500.
100 <li><b>r600</b> - Driver for ATI/AMD R600 - Northern Island.
101 <li><b>softpipe</b> - Software reference driver.
102 <li><b>svga</b> - Driver for VMware's SVGA virtual GPU.
103 <li><b>trace</b> - Driver for tracing Gallium calls.
104 <li>XXX more
105 </ul>
106 <li><b>auxiliary</b> - Gallium support code
107 <ul>
108 <li><b>draw</b> - Software vertex processing and primitive assembly
109 module. This includes vertex program execution, clipping, culling
110 and optional stages for drawing wide lines, stippled lines,
111 polygon stippling, two-sided lighting, etc.
112 Intended for use by drivers for hardware that does not have
113 vertex shaders.
114 Geometry shaders will also be implemented in this module.
115 <li><b>cso_cache</b> - Constant State Objects Cache. Used to filter out
116 redundant state changes between state trackers and drivers.
117 <li><b>gallivm</b> - LLVM module for Gallium. For LLVM-based
118 compilation, optimization and code generation for TGSI shaders.
119 Incomplete.
120 <li><b>pipebuffer</b> - utility module for managing buffers
121 <li><b>rbug</b> - Gallium remote debug utility
122 <li><b>rtasm</b> - run-time assembly/machine code generation.
123 Currently there's run-time code generation for x86/SSE, PowerPC
124 and Cell SPU.
125 <li><b>tgsi</b> - TG Shader Infrastructure. Code for encoding,
126 manipulating and interpreting GPU programs.
127 <li><b>translate</b> - module for translating vertex data from one format
128 to another.
129 <li><b>util</b> - assorted utilities for arithmetic, hashing, surface
130 creation, memory management, 2D blitting, simple rendering, etc.
131 </ul>
132 <li><b>state_trackers</b> -
133 <ul>
134 <li><b>clover</b> - OpenCL state tracker
135 <li><b>dri</b> - Meta state tracker for DRI drivers
136 <li><b>glx</b> - Meta state tracker for GLX
137 <li><b>vdpau</b> - VDPAU state tracker
138 <li><b>vega</b> - OpenVG 1.x state tracker
139 <li><b>wgl</b> -
140 <li><b>xorg</b> - Meta state tracker for Xorg video drivers
141 <li><b>xvmc</b> - XvMC state tracker
142 </ul>
143 <li><b>winsys</b> -
144 <ul>
145 <li><b>drm</b> -
146 <li><b>gdi</b> -
147 <li><b>xlib</b> -
148 </ul>
149 </ul>
150 </ul>
151 <ul>
152 <li><b>glx</b> - The GLX library code for building libGL. This is used for
153 direct rendering drivers. It will dynamically load one of the
154 xxx_dri.so drivers.
155 </ul>
156 <li><b>lib</b> - where the GL libraries are placed
157 </ul>
158
159 </div>
160 </body>
161 </html>