r300-gallium: Move maths from r300_state to r300_state_inlines.