r300g: turn rasterizer state into a command buffer