intel: Try to sanely check that formats match for CopyTexImage.
authorEric Anholt <eric@anholt.net>
Wed, 15 Dec 2010 19:54:38 +0000 (11:54 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 16 Dec 2010 18:48:19 +0000 (10:48 -0800)
commitec03b316b4dc5d56b8510cc5aeb0f71a4fdada18
treede67bc0856eb62785c25da91adb34feed41326de
parente65c643792d1327a0a491f5d4a707467a6955746
intel: Try to sanely check that formats match for CopyTexImage.

Before, we were going off of a couple of known (hopeful) matches
between internalFormats and the cpp of the read buffer.  Instead, we
can now just look at the gl_format of the two to see if they match.
We should avoid bad blits that might have been possible before, but
also allow different internalFormats to work without having to
enumerate each one.
src/mesa/drivers/dri/intel/intel_tex_copy.c