dri/swrast: add OpenGL 2.1 functions