SUPPORT THE WORK

GetWiki

Mesa (computer graphics)

ARTICLE SUBJECTS
aesthetics  →
being  →
complexity  →
database  →
enterprise  →
ethics  →
fiction  →
history  →
internet  →
knowledge  →
language  →
licensing  →
linux  →
logic  →
method  →
news  →
perception  →
philosophy  →
policy  →
purpose  →
religion  →
science  →
sociology  →
software  →
truth  →
unix  →
wiki  →
ARTICLE TYPES
essay  →
feed  →
help  →
system  →
wiki  →
ARTICLE ORIGINS
critical  →
discussion  →
forked  →
imported  →
original  →
Mesa (computer graphics)
[ temporary import ]
please note:
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
{{short description|Free and open-source library for 3D graphics rendering}}{{Use dmy dates|date=March 2020}}







factoids
! rowspan=2|Mesa Version !! rowspan=2|First Release Date !! rowspan=2|Last updateWEB,weblink Release Notes — the Mesa 3D Graphics Library latest documentation, !! Vulkan || OpenCL !! OpenGL !! OpenGL ES !! OpenVG !! EGL !! GLX !! Direct3D! 1.3.2642023-09-08 !! 3.02020-11-30 !! 4.62017-07-31 !! 3.2.62019-07-10 !! 1.12008-12-03 !! 1.52014-03-19 !! 1.42005-12-16 !! 122015-07-29
Currently: Igalia, Collabora, Valve Corporation>Valve, Intel, Google, Advanced Micro Devices, VMwareFormerly: Tungsten GraphicsHTTP://WWW.INFOWORLD.COM/D/VIRTUALIZATION/VMWARES-YEAR-END-ACQUISITION-TUNGSTEN-GRAPHICS-196PUBLISHER=INFOWORLDFIRST=DAVIDACCESS-DATE=6 AUGUST 2011, | released = {{#statements:publication date}}propertyreferenceP548=Q2804309}}propertyP348|P548=Q1072356}}property|P1324}}| programming language = {{#statements:programmed in}}Cross-platform (Berkeley Software Distribution>BSDs, Haiku, Linux, etc.)| genre = Graphics library| license = {{#statements:copyright license}}property|P856}}}}Mesa, also called Mesa3D and The Mesa 3D Graphics Library, is an open source implementation of OpenGL, Vulkan, and other graphics API specifications. Mesa translates these specifications to vendor-specific graphics hardware drivers.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 developed mostly 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.WEB,weblink Improve OpenGL support for the Linux Graphics Drivers - Mesa, Indiegogo, 11 December 2013, 21 January 2015, {{TOC limit|3}}

Overview

File:Linux kernel and OpenGL video games.svg|thumb|300px|Video games outsource rendering calculations to the GPU over OpenGL in real-time. Shaders are written in OpenGL Shading Language or SPIR-VSPIR-VFile:Linux Graphics Stack 2013.svg|thumb|300px|Illustration of the Linux graphics stack: DRM & libDRM, Mesa 3D. Display server belongs to the windowing systemwindowing system

Implementations of rendering APIs

File:The Linux Graphics Stack and glamor.svg|thumb|300px|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.WEB,weblink AMD exploring new Linux driver Strategy, 22 March 2014, 23 March 2014, ]]Mesa is known as housing implementations 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.WEB,weblink Direct3D 9 Support Released For Linux Via Gallium3D, Running Games - Phoronix, Phoronix.com, 1 August 2018, 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 especially 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 conformanceWEB,weblink mesa/mesa - The Mesa 3D Graphics Library, 2 November 2016, WEB,weblink The OpenGL vs Mesa matrix, 25 March 2015, 29 March 2015, visualized at {{URLweblink}}. 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.WEB,weblink Mesa 11.0 Has Been Branched, The Release March Begins, 22 August 2015, 22 August 2015, 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).1st stable version of 2017 is 17.0 (new year Counting).WEB,weblink mesa/mesa - The Mesa 3D Graphics Library, Cgit.freedesktop.org, 1 August 2018, WEB,weblink The Big Changes, Improvements of Mesa 17.0 - Phoronix, Phoronix.com, 1 August 2018, Ready features are certified OpenGL 4.5, OpenGL 4.5 for Intel Haswell,WEB,weblink mesa/mesa - The Mesa 3D Graphics Library, Cgit.freedesktop.org, 1 August 2018, WEB,weblink Program, 2016, www.x.org, OpenGL 4.3 for Nvidia Maxwell and Pascal (GM107+).WEB,weblink mesa/mesa - The Mesa 3D Graphics Library, Cgit.freedesktop.org, 1 August 2018, 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.WEB,weblink A Look at the Huge Performance Boosts With Nouveau Mesa 17.0-devel on Maxwell - Phoronix, Phoronix.com, 1 August 2018, 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.WEB,weblink Khronos Open-Sources OpenGL / OpenGL ES Conformance Tests - Phoronix, Phoronix.com, 1 August 2018, 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.WEB,weblink The Grand Features of Mesa 17.1: Vega, RadeonSI Shader Cache, Maturing Vulkan, New OpenGL Extensions - Phoronix, Phoronix.com, 1 August 2018, WEB,weblink Mesa Release Notes, Mesa3d.org, 1 August 2018, Due to the modularized nature of OpenGL, Mesa can 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.WEB,weblink The OpenGL vs Mesa matrix, mesamatrix.net, 31 July 2016, 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.WEB,weblink Event listing, www.x.org, 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.WEB,weblink Mesa 17.3 Features - Vulkan Updates, Better Performance - Phoronix, Phoronix.com, 1 August 2018, 1st version of 2018 is 18.0 and available since March 2018 by same scheme in 2017.WEB,weblink Release calendar, Mesa3d.org, 1 August 2018, 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.WEB,weblink Mesa 18.0 Features Include Many OpenGL/Vulkan Improvements, Intel Shader Cache & Extras - Phoronix, Phoronix.com, 1 August 2018, 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.WEB,weblink Mesa 18.2 Is Releasing Soon With Many OpenGL / Vulkan Driver Improvements - Phoronix, www.phoronix.com, 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.WEB,weblink The Shiny New Features of Mesa 18.3 For Open-Source Intel / Radeon Graphics Drivers - Phoronix, www.phoronix.com, WEB,weblink Mesa Made Massive Progress In 2018 On Open-Source Vulkan / OpenGL Drivers - Phoronix, www.phoronix.com, 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.WEB,weblink The New Features on Deck for Mesa 19.0: Vulkan Additions, FreeSync, Soft FP64 & More - Phoronix, WEB,weblink Mesa 18.2 vs. 18.3 vs. 19.0 January Benchmarks for RadeonSI/RADV - Phoronix, 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.WEB,weblink Running the RadeonSI NIR Back-End with Mesa 19.1 Git - Phoronix, 3rd Version of 2019 is 19.2. OpenGL 4.6 is Beta ready for new Intel Iris Driver.WEB,weblink Intel's Iris Gallium3D Driver Now Has Better OpenGL Compatibility Profile Support - Phoronix, 4th Version of 2019 is 19.3. OpenGL 4.6 is ready for Intel i965 and optional for new Iris Driver.WEB,weblink Mesa 19.3 is Introducing a Lot of Open-Source OpenGL + Vulkan Driver Improvements - Phoronix, 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+.WEB,weblink Mesa 20.0-rc1 Released with Intel Gallium3D Default, OpenGL 4.6 for RadeonSI, Vulkan 1.2 - Phoronix, WEB,weblink Mesa 20.0 Released with Big Improvements for Intel, AMD Radeon Vulkan/OpenGL - Phoronix, 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.WEB,weblink Mesa 20.1 Features Include Big Improvements for Open-Source Intel, Radeon Graphics Drivers - Phoronix, 3rd Version of 2020 is 20.2. OpenGL 3.0 for Zink is one new feature. LLVMpipe will support OpenGL 4.3+ (4.5+ in 20.3). ARM Panfrost is mostly improved with many modules. Shared virtual memory is possible for OpenCL in Nouveau with Pascal and higher.WEB,weblink Zink is Now OpenGL 3.0 Complete for Generic GL over Vulkan - Phoronix, WEB,weblink Mesa 20.2 Development Ends After Many New Features Land - Phoronix, WEB,weblink Mesa 20.2's Nouveau Enables HMM, OpenCL SVM Now Supported - Phoronix, 4th Version of 2020 is 20.3. v3d and v3dv are new drivers for OpenGL and Vulkan 1.0 with Broadcom hardware like Raspberry Pi 4. OpenCL 1.2 is full supported in clover module. Zink support OpenGL 3.3+. LLVMpipe virtual driver support now OpenGL 4.5+ with 4.6 in view. Lavapipe (originally called ValliumWEB,weblink Mesa's Vulkan Software Implementation Now Known as Lavapipe, Phoronix, ) as Vulkan Tree of LLVMpipe is merged.WEB,weblink V3DV Developers Lay Out Plans for Upstreaming the Raspberry Pi 4 Vulkan Driver in Mesa - Phoronix, WEB,weblink OpenCL 1.2 Support Merged for Mesa's Gallium3D Clover While OpenCL 3.0 is Being Tackled - Phoronix, WEB,weblink Zink in Mesa 20.3 Now Hits OpenGL 3.3, Can Run Blender with This OpenGL-on-Vulkan - Phoronix, WEB,weblink OpenGL 4.5 Now Enabled for LLVMpipe with Mesa 20.3, to be Back-Ported for 20.2 - Phoronix, WEB,weblink VALLIUM Merged into Mesa 20.3 as Vulkan Front-End to Gallium3D, Phoronix, In Mesa 21.0 d3d12 will be merged with OpenGL 3.0 to 3.3. Microsoft and Collabora develops new emulation d3d12 in WSL2 to Windows 10 with Direct 3D 12. OpenCL 1.2 is also target in d3d12. An acceleration of factor 2 to 5 is done in Benchmark SPECviewperf with improved OpenGL Code.WEB,weblink Mesa 21.0 Merges Direct3D 12 Gallium3D Driver - Phoronix,weblink {{Webarchive|url=https://web.archive.org/web/20201030010819weblink |date=30 October 2020 }} {{Bare URL PDF|date=March 2022}}WEB,weblink Microsoft + Collabora Working to Map OpenGL/OpenCL over DirectX 12 - Phoronix, WEB,weblink Mesa Now 2~5x Faster for SPECViewPerf Following OpenGL Optimizations - Phoronix, Many Mesa 21.0 features improves performance.WEB,weblink Mesa 21.0 Has Many New Features Especially for Radeon Open-Source Graphics - Phoronix, New Release 21.0.0 is public since 11 March 2021.Mesa 21.1 is second release of year 2021.WEB,weblink Mesa 21.1-rc1 Released with RADV Optimizations, Faster Zink, Many Other New Features - Phoronix, OpenGL 4.6+ and OpenGL ES 3.1+ is available for Zink. AMD Driver 600g can change to NIR with more possibilities for old Radeeon HD 5000 and 6000 cards.WEB,weblink Mesa%2021.1 - Phoronix, Qualcomm Turnip reaches Vulkan 1.1+ and software emulation Lavapipe Vulkan 1.1+. Google VirtIO GPU Driver Venus with Vulkan 1.2+ is merged in experimental state with low performance in mesa main tree.WEB,weblink Google's VirtIO-GPU "Venus" Vulkan Driver Merged into Mesa 21.1 - Phoronix, Mesa 21.2 is third release of year 2021. Google Virtual Vulkan IO Driver Venus will be official introduced with full Vulkan 1.2+ support (more mesamatrix). ARM Panfrost: OpenGL ES 3.1+ Support is available and panVK is the new Vulkan Driver. Initial support started for ARM Apple M1 with new driver Asahi. 21.2 is available since 4 August 2021.WEB,weblink Mesa 21.2 Released with New Intel Crocus Driver, PanVK, Early M1 Code - Phoronix, An old plan is to split old drivers in a classic tree with many advantages in programming, support, bug fixing for the modern gallium 3D part. One problem here is Intel i965 with support of Popular old hardware to Intel Haswell and before also with Windows 10 support.WEB,weblink Proposal Raised for Dropping Mesa's Classic OpenGL Drivers from Mainline This Year - Phoronix, A new Gallium3D driver Crocus for Intel Gen 4 Graphics to Haswell is here in development to complete here the gallium3D area with possible split in the next time of year 2021. Crocus is optional available in 21.2.WEB,weblink Crocus Gallium3D Nears Mainline Mesa for Gallium3D i965 Through Haswell Graphics - Phoronix, Amber branch is for old drivers without Gallium 3D Functions like Radeon R200, intel i915 and 965 with actual version 21.3.9.WEB,weblink Amber Branch — the Mesa 3D Graphics Library latest documentation, In Version 22.0 Classic drivers are retired. Vulkan 1.3 is available for Intel Anvil and AMD RADV.WEB,weblink Mesa 22.0-rc1 Released with Many Radeon & Intel Linux GPU Driver Features, Vulkan 1.3, Microsoft introduces new driver „Dozen“ for WSL 2 in early development stage as Vulkan over d3d12 in Mesa 22.1.WEB,weblink Mesa's "Dozen" Close to Providing Vulkan over Direct3D 12, RustiCL is available at 22.3 with official OpenCL 3.0 Conformance for Intel XE Graphics. Performance is equal and better to AMD ROCm with AMD 6700 XT Card.WEB,weblink Mesa's Rusticl Achieves Official OpenCL 3.0 Conformance, WEB,weblink Mesa's Rusticl OpenCL Implementation Can Outperform Radeon's ROCm Compute Stack, A main development target of Mesa 23.0 was ray tracing for Vulkan.WEB,weblink Mesa 23.0 Feature Development Ends with Many Vulkan Additions, WEB,weblink Mesa 23.0 Released with Many Changes for Open-Source Radeon & Intel Graphics Drivers, Microsoft develops the Dozen driver for Vulkan in WSL. Vulkan 1.0+ with 80% 1.1 and 1.2 will be available in Mesa 23.2 after delay to 23.1 (See mesamatrix).WEB,weblink Microsoft's DZN Mesa Driver Already Hits Vulkan 1.2, RustiCL for AMD hardware is available in 23.1.WEB,weblink Mesa 23.1 Released with RadeonSI Rusticl-OpenCL, RADV GPL, VirGL for virtual machines jumps in Mesa 23.2 to OpenGL 4.6.WEB,weblink Mesa 23.2 Virgl Lands Support for OpenGL 4.6 Inside Virtual Machines, Apple Asahi for Apple Arm Machines jumps from OpenGL 2.1 to 3.1 with 90% features of OpenGL 3.2 and 3.3 and OpenGL ES 2.0 to 3.0. WEB,weblink Mesa 23.2 Receives Asahi AGX Gallium3D Changes for OpenGL 3.1 + GLES 3.0, Microsoft Supports in WSL OpenGL 4.6+ in Mesa 24.0 (in Mesa 23.3: 4.3+) with direct 12 translation driver dozen.WEB,weblink Microsoft Enables OpenGL 4.6 Support over Direct3D 12,

Table of Rendering APIs

{| class="wikitable" style="text-align:center; font-size:90%"
csortKey=23.1.0}}| 2023-05-10MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-23.1-RELEASED>TITLE = MESA 23.1 RELEASED - PHORONIX, 1.3.244: 1.3+ (Intel Gen8+ to XE, AMD GCN Gen2+ to RDNA3, Lavapipe, Google Venus), 1.1+ (Qualcomm Turnip), 1.0+ (AMD GCN1, Broadcom v3dv, ARM Mali PanVK)1.0, 1.1, 1.2 (full support), 3.0 (wip, some functions in 21.1), OpenCL 1.2+ and 3.0 with new RustiCL for AMD GCN and Intel Xe (Mesa 22.3+), AMD R600, Nvidia Fermi+ (Mesa 23.1+)4.6 (19.3: Intel Gen 8+, 20.0: AMD GCN, 21.1: Zink, llvmpipe, 21.2: Intel Gen 7.5) 3.2 (20.3: Intel i965, AMD radeonsi, llvmpipe, VirGL, freedreno, Zink (21.3); 3.1: AMD r600, Nvidia nvC0, softpipe, Broadcom v3d, ARM Panfrost (21.3), d3d12 (22.0)TITLE=OPENVG SUPPORT STRIPPED FROM GALLIUM3DWEBSITE=PHORONIXDATE=4 MARCH 2015, HTTPS://GITLAB.FREEDESKTOP.ORG/MESA/MESA/COMMIT/3ACD7A34AB05B87521B74F626EC637E7FDCC6595 > TITLE=ST/VEGA: REMOVE. (3ACD7A34) · COMMITS · MESA / MESA · GITLAB, 3 March 2015, 1.5 1.4 9.0cHTTPS://CGIT.FREEDESKTOP.ORG/MESA/MESA/LOG/?QT=GREP&Q=NINE>TITLE=LATEST PATCHES TO "NINE" STATE TRACKERDATE=4 FEBRUARY 2016, LARABEL>FIRST1=MICHAELURL=HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MTG2MJCPHORONIX>ACCESS-DATE=11 JULY 2015, 14 December 2014,
cosortKey=23.0.0}}| 2023-02-23MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-23.0-RELEASED>TITLE = MESA 23.0 RELEASED - PHORONIX, 1.3.232: mostly equal to 23.1
osortKey=22.3.0}}| 2022-11-30MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-22.3-RELEASED>TITLE = MESA 22.3 RELEASED - PHORONIX, 22.3: 1.3.225: 1.3+ (Intel Gen8+, AMD GCN Gen2+, Lavapipe), 1.2+ (Google Venus), 1.1+ (Qualcomm Turnip, Lavapipe (22.2)), 1.0+ (AMD GCN1, Broadcom v3dv, ARM Mali PanVK)
osortKey=22.2.0}}| 2022-09-21MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-22.2-RELEASED>TITLE = MESA 22.2 RELEASED - PHORONIX,
osortKey=22.1.0}}| 2022-05-20MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-22.1-RELEASED>TITLE = MESA 22.1 RELEASED - PHORONIX,
osortKey=22.0.0}}| 2022-03-09MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-22.0-RELEASED>TITLE = MESA 22.0 RELEASED - PHORONIX,
osortKey=21.3.0}}| 2021-11-17MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-21.3-RELEASED>TITLE = MESA 21.3 RELEASED - PHORONIX, 21.3: 1.2.190 (Intel Gen8+, AMD GCN Gen2+, Google Venus (21.3), Lavapipe), 1.0+ (AMD GCN1, Broadcom v3dv), 1.1+ (Qualcomm Turnip, Lavapipe (21.1))
osortKey=21.2.0}}| 2021-08-04MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-21.2-RELEASED>TITLE = MESA 21.2 RELEASED WITH NEW INTEL CROCUS DRIVER, PANVK, EARLY M1 CODE - PHORONIX,
osortKey=21.1.0}}| 2021-05-05MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-21.1-RELEASED>TITLE = MESA 21.1 RELEASED WITH RADV VARIABLE RATE SHADING, MORE INTEL VULKAN IMPROVEMENTS - PHORONIX,
o sortKey=21.0.0}}| 2021-03-11MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-21.0-RELEASED>TITLE = MESA 21.0 RELEASED WITH NUMEROUS RADV IMPROVEMENTS, NEW VULKAN EXTENSIONS, MANY FIXES - PHORONIX,
o sortKey=20.3.0}}| 2020-12-03MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-20.3-RELEASED>TITLE = MESA 20.3 RELEASED WITH BIG IMPROVEMENTS FOR OPEN-SOURCE GRAPHICS DRIVERS - PHORONIX, 20.3: 1.2.158 (Intel Gen8+, AMD GCN Gen2+), 1.0+ (AMD GCN1, Broadcom v3dv (20.3))
o sortKey=20.2.0}}| 2020-09-28MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-20.2.2-RELEASED>TITLE=MESA 20.2.2 RELEASED WITH A RANDOM ASSORTMENT OF FIXES - PHORONIX, 1.0, 1.1, 1.2 (WIP) some failed conformance tests
osortKey=20.1.0}}| 2020-05-27MESA3D}}
osortKey=20.0.0}}| 2020-02-19MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=ARTICLE&ITEM=MESA20-RADEONSI-NIR&NUM=1>TITLE = RADEONSI NIR BENCHMARKS SHOW GREAT PROGRESS WITH MESA 20.0 - PHORONIX, 1.2+ (Intel Gen8+, AMD GCN Gen2+)
o sortKey=19.3.0}}| 2019-12-11MESA3D}}HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-19.3-RC1-RELEASED>TITLE = MESA 19.3-RC1 RELEASED WITH OPENGL 4.6 FOR INTEL, MANY VULKAN DRIVER IMPROVEMENTS - PHORONIX, HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=ARTICLE&ITEM=MESA-193-FEATURES&NUM=1>TITLE=MESA 19.3 IS INTRODUCING A LOT OF OPEN-SOURCE OPENGL + VULKAN DRIVER IMPROVEMENTS - PHORONIX, 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)
o sortKey=19.2.0}}| 2019-09-25MESA3D}} 4.5
o sortKey=19.1.0}}| 2019-06-11MESA3D}}
o sortKey=19.0.0}}| 2019-03-13| 19.0.8
osortKey=18.3.0}}| 2018-12-07| 18.3.6
osortKey=18.2.0}}| 2018-09-07| 18.2.8
o sortKey=18.1.0}}| 2018-05-18WEBSITE=PHORONIX.COM, 1 August 2018, | 1.1 (Intel Gen8+, AMD GCN Gen2+)(1.1.73)
o sortKey=18.0.0}}| 2018-03-27| 18.0.5| 1.0+ (1.0.66)
o sortKey=17.3.0}}| 2017-12-08| 17.3.9 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 incompleteHTTPS://DRI.FREEDESKTOP.ORG/WIKI/GALLIUMCOMPUTE/>TITLE=GALLIUMCOMPUTEACCESS-DATE=24 JANUARY 2019, HTTPS://WWW.X.ORG/WIKI/EVENTS/XDC2013/XDC2013TOMSTELLARDCLOVERSTATUS/XDC2013TOMSTELLARDCLOVERSTATUS.PDF>TITLE=CLOVER STATUS UPDATE, 27 March 2020,
o sortKey=17.2.0}}| 2017-09-04 17.2.8
osortKey=17.1.0}}| 2017-05-10| 17.1.10
o sortKey=17.0.0}}2017-02-13HTTPS://LISTS.FREEDESKTOP.ORG/ARCHIVES/MESA-ANNOUNCE/2017-FEBRUARY/000299.HTML>TITLE=[MESA-ANNOUNCE] MESA 17.0.0ACCESS-DATE=13 FEBRUARY 2017, MESA 17.0.0 OFFICIALLY RELEASED>URL=HTTP://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MESA-17.0-RELEASEDPHORONIX>ACCESS-DATE=13 FEBRUARY 2017, 13 February 2017, }}| 17.0.7
o sortKey=13.0}}DATE=NOVEMBER 2016, 2 November 2016, | 13.0.6| 4.4 (4.5 No Test Label)
o sortKey=12.0}}| 2016-07-08 DATE=8 JULY 2016 3.1
o sortKey=11.2}}DATE=4 APRIL 2016 4.1 (Intel 3.3+)
o sortKey=11.1}}DATE=15 DECEMBER 2015 3.0
o sortKey=11.0}}DATE=12 SEPTEMBER 2015 | 11.0.9
o sortKey=10.6}}DATE=15 JUNE 2015 3.3HTTPS://WWW.PHORONIX.COM/SCAN.PHP?PAGE=NEWS_ITEM&PX=MTQ5NJA >LAST1=LARABELTITLE=FEATURES TO BE FOUND IN MESA 10.0 PHORONIX >DATE=26 OCTOBER 2013, rowspan="9" | 1.4
o sortKey=10.5}}DATE=7 MARCH 2015 1.1
o sortKey=10.4}}DATE=14 DECEMBER 2014 | 10.4.7
o sortKey=10.3}}DATE=19 SEPTEMBER 2014 | rowspan="13" {{N/A}}
o sortKey=10.2}}DATE=7 JUNE 2014 | 10.2.9
o sortKey=10.1}}DATE=5 MARCH 2014 | 10.1.6
o sortKey=10.0}}DATE=DECEMBER 2013 | 10.0.5
o sortKey=9.0}} 2.0
o sortKey=8.0}}| 3.0
o sortKey=7.0}}| rowspan="7" {{N/A}}
o sortKey=6.0}} 1.3
o sortKey=5.0}}| 1.4
o sortKey=4.0}}| 1.3
o sortKey=3.0}}| 1.2
o sortKey=2.0}}| 1.1
o sortKey=1.0}}| 1.0
{{Version show=111111}}

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.Version 1.3 is immediately available with Mesa 22.0. Hardware with support of OpenGL ES 3.1 should run at Vulkan Level 1.3 and before.WEB,weblink Vulkan 1.3 Released with Dynamic Rendering in Core, New Roadmap Guidance for Modern GPUs, 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.WEB,weblink Program, www.x.org, It is to be expected that AMD's own proprietary Vulkan driver, which was released in March{{when|reason=The year is unclear|date=May 2022}}, and was announced to be released as free and open-source software in the future and be mainlined into Mesa, also abandons Gallium3D.WEB,weblink Radeon Vulkan Driver Added To Mesa, Fresh Radeon Vulkan vs. OpenGL Benchmarks + AMDGPU-PRO - Phoronix, Phoronix.com, 1 August 2018, RADV is a free project for AMD and is available since version 13.WEB,weblink RADV Radeon Vulkan Driver Submitted for Review to be Included in Mesa - Phoronix, 3 November 2016,weblink 4 November 2016, dead, 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.WEB,weblink Vulkan Virgl Has Kicked Off For Supporting This Graphics/Compute API Within VMs - Phoronix, www.phoronix.com, Lavapipe is a CPU-based Software Vulkan driver and the brother of LLVMpipe. Mesa Version 21.1 supports Vulkan 1.1+.WEB,weblink Lavapipe CPU-Based Vulkan Ported to Windows - Phoronix, Google introduces Venus Vulkan Driver for virtual machines in Mesa 21.1 with full support for Vulkan 1.2+.Qualcomm Turnip and Broadcom v3dv are new drivers for Qualcomm Adreno and Broadcom Raspberry 4 Hardware. Turnip is the Vulkan brother of freedreno for OpenGL. V3dv supports Vulkan 1.0+ since Mesa 20.3. In Version 21.1 Turnip supports Vulkan 1.1+.WEB,weblink The Open-Source Qualcomm "TURNIP" Vulkan Driver Adds Important Performance Feature - Phoronix, WEB,weblink TURNIP Vulkan Driver up and Running on Qualcomm's KGSL - Phoronix, WEB,weblink Raspberry Pi 4 Vulkan Driver "V3DV" Merged into Mesa 20.3 - Phoronix, Panfrost PanVK for ARM Mali is at way to Vulkan 1.1, but only 1.0 is stable available with Mesa 22.0.WEB,weblink PanVK Pulls Back from Advertising Vulkan 1.1 for Now, Project Dozen is connecting direct 3D 12 (d3d12) with Vulkan for Linux Emulation WSL2 in Windows 10 and 11. In Mesa 23.2 Vulkan 1.0 is full conformant supported and 80% of 1.1 and 1.2 (mesamatrix).weblink

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.WEB,weblink Bringing Android explicit fencing to the mainline, 5 October 2016, LWN.net,

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.WEB,weblink libgbm in the Debian repositories, Packages.debian.org, 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 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.WEB,weblink Enabling Alternative Window Systems with a non-Mesa Graphics Driver Implementation, X.org, This was not taken positively by the community, and Nvidia eventually changed their mind,WEB,weblink NVIDIA Wants Feedback On Its Device Memory Allocator Project, Phoronix, and took another approach.{{Clear}}

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/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.WEB,weblink Nouveau Video Acceleration, freedesktop.org, The free radeon driver supports Unified Video Decoder and Video Coding Engine through VDPAU and OpenMAX.WEB,weblink Radeon Feature Matrix, freedesktop.org, V4L2 is a kernel-to-user-space interface for video bit streams delivered by webcams or TV tuners.Due to patent concerns regrading the H.264, H.265 and VC-1 video codecs, Fedora Linux disabled support for VAAPI acceleration for those in its build of Mesa in September 2022.WEB, Fedora Linux Disabling Mesa's H.264 / H.265 / VC1 VA-API Support Over Legal Concerns,weblink 2022-10-01, Phoronix, en,

Device drivers

(File:Linux AMD graphics stack.svg|thumb|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.WEB, Toral, Iago, Diving into Mesa,weblink 8 August 2014, 19 May 2016, An overview over some (but not all) of the drivers available in Mesa is given at {{URLweblink}}.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 processor of the PlayStation 3, S3 Virge & Savage chipsets, VIA chipsets, Matrox G200 & G400, and more.WEB,weblink Direct Rendering Infrastructure Status Page, freedesktop.org, 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.WEB,weblink How to improve gaming performance on your Linux machine - APC, 25 July 2013, Apcmag.com,weblink" title="web.archive.org/web/20190125023409weblink">weblink 1 August 2018, 25 January 2019, WEB,weblink Linux: Mesa, Gallium3D, Nouveau and NVIDIA Drivers, OpenGL Test (GTX 280, GTX 480, GTX 580) – Geeks3D, Geeks3d.com, 10 January 2012, 1 August 2018, WEB,weblink Nouveau Driver Remains Much Slower Than NVIDIA's Official Driver - Phoronix, Phoronix.com, 1 August 2018, WEB,weblink Intel/NVIDIA/AMD Compete on Open/Closed Source Linux GPU Driver Performance - Phoronix, Phoronix.com, 1 August 2018, 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.{{When|date=November 2013}} 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.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.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.WEB,weblink DRI2, X.org, 25 January 2012, dead,weblink" title="archive.today/20130416120341weblink">weblink 16 April 2013, DRI3 is supported by the Intel driver since 2013WEB,weblink DRI3 and Present [LWN.net], lwn.net, 1 August 2018, WEB,weblink [PATCH 0/6] Add DRI3000 support to core and i965 drivers, 31 October 2013, Lists.freedesktop.org, 1 August 2018, and is default in some Linux distributions since 2016WEB,weblink xorg-x11-drv-intel-2.99.917-19.20151206.fc23 (re)enabled dri3 by default - kde - Fedora Mailing-Lists, lists.fedoraproject.org, en, 3 December 2016, to enable Vulkan support and more. It is also default on AMD hardware since late 2016 (X.Org Server 1.18.3 and newer).WEB,weblink Radeon-AMDGPU-1.19-Updates, Google.de, 3 December 2016, {{Clear}}

Software renderer

Mesa also contains an implementation of software rendering called {{mono|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.WEB,weblink LLVMpipe: OpenGL With Gallium3D on Your CPU, 30 April 2010, 4 November 2014, Phoronix.com, WEB,weblink llvmpipe, 8 June 2015, mesa3d.org, Since Mesa 10.x OpenGL 3.3+ is supported for Softpipe (10.3) and LLVMpipe (10.2). Actually 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.WEB,weblink OpenSWR, openswr.org, 1 August 2018, On the other hand, OpenGL 3.1+ is now supported.WEB,weblink Mesamatrix: The OpenGL vs Mesa matrix, mesamatrix.net, 1 August 2018, Acceleration values from 29 to 51 related to LLVMPIPE were measured in some examples.WEB,weblink OpenSWR, openswr.org, 1 August 2018, 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.WEB,weblink Mesa (Master): Virgl: Add driver for virtio-gpu 3D (V2), 28 August 2018,weblink 28 August 2018, dead, WEB,weblink Tracking Mesa's VirGL OpenGL Features - Phoronix, www.phoronix.com, WEB,weblink Mesa's VirGL Now Has OpenGL 4.2 Support To Offer Guest VMs - Phoronix, www.phoronix.com, WEB,weblink The Current Performance of Virgl3D, Future Plans - Phoronix, www.phoronix.com, WEB,weblink What's new in the virtual world?, 19 November 2023,weblink 1 October 2018, live,weblink {{Bare URL PDF|date=March 2022}}Actual virGL state in Mesamatrix is full support of OpenGL 4.6+ and OpenGL ES 3.2+ with some necessary Linux softwareweblink is a project of Microsoft for WSL2 emulation of OpenGL 3.3+ and OpenCL 1.2+ with Direct3D 12. D3D12 is merged in 21.0. Actual state in Mesa 23.1 is OpenGL 4.2+ with nearly 4.4+ and OpenGL ES 3.1+.Venus is a new Vulkan VirtIO GPU Driver for GPU in virtual machines by Google. Venus is merged in 21.1 and for public in 21.2 introduced. Venus supports Vulkan 1.3+ in Mesa 23.1. Hardware minimum is Vulkan 1.1 with some extensionsweblink

Mega drivers

The idea of bundling multiple drivers into a single "mega" driver was proposed by Emma 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.WEB,weblink DRI megadrivers, X.org, 25 September 2013, The state trackers for VDPAU and XvMC have become separate libraries.WEB,weblink VDPAU & XvMC state trackers are now separate libraries, Phoronix.com, 23 June 2014,

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

File:Division of labor cpu and gpu.svg|thumb|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 LayerSimple DirectMedia LayerFile:Mesa layers of crap 2014.svg|thumb|The Intermediate Representations (IRs) in Mesa: GLSL IR, Mesa IR, TGSI, and LLVM IR. Missing are HIR, LIR and NIR.]](File:Mesa layers of crap 2016.svg|thumb|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, this 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. SPIR-V's binary representation also 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 (New Internal Representation) was introduced to overcome TGSI limitations.WEB,weblink Introduction — NIR 0.0.1 documentation, WEB,weblink NIR: A new compiler IR for Mesa, NIR was extended in last and actual releases as base of Spir-V support and is since 2016 main development area. LLVMpipe, i965, RadeonSI, Nouveau, freedreno, vc4 are changed to NIR from TGSI. RADV, Zink and other new drivers starts with NIR. All drivers with full OpenGL 4.6 support are related to NIR by SPIR-V support. Also AMD r600 has a fork with NIR for better support of HD5000 and HD6000 series. This option for r600 is default since Mesa 21.0.

TGSI

The Tungsten Graphics Shader Infrastructure (TGSI) was introduced in 2008 by Tungsten Graphics. All Gallium3D-style UMDs ingest TGSI.NIR is now Main development area, so TGSI is only for older driver like r300g default infrastructure and will be deprecated in some years.GLSL-To-TGSI code will be deleted in Mesa 22.2. Default is newer NIR-to-TGSI with GLSL-to-NIR for all native NIR drivers. Some older TGSI drivers are supported with this NIR Code path. Later NIR-To-TGSI will be deprecated for native NIR drivers only.WEB,weblink Mesa Prepares to Drop Old GLSL-To-TGSI - Big Code Removal, Win for Performance & Fixes,

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 20.1.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









factoids
Cross-platform| platform = | genre = Graphics library| license = MIT Licenseweblink}}}}Gallium3D is a set of interfaces and a collection of supporting librariesWEB,weblink Gallium3D: Introduction, 27 April 2008, 20 June 2014, Fonseca, José, intended to ease the programming of device drivers for 3D graphics chipsets for multiple operating systems, rendering or video acceleration APIs. It is free and open-source graphics device driver software.A feature matrix is being provided at {{URLweblink}}.The development of Gallium3D started in 2008 at Tungsten Graphics,WEB,weblink MESA3D.org: Introduction, 28 October 2016, Fonseca, José, 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 2009WEB,weblink Gallium3D Now in Mainline Mesa Code-Base!, Phoronix, 11 February 2009, 26 October 2010, and is currently used by the free and open-source graphics driver for Nvidia (nouveau project),WEB,weblink The state of Nouveau, part 2, LWN.net, 26 February 2008, 7 March 2008, WEB,weblink Nouveau Companion 36, Nouveau.freedesktop.org, 7 March 2008, 1 April 2008,weblink" title="web.archive.org/web/20130307234203weblink">weblink 7 March 2013, dead, dmy-all,
for AMD's R300–R900,WEB,weblink ATI R300 Gallium3D DRI Support Is "Done", Phoronix, 9 November 2009, 15 November 2010
, WEB,weblink Radeon "R600g" Gallium3D Driver Merged To [Mesa] Master, Phoronix, 27 May 2010, 26 October 2010, WEB,weblink X.Org Wiki GalliumStatus, Xorg, 22 September 2010, 7 December 2010, Intel's 'Iris' driver for generation 8+ iGPUsWEB,weblink iris: Add a new experimental Gallium driver for Intel Gen8+ GPUs (!283) · Merge Requests · Mesa / mesa, GitLab, 20 February 2019, en, 21 September 2019, 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.
(File:Mesa layers of crap 2016.svg|thumb|VC4 and freedreno can both consume NIR directly (and fall back to tgsi_to_nir for shaders that do not use glsl_to_nir).)File:Linux Graphics Stack 2013.svg|thumb|Illustration of the LinuxLinuxFile:Gallium3D vs DRI graphics driver model.svg|thumb|Mesa/DRI and Gallium3D have different driver models. Both share a lot of free and open-source code.]](File:Gallium3D example matrix.svg|thumb|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.WEB
,weblink
,weblink" title="web.archive.org/web/20080503021058weblink">weblink
, dead
, 3 May 2008
, TG-Gallium3D
, Tungsten Graphics
, 1 April 2008
, WEB,weblink GPGPU, Rusin, Zack, 6 February 2008, 1 April 2008, WEB,weblink OpenVG and accelerating 2D, Rusin, Zack, 7 February 2008, 1 April 2008, 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.WEB
,weblink
, DRI2
, 4 October 2007
, 1 April 2008
, dead
,weblink" title="web.archive.org/web/20080704122122weblink">weblink
, 4 July 2008
, dmy-all
, 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.NIR is the new Layer representation in Mesa with full SPIR-V support and since 2019 main development area of all newer drivers with OpenGL 4.6 support.

LLVM usage

File:GlassyMesa3D.svg|thumb|GlassyMesa is an LLVM-based compiler stack for shaders written in GLSL. For SSA see the article Static single assignment formStatic single assignment formIn 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.WEB,weblink Gallium3D LLVM, Rusin, Zack, 2 November 2007, 1 April 2008, 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.{{Original research inline|date=March 2017}} 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).WEB, Marshall, David, 16 December 2008, VMware's year end acquisition of Tungsten Graphics, InfoWorld,weblink

Milestones

As of fall 2011, there were at least 10 known, mature and working Gallium3D drivers.WEB,weblink Gallium, Freedesktop.org, 2 November 2011, 24 August 2012, {{Failed verification|date=October 2013}}{{Citation needed|date=October 2013}} Open-source drivers for Nvidia graphics cards by the name of Nouveau team develops its drivers using the Gallium3D framework.WEB,weblink Nouveau Companion 37, Nouveau.freedesktop.org, 21 March 2008, 1 April 2008,weblink" title="web.archive.org/web/20120208005444weblink">weblink 8 February 2012, dead, dmy-all, 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.WEB,weblinkwebsite=Cgit.freedesktop.org, 13 July 2008, 2009-02-11: The gallium-0.2 branch was merged into mainline Master branch of Mesa.WEB,weblinkwebsite=Phoronix.com, 11 February 2009, Development is done in Mesa mainline.2009-02-25: Gallium3D can run on Linux as well as FreeBSD kernels.WEB, Larabel, Michael, Michael Larabel, 25 February 2009, Gallium3D, EGL Now Buildable on FreeBSD, Phoronix,weblink 2009-05-01: Zack Rusin from Tungsten Graphics added the OpenVG state tracker to Mesa 3D,WEB,weblinkwebsite=Sourceforge.net, 1 May 2009, 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.WEB,weblink Mesa 7.5 Release Notes / 17 July 2009, Mesa3d.org, 17 July 2009, 12 September 2017,weblink" title="web.archive.org/web/20100613083500weblink">weblink 13 June 2010, dead, dmy-all, 2010-09-10: Initial support for the Evergreen GPUs was added to the r600g driver.WEB,weblinkwebsite=Cgit.freedesktop.org, 10 September 2010, 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.WEB,weblinkwebsite=Cgit.freedesktop.org, 21 September 2010, In time, this might offer the ability to use recent Direct3D implementations on Linux systems.2011-11-30: Intel 965g and Cell Gallium drivers were removed from the master branch of Mesa as unmaintained and broken.WEB,weblink The Gallium3D Intel 965 Driver Gets Dropped, Phoronix, Larabel, Michael, Michael Larabel, 1, 30 November 2011, 1 December 2011, WEB,weblink The Gallium3D Cell Driver Gets Dropped Too, Phoronix, Larabel, Michael, Michael Larabel, 1, 30 November 2011, 1 December 2011, 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.WEB,weblinkwebsite=Cgit.freedesktop.org, 18 November 2014, 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.32016-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.22017-02-13: Mesa 17.0 with OpenGL 4.5 and freedreno driver with OpenGL 3.0 and 3.12017-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.02018-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 A5xx2019-06-11: Mesa 19.1 released with Intel's next generation 'iris' graphics driver for generation 8+ iGPUsWEB,weblink Mesa 19.1 Released With Experimental Intel Gallium3D, Other New GL/VLK Drivers Too - Phoronix, www.phoronix.com, 21 September 2019, 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 and Vulkan 1.2 for Intel2020-05-27: Mesa 20.1 released NIR vectorisation support and shared virtual memory support for OpenCL in Clover2020-11-30: Mesa 20.3 full support of OpenCL 1.2 in Clover2021-03-11: Mesa 21.0 initial support of "D3D12“: Direct 3D 12 for WSL2 in Windows 10 with OpenGL 3.3+, ARM Freedreno: OpenGL 3.3+2021-05-05: Mesa 21.1 initial support of Google VirtIO GPU Driver "Venus“ with Vulkan 1.2+; Zink: OpenGL 4.6+, OpenGL ES 3.1+; Qualcomm Turnip, Lavapipe: Vulkan 1.1+2021-08-04: Mesa 21.2 initial support of new Intel Crocus OpenGL 4.6 driver based on gallium3D to Intel Sandy Bridge to Haswell for old i965, Vulkan Driver panVK for ARM Panfrost2022-03-09: Mesa 22.0 full support of Vulkan 1.3 by Intel Anvil and AMD RADV2023-05-10: Mesa 23.1 OpenCL with Rust: RustiCL for AMD GCN Hardware available (more hardware wip)WEB,weblink Mesa 23.1 Released with RadeonSI Rusticl-OpenCL, RADV GPL, 2023-09-30: Mesa 23.2 with Apple Asahi OpenGL 3.1 and OpenGL ES 3.0, RADV supports Ray Tracing in AMD RDNA 2 and 3, Intel Anvil Vulkan H.265 decoding supportweblink

Performance

History

{{Expand section|date=September 2014}}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).WEB, Mesa Introduction,weblink Mesa Team, 8 June 2015, 4 May 2015,weblink" title="web.archive.org/web/20150504222505weblink">weblink dead, Beginning in 1993, he spent eighteen months of part-time development before he released the software on the Internet in February 1995.WEB, Project History,weblink Mesa Documentation, 11 March 2021, 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.WEB,weblink Introduction to the Direct Rendering Infrastructure, Paul, Brian, Dri.sourceforge.net, 10 August 2000, 25 January 2012, 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.WEB,weblink What's the relationship between Glide and DRI?, dri.freedesktop.org, 25 January 2012,

See also

References

{{Reflist}}

External links

  • {{Official website}}
  • WEB,weblink The history of Mesa, Edge, Jake, October 2013,

External links for Gallium3D

  • {{citation|url=https://www.freedesktop.org/wiki/Software/gallium/|title=freedesktop.org - Gallium3D|publisher=an article on the current state of Gallium3D}}
  • {{citation|url=http://jrfonseca.blogspot.de/2008/04/gallium3d-introduction.html|title=Introduction into Gallium3D|last=Fonseca|first=José|date=April 2008}}
  • {{citation|url=http://zrusin.blogspot.com/2007/09/gallium3d.html|title=Gallium3D|last=Rusin|first=Zack|date=21 September 2007}}
  • {{citation|url=https://lwn.net/Articles/257417/|title=Memory management for graphics processors|last=Corbet|first=Jonathan|date=November 2007}}
  • {{citation|url=http://www.bitblit.org/gsoc/g3dvl/|title=Generic GPU-Accelerated Video Decoding|publisher=Google Summer of Code 2008 project using Gallium|url-status=dead|archive-url=https://web.archive.org/web/20080731072038weblink|archive-date=31 July 2008}}
  • {{citation|url=http://akademy2008.kde.org/conference/slides/zack-akademy2008.pdf|title=Gallium3D: Graphics Done Right|type=presentation|last=Rusin|first=Zack|publisher=Akademy|date=2008}}
  • {{citation|url=http://stecchino.blip.tv/file/1181861/|archive-url=https://web.archive.org/web/20110101033018weblink|url-status=dead|archive-date=1 January 2011|title=Gallium3D: Graphics Done Right|type=presentation|last=Rusin|first=Zack|publisher=Akademy|date=2008|format=video}}
  • {{citation|url=http://revolf.free.fr/FOSDEM/2010/FOSDEM2010_ALTOS_007_Gallium3D.pdf|title=Update on Gallium3D ports to AROS and Haiku|publisher=FOSDEM 2010|date=7 February 2010}}
{{Linux layers}}{{Freedesktop.org}}

- content above as imported from Wikipedia
- "Mesa (computer graphics)" does not exist on GetWiki (yet)
- time: 7:23am EDT - Sat, May 18 2024
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 23 MAY 2022
GETWIKI 09 JUL 2019
Eastern Philosophy
History of Philosophy
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
CONNECT