Well that is what Gallium is designed to deal with right? Provide a winsys driver that is hardware dependent and then use that as a way to translate GPU-independent APIs to GPU-specific instructions...
Gallium3D should be introduced in a testable form in Mesa 7.5.