mesa: reset the source packing when creating temp transfer image
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 1 Jul 2015 19:18:47 +0000 (15:18 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 2 Jul 2015 01:06:48 +0000 (21:06 -0400)
commit4f57cdba2767b56eb4752f14ba9853ba6bc06d0e
treefafd05183d943d23cc5ff066e003746d3dcc7ca6
parente212a80db37b0fc9d57beb91dbca1c43ae4476a0
mesa: reset the source packing when creating temp transfer image

Commit 4b249d2ee (mesa: Handle transferOps in texstore_rgba) introduced
proper transferops handling, but in updating the source to the newly
allocated temporary image neglected to reset the source packing. Set it
to the default which should be appropriate for the floats used.

Fixes: 4b249d2ee (mesa: Handle transferOps in texstore_rgba)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91173
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/main/texstore.c