Mesa (computer graphics)

Mesa, also called Mesa3D and The Mesa 3D Graphics Library, is an open source software implementation of OpenGL, Vulkan, and other graphics API specifications. Mesa translates these specifications to vendor-specific graphics hardware drivers.

Mesa
Original author(s)Brian Paul
Developer(s)Currently: Intel, AMD, VMware
Formerly: Tungsten Graphics[1]
Initial releaseFebruary 1995 (1995-02)[2]
Stable release
20.1.2 / 24 June 2020 (2020-06-24)[3]
Repository
Written inC, C++, Assembly[4]
Operating systemCross-platform (BSDs, Haiku, Linux, etc)
TypeGraphics library
LicenseMIT License[5]
Websitemesa3d.org 

Its most important users are two graphics drivers mostly developed and funded by Intel and AMD for their respective hardware (AMD promotes their Mesa drivers Radeon and RadeonSI over the deprecated AMD Catalyst, and Intel has only supported the Mesa driver). Proprietary graphics drivers (e.g., Nvidia GeForce driver and Catalyst) replace all of Mesa, providing their own implementation of a graphics API. An open-source effort to write a Mesa Nvidia driver called Nouveau is mostly developed by the community.

Besides 3D applications such as games, modern display servers (X.org's Glamor or Wayland's Weston) use OpenGL/EGL; therefore all graphics typically go through Mesa.

Mesa is hosted by freedesktop.org and was initiated in August 1993 by Brian Paul, who is still active in the project. Mesa was subsequently widely adopted, and now contains numerous contributions from various individuals and corporations worldwide, including from the graphics hardware manufacturers of the Khronos Group that administer the OpenGL specification. For Linux, development has also been partially driven by crowdfunding.[6]

Overview

Video games outsource rendering calculations to the GPU over OpenGL in real-time. Shaders are written in OpenGL Shading Language or SPIR-V and compiled on the CPU. The compiled programs are executed on the GPU.
Illustration of the Linux graphics stack: DRM & libDRM, Mesa 3D. Display server belongs to the windowing system and is not necessary e.g. for gaming.

Implementations of rendering APIs

The free implementations of Wayland rely upon the Mesa implementation of EGL. The special library called libwayland-EGL, written to accommodate access to the framebuffer, should have been made obsolete by the EGL 1.5 release. On the GDC 2014, AMD was exploring a strategy change towards using DRM instead of their in-kernel blob.[7]

Mesa is known as housing implementation of graphic APIs. Historically the main API that Mesa has implemented is OpenGL, along with other Khronos Group related specifications (like OpenVG, OpenGL ES or recently EGL). But Mesa can implement other APIs and indeed it did with Glide (deprecated) and Direct3D 9 (since July 2013.[8]). Mesa is also not specific to Unix-like operating systems: on Windows for example, Mesa provides an OpenGL API over DirectX.

Mesa implements a translation layer between a graphics API such as OpenGL and the graphics hardware drivers in the operating system kernel. The supported version of the different graphic APIs depends on the driver, because each hardware driver has its own implementation (and therefore status). This is specially true for the "classic" drivers, while the Gallium3D drivers share common code that tend to homogenize the supported extensions and versions.

Mesa maintains a support matrix with the status of the current OpenGL conformance[9][10] visualized at mesamatrix.net. Mesa 10 complies with OpenGL 3.3, for Intel, AMD/ATI and Nvidia GPU hardware. Mesa 11 was announced with some drivers being OpenGL 4.1 compliant.[11]

Mesa 12 contains OpenGL 4.2 and 4.3 and Intel Vulkan 1.0 support.

Mesa 13 brought Intel support for OpenGL 4.4 and 4.5 (all Features supported for Intel Gen 8+, Radeon GCN, Nvidia (Fermi, Kepler), but no Khronos-Test for 4.5-Label) and experimental AMD Vulkan 1.0 support through the community driver RADV. OpenGL ES 3.2 is possible with Intel Skylake (Gen9).[12]

1st stable version of 2017 is 17.0 (new year Counting).[13][14][15] Ready features are certified OpenGL 4.5, OpenGL 4.5 for Intel Haswell,[16][17] OpenGL 4.3 for NVidia Maxwell and Pascal (GM107+).[18] Huge performance gain was measured with Maxwell 1 (GeForce GTX 750 Ti and more with GM1xx). Maxwell-2-Cards (GeForce GTX 980 and more with GM2xx) are underclocked without NVidia information.[19]

The Khronos CTS test suite for OpenGL 4.4, 4.5 and OpenGL ES 3.0+ is in now (2017-01-24) Open Source and all tests for Mesa 13 and 17 are now possible without costs.[20]

2nd stable version of 2017, 17.1.0, came out on 10 May 2017 with some interesting improvements. OpenGL 4.2+ for Intel Ivy Bridge and OpenGL 3.3+ for Intel Open SWR Rasterizer are 2 of the highlights.[21][22]

Note that due to the modularized nature of OpenGL, Mesa can actually support extensions from newer versions of OpenGL without claiming full support for such versions. For example, in July 2016, Mesa supported OpenGL ES 3.1 but also all OpenGL ES 3.2 extensions except for five, as well as a number of extensions not part of any OpenGL or OpenGL ES version.[23]

An open question for Mesa and Linux is High Dynamic Range (HDR). Many problems and open points are in pipe for a clean and basic implementation.[24]

3rd Version 17.2 is available since September 2017 with some new OpenGL 4.6 features and velocity improvements in 3D for Intel and AMD. Only 1.4% of Tests fail for OpenGL 4.5 in Nouveau for Kepler.[25]

4th Version 17.3 is ready since December 2017. Many improvements in many drivers are available. OpenGL 4.6 is nearly fully available (Spir-V is not ready). AMD Vulkan Driver RADV is now fully conformant in Khronos-Test.[26]

1st version of 2018 is 18.0 and available since March 2018 by same scheme in 2017.[27] Full OpenGL 4.6 support is not ready, but many features and improvements were successfully tested in RC3. 10-bit support for Intel i965 in Colors is also a Highlight.[28] New is support for Intel Cannon Lake and AMD Vega with actual Linux Version. AMD Evergreen Chips (RV800 or R900) are near OpenGL 4.5 support. Old AMD R600 or RV700 Chips can only support OpenGL 3.3 with some features of OpenGL 4.x. Freedreno is the Driver for Adreno Hardware and near OpenGL 3.3 support.

2nd version of 2018 is 18.1 and available since May. Target is Vulkan 1.1.72 in Intel ANV and AMD RADV driver. OpenGL 4.6 with spir-V is also main target. Permanent work is possible completion of Features and Optimization of drivers for older hardware like AMD R600/Evergreen, Nvidia Tesla and before, Fermi, Kepler or Intel Sandybridge, Ivybridge, Haswell or Broadwell. ARM Architecture made also great improvements in Adreno 3xx/4xx/5xx and Broadwell VC4/VC5 for Raspi with main target OpenGL ES.

3rd version of 2018 is 18.2 and available in calendar stable in September. OpenGL 4.6 with spir-V and Vulkan 1.1.80 are in WIP. The soft Driver for virtual machines VIRGL is ready for OpenGL 4.3 and OpenGL ES 3.2. RadeonSI is also ready for OpenGL ES 3.2. ASTC Texture Compression Support and Compatibility Modus Support for OpenGL 4.4 (3.1 in 18.1) are other highlights in RadeonSI for AMD GCN Cards. New Vulkan 1.1 and more features for Intel and AMD are available. See more Details for Vulkan in Mesamatrix.[29]

4th version of 2018 is 18.3 and released as stable Version 18.3.1 in December 2018. Many features in Detail and support of newer hardware are main parts. Full support of OpenGL 4.6 is not ready.[30][31]

1st Version of 2019 is 19.0 and was now released at March. Full support of OpenGL 4.6 is not ready, but many improvements on this way are in all drivers.[32][33]

2nd Version of 2019 is 19.1. Transition of TGSI to NIR is here one main Feature on way to OpenGL 4.6 with Spir-V and more OpenCL. RadeonSI runs well in dev-Version with NIR.[34]

3rd Version of 2019 is 19.2. OpenGL 4.6 is Beta ready for new Intel Iris Driver.[35]

4th Version of 2019 is 19.3. OpenGL 4.6 is ready for Intel i965 and optional for new Iris Driver.[36]

First Version of 2020 is 20.0. Vulkan 1.2 is ready for AMD RADV and Intel ANV. Intel Iris is default for Intel Broadwell Gen 8+.[37][38] RadeonSI driver switched to using NIR by default, instead of TGSI.

2nd Version of 2020 is 20.1. Many improvements are ready in many drivers. Zink is a new virtual driver for OpenGL over Vulkan.[39]

3rd Version of 2020 is 20.2 in August. OpenGL 3.0 for Zink is one new feature. [40]

Table of Rendering APIs

Mesa VersionFirst Release DateLast updateVulkanOpenCLOpenGLOpenGL ESOpenVGEGLGLXDirect3D
1.2.145
2020-06-20
2.2-11
2019-07-19
4.6
2017-07-31
3.2.6
2019-07-10
1.1
2008-12-03
1.5
2014-03-19
1.4
2005-12-16
12
2015-07-29
Latest preview version of a future release: 20.1 2020-05-27 20.1.2 [41][42][43] 1.2.139 (Intel Gen8+, AMD GCN Gen2+), 1.0+ (AMD GCN1) 1.0, 1.1, 1.2 (WIP) 4.6 (19.3: Intel Gen 8+, 20.0: AMD GCN) 3.2 N/A[44][45][46] 1.5 1.4 9.0c[47][48]
Current stable version: 20.0 2020-02-19 20.0.7[27][49][50][51][52][53][54][55]

[56][57]

1.2+ (Intel Gen8+, AMD GCN Gen2+)
Older version, yet still maintained: 19.3 2019-12-11 19.3.5[27][58][59][60][61][62][63][64][65] 1.1+ (Intel Gen8+, AMD GCN Gen2+) (19.1: 1.1.104 19.0: 1.1.102, 18.3: 1.1.90, 18.2: 1.1.84)
Old version, no longer maintained: 19.2 2019-09-25 19.2.8[27][66][67][68][69][70][71][72][73][74] 4.5
Old version, no longer maintained: 19.1 2019-06-11 19.1.8[27][75][76][77][78][79][80][81][82]
Old version, no longer maintained: 19.0 2019-03-13 19.0.8[83][84][85][86][87][88][89][90][91]
Old version, no longer maintained: 18.3 2018-12-07 18.3.6[92][93][94][95][96][97][98][99]
Old version, no longer maintained: 18.2 2018-09-07 18.2.8[29][100][101][102][103][104][105][106][107][108][109]
Old version, no longer maintained: 18.1 2018-05-18 18.1.9[110][100][111][112][113][114][115][116][117][118][119][120] 1.1 (Intel Gen8+, AMD GCN Gen2+)(1.1.73)
Old version, no longer maintained: 18.0 2018-03-27 18.0.5[100][121][122][123][124][125][126] 1.0+ (1.0.66)
Old version, no longer maintained: 17.3 2017-12-08 17.3.9[100][127][128][129][130][131][132][133][134][135][136] 1.0 (PC: ANV Intel Gen7+ Ivy Bridge, RADV AMD GCN only) (header: 17.3: 1.0.63, 17.2: 1.0.54, 17.1: 1.0.42, 17.0: 1.0.38, 13.0: 1.0.6, 12.0: 1.0.3) in dev. by Gallium
Compute (Clover):
some CTS-Tests fail
in 1.0 and 1.1,
1.2 (WIP),
so 1.0, 1.1, 1.2
incomplete[137][138]
Old version, no longer maintained: 17.2 2017-09-04 17.2.8[100][139][140][141][142][143][144][145][146][147]
Old version, no longer maintained: 17.1 2017-05-10 17.1.10[100][148][149][150][151][152][153][154][155][156][157][158]
Old version, no longer maintained: 17.0 2017-02-13[159][13] 17.0.7[100][160][161][162][163][164][165][166][167]
Old version, no longer maintained: 13.0 2016-11-01[168] 13.0.6[169][170][171][172][173][174] 4.4
(4.5 No Test Label)
Old version, no longer maintained: 12.0 2016-07-08[175] 12.0.6[176][177][178][179][180][181]4.3[175]3.1
Old version, no longer maintained: 11.2 2016-04-04[182]11.2.2N/A4.1 (Intel 3.3+)[183]
Old version, no longer maintained: 11.1 2015-12-15[184]11.1.43.0
Old version, no longer maintained: 11.0 2015-09-12[185]11.0.9
Old version, no longer maintained: 10.6 2015-06-15[186]10.6.93.3[187]1.4
Old version, no longer maintained: 10.5 2015-03-06[188]10.5.91.1
Old version, no longer maintained: 10.4 2014-12-14[189]10.4.7
Old version, no longer maintained: 10.3 2014-09-19[190]10.3.7N/A
Old version, no longer maintained: 10.2 2014-06-06[191]10.2.9
Old version, no longer maintained: 10.1 2014-03-04[192]10.1.6
Old version, no longer maintained: 10.0 2013-11-30[193]10.0.5
Old version, no longer maintained: 9.0 2012-10-089.0.3, 9.1.7, 9.2.5N/A3.1[194]2.0
Old version, no longer maintained: 8.0 2012-02-088.0.53.0
Old version, no longer maintained: 7.0 2007-06-227.0.4, ..., 7.11.22.1N/AN/AN/A
Old version, no longer maintained: 6.0 2004-01-066.0.11.51.3
Old version, no longer maintained: 5.0 2002-11-135.0.21.4
Old version, no longer maintained: 4.0 2001-10-224.0.41.3
Old version, no longer maintained: 3.0 1998-093.1, 3.2.1, 3.4.2.11.2
Old version, no longer maintained: 2.0 1996-102.61.1
Old version, no longer maintained: 1.0 1995-021.2.81.0
Legend:
Old version
Older version, still maintained
Latest version
Latest preview version
Future release

Vulkan

The Khronos Group officially announced Vulkan API in March 2015, and officially released Vulkan 1.0 on 16 February 2016. Vulkan breaks compatibility with OpenGL and completely abandons its monolithic state machine concept. The developers of Gallium3D called Vulkan to be something along the lines of Gallium3D 2.0 – Gallium3D separates the code that implements the OpenGL state machine from the code that is specific to the hardware.

As Gallium3D ingests TGSI, Vulkan ingests SPIR-V (Standard Portable Intermediate Representation version "V" as in "Vulkan").

Intel released their implementation of a Vulkan driver for their hardware the day the specification was officially released, but it was only mainlined in April and so became part of Mesa 12.0, released in July 2016. While already the i965 driver wasn't written according to the Gallium3D specifications, for the Vulkan driver it makes even less sense to flange it on top of Gallium3D. Similarly there is no technical reason to flange it with NIR, but yet Intel's employees implemented their Vulkan driver that way.[195]

It is to be expected that AMD's own proprietary Vulkan driver, which was released in March, and was announced to be released as free and open-source software in the future and be mainlined into Mesa, also abandons Gallium3D.[196]

RADV is a free project for AMD and is available since version 13.[12] Conformance with Khronos-Test came in version 17.3. Actual is Full support of Vulkan 1.0 and 1.1 since Mesa 18.1.

Nvidia released their proprietary GeForce driver with Vulkan support at launch day and Imagination Technologies (PowerVR), Qualcomm (Adreno) and ARM (Mali) have done the same or at least announced proprietary Vulkan drivers for Android and other operating systems. But when and whether additional free and open-source Vulkan implementations for these GPUs will show up, remains to be seen.

Mesa Software Driver VIRGL starts Vulkan Development in 2018 with GSOC projects for support of Virtual machines.[197]

Explicit fencing

A kind of memory barrier that separates one buffer from the rest of the memory is called a fence. Fences are there to ensure that a buffer is not being overwritten before rendering and display operations have completed on it. Implicit fencing is used for synchronization between graphics drivers and the GPU hardware. The fence signals when a buffer is no longer being used by one component so it can be operated on or reused by another. In the past the Linux kernel had an implicit fencing mechanism, where a fence is directly attached to a buffer (cf. GEM handles and FDs), but userspace is unaware of this. Explicit fencing exposes fences to userspace, where userspace gets fences from both the Direct Rendering Manager (DRM) subsystem and from the GPU. Explicit fencing is required by Vulkan and offers advantages for tracing and debugging.

Linux kernel 4.9 added Android's synchronization framework to mainline.[198]

Generic Buffer Management

Generic Buffer Management (GBM) is an API that provides a mechanism for allocating buffers for graphics rendering tied to Mesa. GBM is intended to be used as a native platform for EGL on drm or openwfd. The handle it creates can be used to initialize EGL and to create render target buffers.[199]

Mesa GBM is an abstraction of the graphics driver specific buffer management APIs (for instance the various libdrm_* libraries), implemented internally by calling into the Mesa GPU drivers.

For example, the Wayland compositor Weston does its rendering using OpenGL ES 2, which it initializes by calling EGL. Since the server runs on the "bare KMS driver", it uses the EGL DRM platform, which could really be called as the GBM platform, since it relies on the Mesa GBM interface.

At XDC2014, Nvidia employee Andy Ritger proposed to enhance EGL in order to replace GBM.[200]

Implementations of video acceleration APIs

There are three possible ways to do the calculations necessary for the encoding and decoding of video streams:

  1. use a software implementation of a video compression or decompression algorithm (commonly called a CODEC) and execute this software on the CPU
  2. use a software implementation of a video compression or decompression algorithm (commonly called a CODEC) and execute this software on the GPU (the 3D rendering engine)
  3. use a complete (or partial) hardware implementation of a video compression or decompression algorithm; it has become very common to integrate such ASICs into the chip of the GPU/CPU/APU/SoC and therefore abundantly available; for marketing reasons companies have established brands for their ASICs, such as PureVideo (Nvidia), Unified Video Decoder (AMD), Video Coding Engine (AMD), Quick Sync Video (Intel), DaVinci (Texas Instruments), CedarX (Allwinner), Crystal HD (Broadcom); some ASICs are available for licensing as semiconductor intellectual property core; usually different versions implement different video compression and/or video decompression algorithms; support for such ASICs usually belong into the kernel driver, to initialize the hardware and do low-level stuff. Mesa, which runs in user-space, houses the implementations of several APIs for software, e.g. VLC media player, GStreamer, HandBrake, etc., to conveniently access such ASICs:

For example, Nouveau, which has been developed as part of Mesa, but also includes a Linux kernel component, which is being developed as part of the Linux kernel, supports the PureVideo-branded ASICs and provides access to them through VDPAU and partly through XvMC.[201]

The free radeon driver supports Unified Video Decoder and Video Coding Engine through VDPAU and OpenMAX.[202]

Please note, that V4L2 is a kernel-to-user-space interface for video bit streams delivered by webcams or TV tuners.

Device drivers

Graphics device drivers are implemented using two components: a UMD (user-mode driver) and a KMD (kernel-mode driver). Starting with Linux kernel 4.2 AMD Catalyst and Mesa will share the same Linux kernel driver: amdgpu. Amdgpu provides interfaces defined by DRM and KMS.

The available free and open-source device drivers for graphic chipsets are "stewarded" by Mesa (because the existing free and open-source implementation of APIs are developed inside of Mesa). Currently there are two frameworks to write graphics drivers: "classic" and Gallium3D.[203] An overview over some (but not all) of the drivers available in Mesa is given at mesamatrix.net.

There are device drivers for AMD/ATI R100 to R800, Intel, and Nvidia cards with 3D acceleration. Previously drivers existed for the IBM/Toshiba/Sony Cell APU of the PlayStation 3, S3 Virge & Savage chipsets, VIA chipsets, Matrox G200 & G400, and more.[204]

The free and open-source drivers compete with proprietary closed-source drivers. Depending on the availability of hardware documentation and man-power, the free and open-source driver lag behind more or less in supporting 3D acceleration of new hardware. Also, 3D rendering performance was usually significantly slower with some notable exceptions.[205][206][207][208] Today this is still true for Nouveau for most NVIDIA GPUs while on AMDs Radeon GPUs the open driver now mostly matches or exceeds the proprietary driver's performance.

Direct Rendering Infrastructure (DRI)

At the time 3D graphics cards became more mainstream for PCs, individuals partly supported by some companies began working on adding more support for hardware-accelerated 3D rendering to Mesa. The Direct Rendering Infrastructure (DRI) was one of these approaches to interface Mesa, OpenGL and other 3D rendering API libraries with the device drivers and hardware. After reaching a basic level of usability, DRI support was officially added to Mesa. This significantly broadened the available range of hardware support achievable when using the Mesa library.[209]

With adapting to DRI, the Mesa library finally took over the role of the front end component of a full scale OpenGL framework with varying backend components that could offer different degrees of 3D hardware support while not dropping the full software rendering capability. The total system used many different software components.[209]

While the design requires all these components to interact carefully, the interfaces between them are relatively fixed. Nonetheless, as most components interacting with the Mesa stack are open source, experimental work is often done through altering several components at once as well as the interfaces between them. If such experiments prove successful, they can be incorporated into the next major or minor release. That applies e.g. to the update of the DRI specification developed in the 2007-2008 timeframe. The result of this experimentation, DRI2, operates without locks and with improved back buffer support. For this, a special git branch of Mesa was created.[210]

DRI3 is supported by the Intel driver since 2013[211][212] and is default in some Linux distributions since 2016[213] to enable Vulkan support and more. It is also default on AMD hardware since late 2016 (X.Org Server 1.18.3 and newer).[214]

Software renderer

Mesa also contains an implementation of software rendering called swrast that allows shaders to run on the CPU as a fallback when no graphics hardware accelerators are present. The Gallium software rasterizer is known as softpipe or when built with support for LLVM llvmpipe, which generates CPU code at runtime.[215][216] Since Mesa 10.x OpenGL 3.3+ is supported for Softpipe (10.3) and LLVMpipe (10.2). Actual about 80% of Features from OpenGL 4.x are implemented in Mesa 17.3 (See Mesamatrix).

In Mesa 12.0 a new Intel Rasterizer OpenSWR is available with high advantages in clusters for large data sets. It's more focused on engineering visualisation than in game or art imagery and can only work on x86 processors.[217] On the other hand, OpenGL 3.1+ is now supported.[218] Acceleration values from 29 to 51 related to LLVMPIPE were measured in some examples.[219] OpenGL 3.3+ is supported for OpenSWR since Mesa 17.1.

VirGL is a Rasterizer for Virtual machines implemented in Mesa 11.1 since 2015 with OpenGL 3.3 support and showed in Mesamatrix since Mesa 18. In actual new Mesa 18.2 it supports more than the others with OpenGL 4.3 and OpenGL ES 3.2. About 80% of OpenGL 4.4 and 4.5 features are also now ready. Vulkan Development starts with GSOC 2018 projects.[220][221][222][197][223][224]

Mega drivers

The idea of bundling multiple drivers into a single "mega" driver was proposed by Eric Anholt. It allows for a single copy of the shared Mesa code to be used among multiple drivers (instead of it existing in each driver separately) and offering better performance than a separate shared library due to the removal of the internal library interface.[225] The state trackers for VDPAU and XvMC have become separate libraries.[226]

shader-db

shader-db is a collection of about 20,000 shaders gathered from various computer games and benchmarks as well as some scripts to compile these and collect some statistics. Shader-db is intended to help validate an optimization.

It was noticed that an unexpected number of shaders are not hand-written but generated. This means these shaders were originally written in HLSL and then translated into GLSL by some translator program, such as e.g. HLSL2GLSL. The problem is, that the generated code is often far from being optimal. Matt Turner said it was much easier to fix this in the translator program than having to make Mesa's compiler carry the burden of dealing with such bloated shaders.

shader-db cannot be considered free and open-source software. To use it legally, one must have a license for all the computer games that the shaders are part of.

Software architecture

A graphics driver consists of an implementation of the OpenGL state machine and a compilation stack to compile the shaders into the GPU's machine language. This compilation, as well as pretty much anything else, is executed on the CPU, then the compiled shaders are sent to the GPU and are executed by it. (SDL = Simple DirectMedia Layer).
The Intermediate Representations (IRs) in Mesa: GLSL IR, Mesa IR, TGSI, and LLVM IR. Missing are HIR, LIR and NIR.
Mesa IR is due to be removed completely.

The so-called "user-mode graphics device drivers" (UMD) in Mesa have very few commonalities with what is generally called a device driver. There are a couple of differences:

  • they are meant to work on top of additionally existent kernel mode graphics device drivers, that are e.g. available as part of the Linux kernel found in the source code under /drivers/gpu/drm/ Each UMD communicates with its kernel mode counterpart with the help of a specific library, name libdrm_specific and a generic one, named libdrm. This section shall look solely on the user-mode part above libdrm
  • there is some implementation of the finite-state machine as specified by e.g. OpenGL; this implementation of the OpenGL state machine may be shared among multiple UMDs or not
  • they consist to a great part of some sort of compiler, that ingests e.g. GLSL and eventually outputs machine code. Parsers may be shared among multiple UMD or be specific

Mesa's Intermediate Representations

One goal of Mesa is the optimization of code that is to be executed by the respective GPU. Another is the sharing of code. Instead of documenting the pieces of software, that do this or that, this Wikipedia article shall instead look at the Intermediate Representations used in the process of compiling and optimizing. See Abstract syntax tree (AST) and Static single assignment form (SSA form).

SPIR-V

SPIR-V is a certain version of the Standard Portable Intermediate Representation. The idea is, that graphics applications output SPIR-V instead of GLSL. In contrast to the latter, SPIR-V is binary to avoid implementation differences between GLSL compiler frontends of different driver implementations, as this has been a major source of application incompatibilities and bugs. Also SPIR-V binary usually also passed through some general optimizations. Also to some degree, SPIR-V's binary representation offers some degree of obfuscation, which might appeal to some software vendors as a form of intellectual property protection; however, SPIR-V contains ample information for reflection and tools exist that translate SPIR-V back into high quality, human readable high level code. A UMD needs only apply optimizations, that are specific to the supported hardware.

GLSL IR

Mesa IR

NIR

NIR will be extended in next releases as base of Spir-V support. LLVMpipe, RadeonSI and Nouveau will change next to NIR from TGSI.

TGSI

The Tungsten Graphics Shader Infrastructure (TGSI) was introduced in 2008 by Tungsten Graphics. All Gallium3D-style UMDs ingest TGSI.

LLVM IR

The UMDs radeonsi and llvmpipe do not output machine code, but instead LLVM IR. From here on, LLVM does optimizations and the compilation to machine code. This does mean, that a certain minimum version of LLVM has to be installed as well.

RADV ACO IR

RADV ACO uses own IR that is close to NIR, for optimizing and generating end binary code for Vulkan SPIR-V shaders on top of Radeon GPUs (GCN 1+, aka GFX6+) GPUs. As of version 21.0.0 the ACO is only used in RADV (Vulkan driver) and not in RadeonSI yet.

Mesa's GLSL compiler

Mesa's GLSL compiler generates its own IR. Because each driver has very different requirements from a LIR, it differentiates between HIR (high-level IR) and LIR (low-level IR).

Gallium3D

Gallium3D
Original author(s)Tungsten Graphics (now VMware)
Preview release
0.4[227] / 24 April 2010 (2010-04-24)
Repository
Written inC
Operating systemCross-platform
TypeGraphics library
LicenseMIT License
Websitewww.freedesktop.org/wiki/Software/gallium/

Gallium3D is a set of interfaces and a collection of supporting libraries[228] intended to ease the programming of device drivers for 3D graphics chipsets for multiple operating systems, rendering or video acceleration APIs.

A feature matrix is being provided at GalliumStatus, and the efforts of writing free and open-source device drivers for graphics chips is being separately documented in the Wikipedia: Free and open-source graphics device driver.

The development of Gallium3D started in 2008 at Tungsten Graphics,[229] and the implementation is available as free and open-source software as part of Mesa 3D hosted by freedesktop.org. The primary goal of making driver development easier, bundling otherwise duplicated code of several different drivers at a single point, and to support modern hardware architectures. This is done by providing a better division of labor, for example, leaving memory management to the kernel DRI driver.

Gallium3D has been a part of Mesa since 2009[230] and is currently used by the free and open-source graphics driver for Nvidia (nouveau project),[231][232] for AMD's R300–R900,[233][234][235] Intel's 'Iris' driver for generation 8+ iGPUs[236] and for other free and open-source GPU device drivers.

Software architecture

Gallium3D eases programming of device drivers by splitting the graphics device driver into three parts. This is accomplished by the introduction of two interfaces: Gallium3D State Tracker Interface and the Gallium3D WinSys Interface. The three components are called:

Gallium3D State Tracker

  • Each graphical API by which a device driver is being addressed has its own State Tracker, e.g. there is a Gallium3D State Tracker for OpenGL and a different one for Direct3D or GLX. Each State Tracker contains an implementation of the Gallium3D State Tracker Interface, and is unique, this means is shared by all existent Gallium3D device drivers.

Gallium3D hardware device driver

  • This is the actual code, that is specific to the underlying 3D graphic accelerator, but only as far as the Gallium3D WinSys Interface allows. There is a unique Gallium3D hardware device driver for each available graphics chip and each implements the Gallium3D State Tracker Interface as well as the Gallium3D WinSys Interface. The Gallium3D hardware device driver understands only TGSI (Tungsten Graphics Shader Infrastructure), an intermediate language for describing shaders. This code translated shaders translated from GLSL into TGSI further into instruction set implemented by the GPU.

Gallium3D WinSys

  • This is specific to the underlying kernel of the operating system and each one implements the Gallium3D WinSys Interface to interface with all available Gallium3D hardware device drivers.
VC4 and freedreno can both consume NIR directly (and fall back to tgsi_to_nir for shaders that do not use glsl_to_nir).
Illustration of the Linux graphics stack
Mesa /DRI and Gallium3D have different driver models. Both share a lot of free and open-source code
A possible example matrix when implementing the Gallium3D driver model. Through the introduction of the Gallium3D Tracker Interface and the Gallium3D WinSys Interface, only 18 instead of 36 modules are required. Each WinSys module can work with each Gallium3D device driver module and with each State Tracker module.

Differences from classic graphics drivers

Gallium3D provides a unified API exposing standard hardware functions, such as shader units found on modern hardware. Thus, 3D APIs such as OpenGL 1.x/2.x, OpenGL 3.x, OpenVG, GPGPU infrastructure or even Direct3D (as found in the Wine compatibility layer) will need only a single back-end, called a state tracker, targeting the Gallium3D API. By contrast, classic-style DRI device drivers require a different back-end for each hardware platform and several other APIs need translation to OpenGL at the expense of code duplication.[237][238][239] All vendor device drivers, due to their proprietary and closed-source nature, are written that way meaning that, e.g. the AMD Catalyst implements both OpenGL and Direct3D, and the vendor drivers for the GeForce have their implementations.

Under Gallium3D, Direct Rendering Manager (DRM) kernel drivers will manage the memory and Direct Rendering Interface (DRI2) drivers will be more GPU processing oriented.[240] During the transition period from userspace modesetting to kernelspace modesetting some of the Mesa 3D drivers, such as the radeon driver or Intel's drivers, ended up supporting both DRI1 and DRI2 and used DRI2 if available on the system. Gallium3D additionally requires a level of shader support that is not available on older cards like e.g. ATi r100-r200 so users for those cards need to keep using Mesa 3D with DRI2 for their 3D usage.

Tungsten Graphics Shader Infrastructure

Tungsten Graphics Shader Infrastructure (TGSI) is an Intermediate representation like LLVM Intermediate Representation or the new Standard Portable Intermediate Representation (SPIR) to be used by the Vulkan API and OpenCL 2.1. Shaders written in OpenGL Shading Language are to be translated/compiled into TGSI, then optimizations are made, and then the TGSI shaders are being compiled into shaders for the instruction set of the used GPU.

LLVM usage

GlassyMesa is an LLVM-based compiler stack for shaders written in GLSL. For SSA see the article Static single assignment form.

In addition, using the modular structure of Gallium3D, there is an effort underway to use the LLVM compiler suite and create a module to optimize shader code on the fly.[241]

The library represents each shader program using an extensible binary intermediate representation called Tungsten Graphics Shader Infrastructure (TGSI), which LLVM then translates into GLSL shaders optimized for target hardware.

Adoption

Several free and open-source graphics device drivers, which have been, or are being written based on information gained through clean-room reverse engineering, adopted the driver model provided by Gallium3D, e.g. nouveau and others (see Free and open-source graphics device driver for a complete list). The main reason may be that the Gallium3D driver model lessens the amount of code required to be written. Of course, being licensed under a free software license, this code can at any time by anybody be rewritten to implement the DRI-, or some other, driver model.

History

Original authors of Gallium3D were Keith Whitwell and Brian Paul at Tungsten Graphics (acquired by VMware in 2008.[242]

Milestones

As of fall 2011, there were at least 10 known, mature and working Gallium3D drivers.[243] Open-source drivers for Nvidia graphics cards by the name of Nouveau team develops its drivers using the Gallium3D framework.[232][244]

2008-07-13: Nouveau development is done exclusively for the Gallium framework. The old DRI driver was removed from the master branch of the Mesa repository on Freedesktop.org.[245]

2009-02-11: The gallium-0.2 branch was merged into mainline Master branch of Mesa.[246] Development is done in Mesa mainline.

2009-02-25: Gallium3D can run on Linux as well as FreeBSD kernels.[247]

2009-05-01: Zack Rusin from Tungsten Graphics added the OpenVG state tracker to Mesa 3D,[248] which enables Scalable Vector Graphics to be hardware-accelerated by any Gallium3D-based driver.

2009-07-17: Mesa3D 7.5 is released, the first version to include Gallium3D.[249]

2010-09-10: Initial support for the Evergreen GPUs was added to the r600g driver.[250]

2010-09-21: There are two Gallium3D drivers for ATI hardware known as r300g and r600g for R300-R500 and R600-Evergreen GPUs respectively.

2010-09-21: Major commits were made to the code to support Direct3D 10 and 11.[251] In time, this might offer the ability to use recent Direct3D implementations on GNU/Linux systems.

2011-11-30: Intel 965g and Cell Gallium drivers were removed from the master branch of Mesa as unmaintained and broken.[252][253]

2013-11-30: Mesa 10 with OpenGL 3.2, 3.3 and OpenCL 1.0+

2014-11-18: Major commits were made to the code to support Direct3D 9.[254]

2015-09-15: Mesa 11 with OpenGL 4.0, 4.1 and OpenCL 1.2 (incomplete)

2015-12-15: Mesa 11.1 Driver VIRGL for virtual machines with OpenGL 3.3

2016-07-08: Mesa 12 with OpenGL 4.2, 4.3 and Vulkan 1.0 (Intel ANV and AMD RADV)

2016-11-01: Mesa 13 with OpenGL 4.4 and OpenGL ES 3.2

2017-02-13: Mesa 17.0 with OpenGL 4.5 and freedreno driver with OpenGL 3.0 and 3.1

2017-05-10: Mesa 17.1 OpenGL 4.2+ for Intel Ivy Bridge (more than Intel driver for Windows, OpenGL 3.3+ for Intel Open SWR Rasterizer (important for cluster Computer for huge simulations)

2017-12-08: Mesa 17.3 AMD Vulkan Driver RADV full compliant in Khronos Test of Vulkan 1.0

2018-05-18: Mesa 18.1 with Vulkan 1.1 (Intel ANV and AMD RADV)

2018-09-07: Mesa 18.2 with OpenGL 4.3 for Soft Driver VIRGL (important for virtual machines in cloud Cluster Computer), OpenGL ES 3.1 for Freedreno with Adreno A5xx

2019-06-11: Mesa 19.1 released with Intel's next generation 'iris' graphics driver for generation 8+ iGPUs[255]

2019-12-11: Mesa 19.3 released OpenGL 4.6 with Intel i965 with gen 7+ and optional Iris Gen 8+

2020-03-18: Mesa 20.0 released OpenGL 4.6 with AMD GCN

Performance

History

Project initiator Brian Paul was a graphics hobbyist. He thought it would be fun to implement a simple 3D graphics library using the OpenGL API, which he might then use instead of VOGL (very ordinary GL Like Library).[2] Beginning in 1993, he spent eighteen months of part-time development before he released the software on the Internet. The software was well received, and people began contributing to its development. Mesa started off by rendering all 3D computer graphics on the CPU. Despite this, the internal architecture of Mesa was designed to be open for attaching to graphics processor-accelerated 3D rendering. In this first phase, rendering was done indirectly in the display server, leaving some overhead and noticeable speed lagging behind the theoretical maximum. The Diamond Monster 3D, using the Voodoo Graphics chipset, was one of the first 3D hardware devices supported by Mesa.

The first true graphics hardware support was added to Mesa in 1997, based upon the Glide API for the then new 3dfx Voodoo I/II graphics cards and their successors.[209] A major problem of using Glide as the acceleration layer was the habit of Glide to run full screen, which was only suitable for computer games. Further, Glide took the lock of the screen memory, and thus the display server was blocked from doing any other GUI tasks.[256]

See also

References

  1. Marshall, David (16 December 2008). "VMware's year end acquisition of Tungsten Graphics". InfoWorld. Retrieved 6 August 2011.
  2. "Mesa Introduction". Mesa Team. Retrieved 8 June 2015.
  3. Engestrom, Eric (24 June 2020). "mesa 20.1.2". mesa-announce (Mailing list). Retrieved 25 June 2020.
  4. "Mesa Languages Page". Open Hub. Retrieved 2 March 2015.
  5. "Mesa 3D license". Retrieved 3 June 2015.
  6. "Improve OpenGL support for the Linux Graphics Drivers - Mesa". Indiegogo. 11 December 2013. Retrieved 21 January 2015.
  7. "AMD exploring new Linux driver Strategy". 22 March 2014. Retrieved 23 March 2014.
  8. "Direct3D 9 Support Released For Linux Via Gallium3D, Running Games - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  9. "mesa/mesa - The Mesa 3D Graphics Library". Retrieved 2 November 2016.
  10. "The OpenGL vs Mesa matrix". 25 March 2015. Retrieved 29 March 2015.
  11. "Mesa 11.0 Has Been Branched, The Release March Begins". 22 August 2015. Retrieved 22 August 2015.
  12. "Archived copy". Archived from the original on 4 November 2016. Retrieved 3 November 2016.CS1 maint: archived copy as title (link)
  13. "Mesa 17.0.0 Officially Released". Phoronix. 13 February 2017. Retrieved 13 February 2017.
  14. "mesa/mesa - The Mesa 3D Graphics Library". Cgit.freedesktop.org. Retrieved 1 August 2018.
  15. "The Big Changes, Improvements of Mesa 17.0 - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  16. "mesa/mesa - The Mesa 3D Graphics Library". Cgit.freedesktop.org. Retrieved 1 August 2018.
  17. "Program" (PDF). www.x.org. 2016.
  18. "mesa/mesa - The Mesa 3D Graphics Library". Cgit.freedesktop.org. Retrieved 1 August 2018.
  19. "A Look at the Huge Performance Boosts With Nouveau Mesa 17.0-devel on Maxwell - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  20. "Khronos Open-Sources OpenGL / OpenGL ES Conformance Tests - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  21. "The Grand Features of Mesa 17.1: Vega, RadeonSI Shader Cache, Maturing Vulkan, New OpenGL Extensions - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  22. "Mesa Release Notes". Mesa3d.org. Retrieved 1 August 2018.
  23. "The OpenGL vs Mesa matrix". mesamatrix.net. Retrieved 31 July 2016.
  24. "Title" (PDF). Retrieved 1 August 2018.
  25. "Event listing" (PDF). www.x.org.
  26. "Mesa 17.3 Features - Vulkan Updates, Better Performance - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  27. "Release calendar". Mesa3d.org. Retrieved 1 August 2018.
  28. "Mesa 18.0 Features Include Many OpenGL/Vulkan Improvements, Intel Shader Cache & Extras - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  29. "Mesa 18.2 Is Releasing Soon With Many OpenGL / Vulkan Driver Improvements - Phoronix". www.phoronix.com.
  30. "The Shiny New Features of Mesa 18.3 For Open-Source Intel / Radeon Graphics Drivers - Phoronix". www.phoronix.com.
  31. "Mesa Made Massive Progress In 2018 On Open-Source Vulkan / OpenGL Drivers - Phoronix". www.phoronix.com.
  32. https://www.phoronix.com/scan.php?page=news_item&px=Mesa-19.0-Features-Queue
  33. https://www.phoronix.com/scan.php?page=article&item=mesa190-rad-jan&num=1
  34. https://www.phoronix.com/scan.php?page=article&item=radeonsi-nir-2019&num=1
  35. https://www.phoronix.com/scan.php?page=news_item&px=Iris-GLSL-460-Compatibility
  36. https://www.phoronix.com/scan.php?page=article&item=mesa-193-features
  37. https://www.phoronix.com/scan.php?page=news_item&px=Mesa-20.0-rc1-Released
  38. https://www.phoronix.com/scan.php?page=news_item&px=Mesa-20.0-Released
  39. https://www.phoronix.com/scan.php?page=news_item&px=Mesa-20.1-Features
  40. https://www.phoronix.com/scan.php?page=news_item&px=Zink-OpenGL-3.0-Over-Vulkan
  41. https://mesa3d.org/relnotes/20.1.0.html
  42. https://mesa3d.org/relnotes/20.1.1.html
  43. https://mesa3d.org/relnotes/20.1.2.html
  44. Larabel, Michael (4 March 2015). "OpenVG Support Stripped From Gallium3D". Phoronix. Retrieved 11 July 2015.
  45. https://gitlab.freedesktop.org/mesa/mesa/commit/3acd7a34ab05b87521b74f626ec637e7fdcc6595
  46. https://www.mesa3d.org/relnotes/10.6.0.html
  47. "latest patches to "nine" state tracker". Cgit.freedesktop.org. 4 February 2016.
  48. Larabel, Michael (14 December 2014). "Mesa 10.4 Officially Released With Direct3D 9 State Tracker". Phoronix. Retrieved 11 July 2015.
  49. https://www.phoronix.com/scan.php?page=article&item=mesa20-radeonsi-nir&num=1
  50. https://mesa3d.org/relnotes/20.0.0.html
  51. https://mesa3d.org/relnotes/20.0.1.html
  52. https://mesa3d.org/relnotes/20.0.2.html
  53. https://mesa3d.org/relnotes/20.0.3.html
  54. https://mesa3d.org/relnotes/20.0.4.html
  55. https://mesa3d.org/relnotes/20.0.5.html
  56. https://mesa3d.org/relnotes/20.0.6.html
  57. https://mesa3d.org/relnotes/20.0.7.html
  58. https://www.phoronix.com/scan.php?page=news_item&px=Mesa-19.3-RC1-Released
  59. https://www.phoronix.com/scan.php?page=article&item=mesa-193-features&num=1
  60. https://mesa3d.org/relnotes/19.3.0.html
  61. https://mesa3d.org/relnotes/19.3.1.html
  62. https://mesa3d.org/relnotes/19.3.2.html
  63. https://mesa3d.org/relnotes/19.3.3.html
  64. https://mesa3d.org/relnotes/19.3.4.html
  65. https://mesa3d.org/relnotes/19.3.5.html
  66. "Mesa Release Notes". www.mesa3d.org. Retrieved 25 September 2019.
  67. https://mesa3d.org/relnotes/19.2.1.html
  68. https://mesa3d.org/relnotes/19.2.2.html
  69. https://mesa3d.org/relnotes/19.2.3.html
  70. https://mesa3d.org/relnotes/19.2.4.html
  71. https://mesa3d.org/relnotes/19.2.5.html
  72. https://mesa3d.org/relnotes/19.2.6.html
  73. https://mesa3d.org/relnotes/19.2.7.html
  74. https://mesa3d.org/relnotes/19.2.8.html
  75. https://mesa3d.org/relnotes/19.1.0.html
  76. https://mesa3d.org/relnotes/19.1.2.html
  77. https://mesa3d.org/relnotes/19.1.3.html
  78. https://mesa3d.org/relnotes/19.1.4.html
  79. https://mesa3d.org/relnotes/19.1.5.html
  80. https://mesa3d.org/relnotes/19.1.6.html
  81. https://mesa3d.org/relnotes/19.1.7.html
  82. https://mesa3d.org/relnotes/19.1.8.html
  83. https://mesa3d.org/relnotes/19.0.0.html
  84. https://mesa3d.org/relnotes/19.0.1.html
  85. https://mesa3d.org/relnotes/19.0.2.html
  86. https://mesa3d.org/relnotes/19.0.3.html
  87. https://mesa3d.org/relnotes/19.0.4.html
  88. https://mesa3d.org/relnotes/19.0.5.html
  89. https://www.mesa3d.org/relnotes/19.0.6.html
  90. https://www.mesa3d.org/relnotes/19.0.7.html
  91. https://www.mesa3d.org/relnotes/19.0.8.html
  92. "Mesa 19.0.5 Release Notes". Retrieved 22 May 2019.
  93. https://www.mesa3d.org/relnotes/18.3.0.html
  94. https://www.mesa3d.org/relnotes/18.3.1.html
  95. https://www.mesa3d.org/relnotes/18.3.2.html
  96. https://www.mesa3d.org/relnotes/18.3.3.html
  97. https://www.mesa3d.org/relnotes/18.3.4.html
  98. https://www.mesa3d.org/relnotes/18.3.5.html
  99. https://www.mesa3d.org/relnotes/18.3.6.html
  100. "Index of /archive". mesa.freedesktop.org. Retrieved 24 January 2019.
  101. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  102. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  103. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  104. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  105. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  106. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  107. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  108. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  109. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  110. "Mesa 18.0 Should Arrive Today With Many Vulkan/OpenGL Driver Improvements - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  111. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  112. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  113. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  114. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  115. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  116. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  117. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  118. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  119. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  120. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  121. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  122. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  123. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  124. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  125. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  126. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  127. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  128. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  129. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  130. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  131. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  132. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  133. "Mesa Release Notes". mesa3d.org. Retrieved 24 January 2019.
  134. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  135. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  136. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  137. "GalliumCompute". Dri.freedesktop.org. Retrieved 24 January 2019.
  138. "Clover Status Update" (PDF). Retrieved 27 March 2020.
  139. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  140. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  141. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  142. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  143. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  144. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  145. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  146. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  147. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  148. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  149. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  150. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  151. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  152. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  153. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  154. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  155. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  156. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  157. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  158. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  159. "[Mesa-announce] mesa 17.0.0". Retrieved 13 February 2017.
  160. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  161. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  162. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  163. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  164. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  165. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  166. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  167. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  168. "[Mesa-announce] mesa 13.0.0". Retrieved 2 November 2016.
  169. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  170. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  171. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  172. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  173. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  174. "Mesa 12.0 Released With OpenGL 4.3 Support, Intel Vulkan & Many Other Features". 8 July 2016. Retrieved 8 July 2016.
  175. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  176. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  177. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  178. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  179. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  180. "Mesa Release Notes". www.mesa3d.org. Retrieved 24 January 2019.
  181. "[Mesa-announce] Mesa 11.2.0". Retrieved 4 April 2016.
  182. "Mesa Release Notes". mesa3d.org. Retrieved 1 August 2018.
  183. "[Mesa-announce] Mesa 11.1.0". Retrieved 15 December 2015.
  184. "[Mesa-announce] Mesa 11.0.0". Retrieved 26 September 2015.
  185. "[Mesa-announce] Mesa 10.6.0". Retrieved 15 June 2015.
  186. Larabel, Michael (26 October 2013). "Features To Be Found in Mesa 10.0". Phoronix.
  187. "[Mesa-announce] Mesa 10.5.0". Retrieved 7 March 2015.
  188. "[Mesa-announce] Mesa 10.4.0 released". Retrieved 7 March 2015.
  189. "[Mesa-announce] Mesa 10.3 released". Retrieved 7 March 2015.
  190. "[Mesa-announce] Mesa 10.2 released". Retrieved 7 March 2015.
  191. "[Mesa-announce] Mesa 10.1 released". Retrieved 7 March 2015.
  192. "[Mesa-announce] Mesa 10.0 released". Retrieved 7 March 2015.
  193. "Mesa 9.0 Release Notes". Mesa. 8 October 2012. Retrieved 11 July 2015.
  194. "Program" (PDF). www.x.org.
  195. "Radeon Vulkan Driver Added To Mesa, Fresh Radeon Vulkan vs. OpenGL Benchmarks + AMDGPU-PRO - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  196. "Vulkan Virgl Has Kicked Off For Supporting This Graphics/Compute API Within VMs - Phoronix". www.phoronix.com.
  197. "Bringing Android explicit fencing to the mainline". LWN.net. 5 October 2016.
  198. "libgbm in the Debian repositories". Packages.debian.org.
  199. "Enabling Alternative Window Systems with a non-Mesa Graphics Driver Implementation". X.org.
  200. "Nouveau Video Acceleration". freedesktop.org.
  201. "Radeon Feature Matrix". freedesktop.org.
  202. Toral, Iago (8 August 2014). "Diving into Mesa". Retrieved 19 May 2016.
  203. "Direct Rendering Infrastructure Status Page". freedesktop.org.
  204. "How to improve gaming performance on your Linux machine - APC". Apcmag.com. 25 July 2013. Retrieved 1 August 2018.
  205. "Linux: Mesa, Gallium3D, Nouveau and NVIDIA Drivers, OpenGL Test (GTX 280, GTX 480, GTX 580) – Geeks3D". Geeks3d.com. Retrieved 1 August 2018.
  206. "Nouveau Driver Remains Much Slower Than NVIDIA's Official Driver - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  207. "Intel/NVIDIA/AMD Compete on Open/Closed Source Linux GPU Driver Performance - Phoronix". Phoronix.com. Retrieved 1 August 2018.
  208. Paul, Brian (10 August 2000). "Introduction to the Direct Rendering Infrastructure". Dri.sourceforge.net. Retrieved 25 January 2012.
  209. "DRI2". X.org. Archived from the original on 16 April 2013. Retrieved 25 January 2012.
  210. "DRI3 and Present [LWN.net]". lwn.net. Retrieved 1 August 2018.
  211. "[PATCH 0/6] Add DRI3000 support to core and i965 drivers". Lists.freedesktop.org. Retrieved 1 August 2018.
  212. "xorg-x11-drv-intel-2.99.917-19.20151206.fc23 (re)enabled dri3 by default - kde - Fedora Mailing-Lists". lists.fedoraproject.org. Retrieved 3 December 2016.
  213. "Radeon-AMDGPU-1.19-Updates". Google.de. Retrieved 3 December 2016.
  214. "LLVMpipe: OpenGL With Gallium3D on Your CPU". Phoronix.com. 30 April 2010. Retrieved 4 November 2014.
  215. "llvmpipe". mesa3d.org. Retrieved 8 June 2015.
  216. "OpenSWR". openswr.org. Retrieved 1 August 2018.
  217. "Mesamatrix: The OpenGL vs Mesa matrix". mesamatrix.net. Retrieved 1 August 2018.
  218. "OpenSWR". openswr.org. Retrieved 1 August 2018.
  219. "Archived copy". Archived from the original on 28 August 2018. Retrieved 28 August 2018.CS1 maint: archived copy as title (link)
  220. "Tracking Mesa's VirGL OpenGL Features - Phoronix". www.phoronix.com.
  221. "Mesa's VirGL Now Has OpenGL 4.2 Support To Offer Guest VMs - Phoronix". www.phoronix.com.
  222. "The Current Performance of Virgl3D, Future Plans - Phoronix". www.phoronix.com.
  223. "Archived copy" (PDF). Archived from the original (PDF) on 1 October 2018. Retrieved 13 December 2018.CS1 maint: archived copy as title (link)
  224. "DRI megadrivers". X.org. 25 September 2013.
  225. "VDPAU & XvMC state trackers are now separate libraries". Phoronix.com. 23 June 2014.
  226. "Build configuration file". cgit.freedesktop.org. Gallium documentation.
  227. Fonseca, José (27 April 2008). "Gallium3D: Introduction". Retrieved 20 June 2014.
  228. Fonseca, José. "MESA3D.org: Introduction". Retrieved 28 October 2016.
  229. "Gallium3D Now in Mainline Mesa Code-Base!". Phoronix. 11 February 2009. Retrieved 26 October 2010.
  230. "The state of Nouveau, part 2". LWN.net. 26 February 2008. Retrieved 7 March 2008.
  231. "Nouveau Companion 36". Nouveau.freedesktop.org. 7 March 2008. Archived from the original on 7 March 2013. Retrieved 1 April 2008.
  232. "ATI R300 Gallium3D DRI Support Is "Done"". Phoronix. 9 November 2009. Retrieved 15 November 2010.
  233. "Radeon "R600g" Gallium3D Driver Merged To [Mesa] Master". Phoronix. 27 May 2010. Retrieved 26 October 2010.
  234. "X.Org Wiki GalliumStatus". Xorg. 22 September 2010. Retrieved 7 December 2010.
  235. "iris: Add a new experimental Gallium driver for Intel Gen8+ GPUs (!283) · Merge Requests · Mesa / mesa". GitLab. Retrieved 21 September 2019.
  236. "TG-Gallium3D". Tungsten Graphics. Archived from the original on 3 May 2008. Retrieved 1 April 2008.
  237. Rusin, Zack (6 February 2008). "GPGPU". Retrieved 1 April 2008.
  238. Rusin, Zack (7 February 2008). "OpenVG and accelerating 2D". Retrieved 1 April 2008.
  239. "DRI2". 4 October 2007. Archived from the original on 4 July 2008. Retrieved 1 April 2008.
  240. Rusin, Zack (2 November 2007). "Gallium3D LLVM". Retrieved 1 April 2008.
  241. Marshall, David (16 December 2008). "VMware's year end acquisition of Tungsten Graphics". InfoWorld.
  242. "Gallium". Freedesktop.org. 2 November 2011. Retrieved 24 August 2012.
  243. "Nouveau Companion 37". Nouveau.freedesktop.org. 21 March 2008. Archived from the original on 8 February 2012. Retrieved 1 April 2008.
  244. "nouveau: say goodbye to the old DRI driver... (cgit on FDO)". Cgit.freedesktop.org. 13 July 2008.
  245. "Gallium3D Now in Mainline Mesa Code-Base!". Phoronix.com. 11 February 2009.
  246. Larabel, Michael (25 February 2009). "Gallium3D, EGL Now Buildable on FreeBSD". Phoronix.
  247. "OpenVG state tracker is in Mesa 3D". Sourceforge.net. 1 May 2009.
  248. "Mesa 7.5 Release Notes / 17 July 2009". Mesa3d.org. 17 July 2009. Archived from the original on 13 June 2010. Retrieved 12 September 2017.
  249. "r600g: add initial evergreen support (cgit on FDO)". Cgit.freedesktop.org. 10 September 2010.
  250. "d3d1x: add new Direct3D 10/11 COM state tracker for Gallium". Cgit.freedesktop.org. 21 September 2010.
  251. Larabel, Michael (30 November 2011). "The Gallium3D Intel 965 Driver Gets Dropped". Phoronix. p. 1. Retrieved 1 December 2011.
  252. Larabel, Michael (30 November 2011). "The Gallium3D Cell Driver Gets Dropped Too". Phoronix. p. 1. Retrieved 1 December 2011.
  253. "nine: Add state tracker nine for Direct3D9 (v3)". Cgit.freedesktop.org. 18 November 2014.
  254. "Mesa 19.1 Released With Experimental Intel Gallium3D, Other New GL/VLK Drivers Too - Phoronix". www.phoronix.com. Retrieved 21 September 2019.
  255. "What's the relationship between Glide and DRI?". dri.freedesktop.org. Retrieved 25 January 2012.
Various layers within Linux, also showing separation between the userland and kernel space
User mode User applications For example, bash, LibreOffice, GIMP, Blender, 0 A.D., Mozilla Firefox, etc.
Low-level system components: System daemons:
systemd, runit, logind, networkd, PulseAudio, ...
Windowing system:
X11, Wayland, SurfaceFlinger (Android)
Other libraries:
GTK+, Qt, EFL, SDL, SFML, FLTK, GNUstep, etc.
Graphics:
Mesa, AMD Catalyst, ...
C standard library open(), exec(), sbrk(), socket(), fopen(), calloc(), ... (up to 2000 subroutines)
glibc aims to be POSIX/SUS-compatible, musl and uClibc target embedded systems, bionic written for Android, etc.
Kernel mode Linux kernel stat, splice, dup, read, open, ioctl, write, mmap, close, exit, etc. (about 380 system calls)
The Linux kernel System Call Interface (SCI, aims to be POSIX/SUS-compatible)
Process scheduling
subsystem
IPC
subsystem
Memory management
subsystem
Virtual files
subsystem
Network
subsystem
Other components: ALSA, DRI, evdev, LVM, device mapper, Linux Network Scheduler, Netfilter
Linux Security Modules: SELinux, TOMOYO, AppArmor, Smack
Hardware (CPU, main memory, data storage devices, etc.)
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.