intel: Partially fix fallback detection for glCopyTexSubImage.
authorEric Anholt <eric@anholt.net>
Fri, 10 Jul 2009 01:02:42 +0000 (18:02 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 13 Jul 2009 17:57:12 +0000 (10:57 -0700)
commit0dc700850acb81c7088ab740959441521f8d38d9
treeaa74be003e37a13ff22cadda487333e722a809fe
parent9615daa9324341f6a56932dc46b807f402d18283
intel: Partially fix fallback detection for glCopyTexSubImage.

Really, we should be checking that the MesaTexFormat for the read buffer
and the texture match, but the previous code wasn't even doing that, so
matching the cpp should be an improvement (and potentially fix some hangs!).
The previous code also rejected GL_RGB even though blitting the alpha
channel to the ignored channel of an x8r8g8b8 texture should be fine, which
tripped up compiz's blur plugin.
src/mesa/drivers/dri/intel/intel_tex_copy.c