mesa/texstore: Use _mesa_swizzle_and_convert when possible
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 11 Jul 2014 15:55:47 +0000 (08:55 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Aug 2014 17:56:17 +0000 (10:56 -0700)
commit3dbf5bf6571e0c9d3e4febce01dea82be190d9d2
tree454882d852a1657fbe1e864bcfeebbb81d8acd37
parent4c8fc268358034c12b9679aad8e113ce96ad57a7
mesa/texstore: Use _mesa_swizzle_and_convert when possible

This should be both faster and more accurate than our general slow-path of
converting everything to float.

v2: Add a comment to top of the texstore_swizzle function

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texstore.c