From: Brian Paul Date: Thu, 11 Sep 2008 15:55:39 +0000 (-0600) Subject: cell: fix shuffle in spu_unpack_B8G8R8A8() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6092a057042c9f7a4cae0f0eb9e95307f5f850a1;p=mesa.git cell: fix shuffle in spu_unpack_B8G8R8A8() --- diff --git a/src/gallium/drivers/cell/spu/spu_colorpack.h b/src/gallium/drivers/cell/spu/spu_colorpack.h index e9fee8a3a61..fd8dc6ded3e 100644 --- a/src/gallium/drivers/cell/spu/spu_colorpack.h +++ b/src/gallium/drivers/cell/spu/spu_colorpack.h @@ -79,14 +79,14 @@ spu_pack_color_shuffle(vector float rgba, vector unsigned char shuffle) static INLINE vector float -spu_unpack_color(uint color) +spu_unpack_B8G8R8A8(uint color) { vector unsigned int color_u4 = spu_splats(color); color_u4 = spu_shuffle(color_u4, color_u4, ((vector unsigned char) { - 0, 0, 0, 0, - 5, 5, 5, 5, 10, 10, 10, 10, + 5, 5, 5, 5, + 0, 0, 0, 0, 15, 15, 15, 15}) ); return spu_convtf(color_u4, 32); }