mesa: rewrite, simplify some of the logic in _mesa_format_matches_format_and_type()
authorBrian Paul <brianp@vmware.com>
Fri, 27 Jan 2012 03:01:11 +0000 (20:01 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 28 Jan 2012 01:21:44 +0000 (18:21 -0700)
commit952ca0785236729b69e154b3b48783fc4d9a5526
tree661b877544b188c4e90c5dcde54ca47afe11c54a
parent966720f507f71d2dce1f3499d7b29d98b615effe
mesa: rewrite, simplify some of the logic in _mesa_format_matches_format_and_type()

In preparation for adding GL_PACK/UNPACK_SWAP_BYTES support.

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