Revert "mesa/formats: refactor by collapsing cases in switch statement by type"
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 21 Aug 2015 01:00:20 +0000 (18:00 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 21 Aug 2015 01:06:47 +0000 (18:06 -0700)
commit29e953b07b8c1e4d27f53c4a1430154a3d67f896
tree4e2d477f6adff8d70aacd3815b49821ff9cd0ad6
parent4237dfb97815a50de7be464a0d62bd19e62d17b7
Revert "mesa/formats: refactor by collapsing cases in switch statement by type"

This reverts commit ffe6c6ad5f719dedd1b6b95e8590e3f20b23d340.

_mesa_format_num_components() does not include the padding bits in mesa formats
containing 'X' channels. This could cause mipmap generation for certain
uncompressed formats to underestimate the number of channels in the source
image by 1.

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
src/mesa/main/formats.c