r300: prepare for texcopy code sharing