See [[gallium docs|https://docs.mesa3d.org/gallium/index.html]] for writing new GL drivers