1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
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">
10 <h1>Mesa source code tree overview
</h1>
13 This is a brief summary of Mesa's directory tree and what's contained in
19 <li><b>docs
</b> - Documentation
20 <li><b>include
</b> - Public OpenGL header files
23 <li><b>egl
</b> - EGL library sources
25 <li><b>docs
</b> - EGL documentation
26 <li><b>drivers
</b> - EGL drivers
27 <li><b>glsl
</b> - the GLSL compiler
28 <li><b>main
</b> - main EGL library implementation. This is where all
29 the EGL API functions are implemented, like eglCreateContext().
31 <li><b>mesa
</b> - Main Mesa sources
33 <li><b>glapi
</b> - OpenGL API dispatch layer. This is where all the
34 GL entrypoints like glClear, glBegin, etc. are generated, as well as
35 the GL dispatch table. All GL function calls jump through the
36 dispatch table to functions found in main/.
37 <li><b>main
</b> - The core Mesa code (mainly state management)
38 <li><b>drivers
</b> - Mesa drivers (not used with Gallium)
40 <li><b>common
</b> - code which may be shared by all drivers
41 <li><b>dri
</b> - Direct Rendering Infrastructure drivers
43 <li><b>common
</b> - code shared by all DRI drivers
44 <li><b>i915
</b> - driver for Intel i915/i945
45 <li><b>i965
</b> - driver for Intel i965
46 <li><b>radeon
</b> - driver for ATI R100
47 <li><b>r200
</b> - driver for ATI R200
50 <li><b>x11
</b> - Xlib-based software driver
51 <li><b>osmesa
</b> - off-screen software driver
52 <li><b>glslcompiler
</b> - a stand-alone GLSL compiler driver
55 <li><b>es
</b> - OpenGL ES overlay, parallelly buildable with the core Mesa
56 <li><b>math
</b> - vertex array translation and transformation code
57 (not used with Gallium)
58 <li><b>ppc
</b> - Assembly code/optimizations for PPC systems
59 (not used with Gallium)
60 <li><b>shader
</b> - Vertex/fragment shader and GLSL compiler code
61 <li><b>sparc
</b> - Assembly code/optimizations for SPARC systems
62 (not used with Gallium)
63 <li><b>state_tracker
</b> - State tracker / driver for Gallium. This
64 is basically a Mesa device driver that speaks to Gallium. This
65 directory may be moved to src/mesa/drivers/gallium at some point.
66 <li><b>swrast
</b> - Software rasterization module. For drawing points,
67 lines, triangles, bitmaps, images, etc. in software.
68 (not used with Gallium)
69 <li><b>swrast_setup
</b> - Software primitive setup. Does things like
70 polygon culling, glPolygonMode, polygon offset, etc.
71 (not used with Gallium)
72 <li><b>tnl
</b> - Software vertex Transformation 'n Lighting.
73 (not used with Gallium)
74 <li><b>tnl_dd
</b> - TNL code for device drivers.
75 (not used with Gallium)
76 <li><b>vbo
</b> - Vertex Buffer Object code. All drawing with
77 glBegin/glEnd, glDrawArrays, display lists, etc. goes through this
78 module. The results is a well-defined set of vertex arrays which
79 are passed to the device driver (or tnl module) for rendering.
80 <li><b>vf
</b> - vertex format conversion (currently unused)
81 <li><b>x86
</b> - Assembly code/optimizations for
32-bit x86 systems
82 (not used with Gallium)
83 <li><b>x86-
64</b> - Assembly code/optimizations for
64-bit x86 systems
84 (not used with Gallium)
86 <li><b>gallium
</b> - Gallium3D source code
88 <li><b>include
</b> - Gallium3D header files which define the Gallium3D
90 <li><b>drivers
</b> - Gallium3D device drivers
92 <li><b>i915
</b> - Driver for Intel i915/i945.
93 <li><b>llvmpipe
</b> - Software driver using LLVM for runtime code generation.
94 <li><b>nv*
</b> - Drivers for NVIDIA GPUs.
95 <li><b>radeonsi
</b> - Driver for AMD Southern Island.
96 <li><b>r300
</b> - Driver for ATI R300 - R500.
97 <li><b>r600
</b> - Driver for ATI/AMD R600 - Northern Island.
98 <li><b>softpipe
</b> - Software reference driver.
99 <li><b>svga
</b> - Driver for VMware's SVGA virtual GPU.
100 <li><b>trace
</b> - Driver for tracing Gallium calls.
103 <li><b>auxiliary
</b> - Gallium support code
105 <li><b>draw
</b> - Software vertex processing and primitive assembly
106 module. This includes vertex program execution, clipping, culling
107 and optional stages for drawing wide lines, stippled lines,
108 polygon stippling, two-sided lighting, etc.
109 Intended for use by drivers for hardware that does not have
111 Geometry shaders will also be implemented in this module.
112 <li><b>cso_cache
</b> - Constant State Objects Cache. Used to filter out
113 redundant state changes between state trackers and drivers.
114 <li><b>gallivm
</b> - LLVM module for Gallium. For LLVM-based
115 compilation, optimization and code generation for TGSI shaders.
117 <li><b>pipebuffer
</b> - utility module for managing buffers
118 <li><b>rbug
</b> - Gallium remote debug utility
119 <li><b>rtasm
</b> - run-time assembly/machine code generation.
120 Currently there's run-time code generation for x86/SSE, PowerPC
122 <li><b>tgsi
</b> - TG Shader Infrastructure. Code for encoding,
123 manipulating and interpretting GPU programs.
124 <li><b>translate
</b> - module for translating vertex data from one format
126 <li><b>util
</b> - assorted utilities for arithmetic, hashing, surface
127 creation, memory management,
2D blitting, simple rendering, etc.
129 <li><b>state_trackers
</b> -
131 <li><b>dri
</b> - Meta state tracker for DRI drivers
132 <li><b>egl
</b> - Meta state tracker for EGL drivers
133 <li><b>es
</b> - OpenGL ES
1.x and
2.x state trackers
134 <li><b>glx
</b> - Meta state tracker for GLX
135 <li><b>vdpau
</b> - VDPAU state tracker
136 <li><b>vega
</b> - OpenVG
1.x state tracker
138 <li><b>xorg
</b> - Meta state tracker for Xorg video drivers
149 <li><b>glu
</b> - The OpenGL Utility library
151 <li><b>sgi
</b> - GLU from SGI
152 <li><b>mesa
</b> - Mesa version of GLU (deprecated)
154 <li><b>glx
</b> - The GLX library code for building libGL. This is used for
155 direct rendering drivers. It will dynamically load one of the
158 <li><b>progs
</b> - OpenGL test and demonstration programs
159 <li><b>lib
</b> - where the GL libraries are placed