r300g: clean up the invariant state