intel: Make the intel_miptree_match_image format check more specific.
authorEric Anholt <eric@anholt.net>
Thu, 9 Jun 2011 17:00:59 +0000 (10:00 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 14 Jun 2011 18:17:38 +0000 (11:17 -0700)
commit0fac09a87c07d09dcd915c02b831505a53b02153
treef0cce719b8f81d76f5de286ac772293a28d86f84
parentafbe605eff5af3739a76705a04a3c97a53c81b0d
intel: Make the intel_miptree_match_image format check more specific.

We don't care just about the internalFormat/cpp/compressed, but about
the specific format chosen.  We have no support for format
translations as part of texture validation, and furthermore it has
restrictions in the GL specification.  However, we should be making
consistent decisions for this check anyway.
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_tex_validate.c