diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2008-09-12 20:33:59 +1000 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2008-09-12 20:33:59 +1000 |
commit | 81335d0f1760fe172a106f79e81281c1f0d7dedf (patch) | |
tree | f081924b0dad0fdfb1fa94580d63a88498469909 /src/gallium/drivers/cell/spu/spu_colorpack.h | |
parent | f302fca5eb63e4bca8af5b35c585451486143e6a (diff) | |
parent | aa66f08a21b791f338b519f0c2162cd8f7b3aeb0 (diff) |
Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1
Diffstat (limited to 'src/gallium/drivers/cell/spu/spu_colorpack.h')
-rw-r--r-- | src/gallium/drivers/cell/spu/spu_colorpack.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/cell/spu/spu_colorpack.h b/src/gallium/drivers/cell/spu/spu_colorpack.h index e9fee8a3a6..fd8dc6ded3 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); } |