From: Brian Paul Date: Sat, 23 Jan 2010 00:17:01 +0000 (-0700) Subject: gallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e78903952961fc207b8da1f7b2d0c6ddfd49881;p=mesa.git gallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba() Fixes fd.o bug 23313. --- diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c index 8a22f584bee..7b0680b5d04 100644 --- a/src/gallium/auxiliary/util/u_tile.c +++ b/src/gallium/auxiliary/util/u_tile.c @@ -341,7 +341,7 @@ a4r4g4b4_put_tile_rgba(ushort *dst, g >>= 4; b >>= 4; a >>= 4; - *dst++ = (a << 12) | (r << 16) | (g << 4) | b; + *dst++ = (a << 12) | (r << 8) | (g << 4) | b; } p += src_stride; }