Skip to content
Snippets Groups Projects
Commit 2ac171a7 authored by Oded Gabbay's avatar Oded Gabbay Committed by Faith Ekstrand
Browse files

mesa: clear existing swizzle info before bitwise-OR


This patch fixes a bug in big-endian treatment, where the previous
swizzle info wasn't cleared before a new swizzle info was inserted into
the format field using a bitwise-OR operation.

v2: use MESA_ARRAY_FORMAT_SWIZZLE_*_MASK instead of numeric constants
v3: align according to coding style

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
CC: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>
parent 1eaa29cb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment