I am learning about how the OpenGL pipeline works in consideration of the OpenGL API and the driver. According to this answer: Link, one of the duties of the GPU driver is to
compile shaders in the machine code of the GPU
To have a better understanding, I started to examine the code of Nouveau driver, as it is opensource: Gitlab link. As far as I can understand, there should be a specific part in this repo, where the shaders are compiled into machine code. So the driver, indirectly implements theglCompileShader()
method after it has been translated to the driver specific functions by the OpenGL client library (in that case: by Mesa).
I would like to know, which part of the Nouveau driver is responsible for the above method.