mesa: Refactor compressed texture error checks to work with paletted textures
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 12 Sep 2011 16:46:09 +0000 (11:46 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 19 Sep 2011 17:04:47 +0000 (10:04 -0700)
commit3ebbfc8372d410801c799b3eb7821075dae73b17
treeb545abeddee3cc2fd6afe49de91943002df3be49
parentb433e7ba073c66d974dfd8a180ab3970acf18105
mesa: Refactor compressed texture error checks to work with paletted textures

This code was really broken before.  A lot of the error checks were
done much later (too late), and some of the error checks would fail.
The underlying problem is that Mesa doesn't ever keep compressed paletted
textures in their original format.  The textures are immediately
converted to some RGB or RGBA format.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39991
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Jin Yang <jin.a.yang@intel.com>
src/mesa/main/teximage.c