Mesa (master): mesa: reset the source packing when creating temp transfer image
Ilia Mirkin
imirkin at kemper.freedesktop.org
Thu Jul 2 01:13:21 UTC 2015
Module: Mesa
Branch: master
Commit: 4f57cdba2767b56eb4752f14ba9853ba6bc06d0e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4f57cdba2767b56eb4752f14ba9853ba6bc06d0e
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Wed Jul 1 15:18:47 2015 -0400
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 at alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Anuj Phogat <anuj.phogat at gmail.com>
---
src/mesa/main/texstore.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 1525205..37c0569 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -787,6 +787,7 @@ texstore_rgba(TEXSTORE_PARAMS)
srcType = GL_FLOAT;
srcRowStride = srcWidth * 4 * sizeof(float);
srcMesaFormat = RGBA32_FLOAT;
+ srcPacking = &ctx->DefaultPacking;
}
src = (GLubyte *)
More information about the mesa-commit
mailing list