mesa: Don't round-trip integer texture data through a floating point temp.
authorEric Anholt <eric@anholt.net>
Tue, 24 Jan 2012 22:52:04 +0000 (14:52 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 27 Jan 2012 20:01:13 +0000 (12:01 -0800)
commit5f65598cc79eccd38bf7f95ab167ed62e575daf2
tree0527ce9ce28d58447c2d3f89f1a0017e512b438f
parentdadbec1e90415f0744eb91e684bf9d7496f474c0
mesa: Don't round-trip integer texture data through a floating point temp.

This was losing bits of precision.  Fixes (with the previous commits):
piglit EXT_texture_integer/getteximage-clamping
piglit EXT_texture_integer/getteximage-clamping GL_ARB_texture_rg
oglc advanced.mipmap.upload

Regresses oglc negative.typeFormatMismatch.teximage from fail to
abort, because it's been hitting texstore for a format/type combo that
shouldn't happen.

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texstore.c