R600: Improve texture handling

llvm-svn: 182125
12 files changed