mesa: Simplify _mesa_choose_tex_format handling of compressed formats
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 22 Jan 2013 09:24:24 +0000 (04:24 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 24 Jan 2013 04:38:04 +0000 (23:38 -0500)
commitd45c6c817df5c00ec12d46bd07fc7735e2c2cd5a
tree1c188bec91ff5304acb439652ca0b41911f8a5e0
parenta021881ccdaf1d81fb7c8bef4b58b4c037dc4f44
mesa: Simplify _mesa_choose_tex_format handling of compressed formats

For non-generic compressed format we assert two things:

1. The format has already been validated against the set of available
   extensions.

2. The driver only enables the extension if it supports all of the
   formats that are part of that extension.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/texformat.c