for Gallium3D hackery