mesa/formats: remove compressed formats from matching function
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 31 Jul 2015 17:26:36 +0000 (10:26 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Tue, 25 Aug 2015 22:45:17 +0000 (15:45 -0700)
commit26c549e69d12e44e2e36c09764ce2cceab262a1b
tree69e2747d06eec40a982d0c91d83b44e9f61b5911
parent8e581747d2342950ff44488064eef53768b3ae82
mesa/formats: remove compressed formats from matching function

All compressed formats return GL_FALSE and there isn't any evidence to
support that this behaviour would change. Remove all switch cases for
compressed formats.

v2. Since the exhaustive switch is removed, add a gtest to ensure
    all formats are handled.
v3. Ensure that GL_NO_ERROR is set before returning.
v4. Fix an arg to _mesa_uncompressed_format_to_type_and_comps();
    fix formatting and misc improvements (Chad).

Reviewed-by: Chad Versace <chad.versace@intel.com>
Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
12 files changed:
src/mesa/drivers/dri/i915/intel_pixel_read.c
src/mesa/drivers/dri/i915/intel_tex_image.c
src/mesa/main/formats.c
src/mesa/main/formats.h
src/mesa/main/readpix.c
src/mesa/main/tests/mesa_formats.cpp
src/mesa/main/texgetimage.c
src/mesa/main/texstore.c
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_format.c
src/mesa/swrast/s_drawpix.c