r300g: implement the texture barrier