Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How is Mesa different from OpenGL drivers?

Tags:

opengl

mesa

What exactly does it mean to say that Mesa is an implementation of OpenGL? Don't the drivers of my Nvidia card implement all the OpenGL functions, etc.? So given that the drivers of my Nvidia card are taking Opengl calls and handing them off to the hardware, what exactly does Mesa do? Can someone clarify the distinction between Mesa and drivers?

like image 241
user782220 Avatar asked Sep 12 '12 07:09

user782220


People also ask

Is Mesa a OpenGL?

Mesa, also called Mesa3D and The Mesa 3D Graphics Library, is an open source implementation of OpenGL, Vulkan, and other graphics API specifications.

Can I use Mesa drivers on Windows?

Mesa is primarily developed and used on Linux systems. But there's also support for Windows, other flavors of Unix and other systems such as Haiku.

Do NVIDIA drivers include OpenGL?

NVIDIA supports OpenGL and a complete set of OpenGL extensions, designed to give you maximum performance on our GPUs.


2 Answers

Can someone clarify the distinction between Mesa and drivers?

Mesa provides the client side OpenGL interface for the open source GPU drivers based on the DRI2/DRM architecture. Or in other words: It's also a part of a driver.

If you've got the proprietary drivers from NVidia or AMD installed you don't need Mesa. If you want to use the open source drivers (nouveau, radeon, radeonhd, intel) you need Mesa.

like image 165
datenwolf Avatar answered Oct 16 '22 16:10

datenwolf


I believe LinuxQuestions.org forum member geeman2.0 provided a good explanation for this matter:

OpenGL and Mesa aren't really two separate choices, but rather Mesa is a specific type of OpenGL.

OpenGL is simply an interface that defines a standard set of functions needed for drawing 3d graphics. It doesn't involve the actual code that makes these functions happen, it only specifies what the functions are called and what they are supposed to do.

An openGL implementation provides the actual code that runs the methods specified by the OpenGL standard. Without an implementation installed, you cannot run any opengl programs.

Mesa is just one of many OpenGL implementations, and is the most standard one included in linux distributions. It does all the work in software, which is why it is slow.

When you install Nvidia or ATI drivers for a fancy graphics card, these drivers provide a new OpenGL implementation that runs on the graphics card. This implementation would take the place of the Mesa implementation, but it is still an openGL implementation. That is, all of Mesa/ATI/NVidia drivers implement the same set of functions, they just do it in different ways, and they are all openGL.

Source

like image 28
Waldir Leoncio Avatar answered Oct 16 '22 16:10

Waldir Leoncio