r300g: cleanup texture creation code