libGL: Consolidate DRI initialization in dri_glx.c

Move a lot of code over from glx_ext.c.
3 files changed