blob: 1278199c65b8475c22ec570ff51c5b8dfda614cf [file] [log] [blame]
Erik Faye-Lund00cd1342019-05-02 23:21:36 +02001.. include:: contents.rst
2
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +01003Introduction
4============
Erik Faye-Lund4d066832020-06-12 20:09:42 +02005
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +01006The Mesa project began as an open-source implementation of the
7`OpenGL <https://www.opengl.org/>`__ specification - a system for
8rendering interactive 3D graphics.
Erik Faye-Lund4d066832020-06-12 20:09:42 +02009
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010010Over the years the project has grown to implement more graphics APIs,
11including `OpenGL ES <https://www.khronos.org/opengles/>`__ (versions 1,
122, 3), `OpenCL <https://www.khronos.org/opencl/>`__,
13`OpenMAX <https://www.khronos.org/openmax/>`__,
14`VDPAU <https://en.wikipedia.org/wiki/VDPAU>`__, `VA
15API <https://en.wikipedia.org/wiki/Video_Acceleration_API>`__,
16`XvMC <https://en.wikipedia.org/wiki/X-Video_Motion_Compensation>`__ and
17`Vulkan <https://www.khronos.org/vulkan/>`__.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020018
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010019A variety of device drivers allows the Mesa libraries to be used in many
20different environments ranging from software emulation to complete
21hardware acceleration for modern GPUs.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020022
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010023Mesa ties into several other open-source projects: the `Direct Rendering
24Infrastructure <https://dri.freedesktop.org/>`__ and
25`X.org <https://x.org>`__ to provide OpenGL support on Linux, FreeBSD
26and other operating systems.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020027
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010028Project History
Erik Faye-Lund4d066832020-06-12 20:09:42 +020029---------------
30
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010031The Mesa project was originally started by Brian Paul. Here's a short
32history of the project.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020033
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010034August, 1993: I begin working on Mesa in my spare time. The project has
35no name at that point. I was simply interested in writing a simple 3D
36graphics library that used the then-new OpenGL API. I was partially
37inspired by the *VOGL* library which emulated a subset of IRIS GL. I had
38been programming with IRIS GL since 1991.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020039
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010040November 1994: I contact SGI to ask permission to distribute my
41OpenGL-like graphics library on the internet. SGI was generally
42receptive to the idea and after negotiations with SGI's legal
43department, I get permission to release it.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020044
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010045February 1995: Mesa 1.0 is released on the internet. I expected that a
46few people would be interested in it, but not thousands. I was soon
47receiving patches, new features and thank-you notes on a daily basis.
48That encouraged me to continue working on Mesa. The name Mesa just
49popped into my head one day. SGI had asked me not to use the terms
50*"Open"* or *"GL"* in the project name and I didn't want to make up a
51new acronym. Later, I heard of the Mesa programming language and the
52Mesa spreadsheet for NeXTStep.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020053
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010054In the early days, OpenGL wasn't available on too many systems. It even
55took a while for SGI to support it across their product line. Mesa
56filled a big hole during that time. For a lot of people, Mesa was their
57first introduction to OpenGL. I think SGI recognized that Mesa actually
58helped to promote the OpenGL API, so they didn't feel threatened by the
59project.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020060
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100611995-1996: I continue working on Mesa both during my spare time and
62during my work hours at the Space Science and Engineering Center at the
63University of Wisconsin in Madison. My supervisor, Bill Hibbard, lets me
64do this because Mesa is now being using for the
65`Vis5D <https://www.ssec.wisc.edu/%7Ebillh/vis.html>`__ project.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020066
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010067October 1996: Mesa 2.0 is released. It implements the OpenGL 1.1
68specification.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020069
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010070March 1997: Mesa 2.2 is released. It supports the new 3dfx Voodoo
71graphics card via the Glide library. It's the first really popular
72hardware OpenGL implementation for Linux.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020073
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010074September 1998: Mesa 3.0 is released. It's the first publicly-available
75implementation of the OpenGL 1.2 API.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020076
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010077March 1999: I attend my first OpenGL ARB meeting. I contribute to the
78development of several official OpenGL extensions over the years.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020079
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010080September 1999: I'm hired by Precision Insight, Inc. Mesa is a key
81component of 3D hardware acceleration in the new DRI project for
82XFree86. Drivers for 3dfx, 3dLabs, Intel, Matrox and ATI hardware soon
83follow.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020084
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010085October 2001: Mesa 4.0 is released. It implements the OpenGL 1.3
86specification.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020087
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010088November 2001: I cofounded Tungsten Graphics, Inc. with Keith Whitwell,
89Jens Owen, David Dawes and Frank LaMonica. Tungsten Graphics was
90acquired by VMware in December 2008.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020091
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010092November 2002: Mesa 5.0 is released. It implements the OpenGL 1.4
93specification.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020094
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010095January 2003: Mesa 6.0 is released. It implements the OpenGL 1.5
96specification as well as the GL_ARB_vertex_program and
97GL_ARB_fragment_program extensions.
Erik Faye-Lund4d066832020-06-12 20:09:42 +020098
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +010099June 2007: Mesa 7.0 is released, implementing the OpenGL 2.1
100specification and OpenGL Shading Language.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200101
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +01001022008: Keith Whitwell and other Tungsten Graphics employees develop
103`Gallium <https://en.wikipedia.org/wiki/Gallium3D>`__ - a new GPU
104abstraction layer. The latest Mesa drivers are based on Gallium and
105other APIs such as OpenVG are implemented on top of Gallium.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200106
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100107February 2012: Mesa 8.0 is released, implementing the OpenGL 3.0
108specification and version 1.30 of the OpenGL Shading Language.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200109
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100110July 2016: Mesa 12.0 is released, including OpenGL 4.3 support and
Erik Faye-Lund8f24a142020-09-28 13:49:20 +0200111initial support for Vulkan for Intel GPUs. Plus, there's another Gallium
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100112software driver ("swr") based on LLVM and developed by Intel.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200113
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100114Ongoing: Mesa is the OpenGL implementation for devices designed by
115Intel, AMD, NVIDIA, Qualcomm, Broadcom, Vivante, plus the VMware and
116VirGL virtual GPUs. There's also several software-based renderers:
Erik Faye-Lund8f24a142020-09-28 13:49:20 +0200117swrast (the legacy Mesa rasterizer), softpipe (a Gallium reference
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100118driver), llvmpipe (LLVM/JIT-based high-speed rasterizer) and swr
119(another LLVM-based driver).
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200120
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100121Work continues on the drivers and core Mesa to implement newer versions
122of the OpenGL, OpenGL ES and Vulkan specifications.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200123
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100124Major Versions
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200125--------------
126
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100127This is a summary of the major versions of Mesa. Mesa's major version
128number has been incremented whenever a new version of the OpenGL
129specification is implemented.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200130
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100131Version 12.x features
132~~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200133
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100134Version 12.x of Mesa implements the OpenGL 4.3 API, but not all drivers
135support OpenGL 4.3.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200136
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100137Initial support for Vulkan is also included.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200138
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100139Version 11.x features
140~~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200141
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100142Version 11.x of Mesa implements the OpenGL 4.1 API, but not all drivers
143support OpenGL 4.1.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200144
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100145Version 10.x features
146~~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200147
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100148Version 10.x of Mesa implements the OpenGL 3.3 API, but not all drivers
149support OpenGL 3.3.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200150
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100151Version 9.x features
152~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200153
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100154Version 9.x of Mesa implements the OpenGL 3.1 API. While the driver for
155Intel Sandy Bridge and Ivy Bridge is the only driver to support OpenGL
1563.1, many developers across the open-source community contributed
157features required for OpenGL 3.1. The primary features added since the
158Mesa 8.0 release are GL_ARB_texture_buffer_object and
159GL_ARB_uniform_buffer_object.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200160
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100161Version 9.0 of Mesa also included the first release of the Clover state
162tracker for OpenCL.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200163
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100164Version 8.x features
165~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lundbf3f0f72019-06-04 10:39:58 +0200166
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100167Version 8.x of Mesa implements the OpenGL 3.0 API. The developers at
168Intel deserve a lot of credit for implementing most of the OpenGL 3.0
169features in core Mesa, the GLSL compiler as well as the i965 driver.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200170
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100171Version 7.x features
172~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200173
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100174Version 7.x of Mesa implements the OpenGL 2.1 API. The main feature of
175OpenGL 2.x is the OpenGL Shading Language.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200176
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100177Version 6.x features
178~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200179
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100180Version 6.x of Mesa implements the OpenGL 1.5 API with the following
181extensions incorporated as standard features:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200182
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100183- GL_ARB_occlusion_query
184- GL_ARB_vertex_buffer_object
185- GL_EXT_shadow_funcs
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200186
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100187Also note that several OpenGL tokens were renamed in OpenGL 1.5 for the
188sake of consistency. The old tokens are still available.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200189
190::
191
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100192 New Token Old Token
193 ------------------------------------------------------------
194 GL_FOG_COORD_SRC GL_FOG_COORDINATE_SOURCE
195 GL_FOG_COORD GL_FOG_COORDINATE
196 GL_CURRENT_FOG_COORD GL_CURRENT_FOG_COORDINATE
197 GL_FOG_COORD_ARRAY_TYPE GL_FOG_COORDINATE_ARRAY_TYPE
198 GL_FOG_COORD_ARRAY_STRIDE GL_FOG_COORDINATE_ARRAY_STRIDE
199 GL_FOG_COORD_ARRAY_POINTER GL_FOG_COORDINATE_ARRAY_POINTER
200 GL_FOG_COORD_ARRAY GL_FOG_COORDINATE_ARRAY
201 GL_SRC0_RGB GL_SOURCE0_RGB
202 GL_SRC1_RGB GL_SOURCE1_RGB
203 GL_SRC2_RGB GL_SOURCE2_RGB
204 GL_SRC0_ALPHA GL_SOURCE0_ALPHA
205 GL_SRC1_ALPHA GL_SOURCE1_ALPHA
206 GL_SRC2_ALPHA GL_SOURCE2_ALPHA
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200207
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100208See the `OpenGL
209specification <https://www.opengl.org/documentation/spec.html>`__ for
210more details.
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200211
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100212Version 5.x features
213~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200214
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100215Version 5.x of Mesa implements the OpenGL 1.4 API with the following
216extensions incorporated as standard features:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200217
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100218- GL_ARB_depth_texture
219- GL_ARB_shadow
220- GL_ARB_texture_env_crossbar
221- GL_ARB_texture_mirror_repeat
222- GL_ARB_window_pos
223- GL_EXT_blend_color
224- GL_EXT_blend_func_separate
225- GL_EXT_blend_logic_op
226- GL_EXT_blend_minmax
227- GL_EXT_blend_subtract
228- GL_EXT_fog_coord
229- GL_EXT_multi_draw_arrays
230- GL_EXT_point_parameters
231- GL_EXT_secondary_color
232- GL_EXT_stencil_wrap
233- GL_EXT_texture_lod_bias (plus, a per-texture LOD bias parameter)
234- GL_SGIS_generate_mipmap
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200235
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100236Version 4.x features
237~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200238
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100239Version 4.x of Mesa implements the OpenGL 1.3 API with the following
240extensions incorporated as standard features:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200241
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100242- GL_ARB_multisample
243- GL_ARB_multitexture
244- GL_ARB_texture_border_clamp
245- GL_ARB_texture_compression
246- GL_ARB_texture_cube_map
247- GL_ARB_texture_env_add
248- GL_ARB_texture_env_combine
249- GL_ARB_texture_env_dot3
250- GL_ARB_transpose_matrix
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200251
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100252Version 3.x features
253~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200254
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100255Version 3.x of Mesa implements the OpenGL 1.2 API with the following
256features:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200257
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100258- BGR, BGRA and packed pixel formats
259- New texture border clamp mode
260- glDrawRangeElements()
261- standard 3-D texturing
262- advanced MIPMAP control
263- separate specular color interpolation
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200264
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100265Version 2.x features
266~~~~~~~~~~~~~~~~~~~~
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200267
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100268Version 2.x of Mesa implements the OpenGL 1.1 API with the following
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200269features.
270
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100271- Texture mapping:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200272
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100273 - glAreTexturesResident
274 - glBindTexture
275 - glCopyTexImage1D
276 - glCopyTexImage2D
277 - glCopyTexSubImage1D
278 - glCopyTexSubImage2D
279 - glDeleteTextures
280 - glGenTextures
281 - glIsTexture
282 - glPrioritizeTextures
283 - glTexSubImage1D
284 - glTexSubImage2D
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200285
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100286- Vertex Arrays:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200287
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100288 - glArrayElement
289 - glColorPointer
290 - glDrawElements
291 - glEdgeFlagPointer
292 - glIndexPointer
293 - glInterleavedArrays
294 - glNormalPointer
295 - glTexCoordPointer
296 - glVertexPointer
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200297
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100298- Client state management:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200299
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100300 - glDisableClientState
301 - glEnableClientState
302 - glPopClientAttrib
303 - glPushClientAttrib
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200304
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100305- Misc:
Erik Faye-Lund4d066832020-06-12 20:09:42 +0200306
Erik Faye-Lund0b4f51212020-01-30 19:27:17 +0100307 - glGetPointer
308 - glIndexub
309 - glIndexubv
310 - glPolygonOffset