mesa: use _mesa_format_matches_format_and_type() in texstore code
authorBrian Paul <brianp@vmware.com>
Fri, 27 Jan 2012 03:01:12 +0000 (20:01 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 28 Jan 2012 01:21:45 +0000 (18:21 -0700)
commitb27792335e284bcddcbcfa807e5152feff330f58
tree116db2a337312b0e08792d3f8acdb771c44b69fe
parent94a0d38c240625202d21a7c4522ad8a1c9bc1a89
mesa: use _mesa_format_matches_format_and_type() in texstore code

This simplifies the code quite a bit, consolidates some cases and
possibly catches more cases for the memcpy path.

More such changes will follow.  Do just a few at a time to help bisect
any possible regressions.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/texstore.c