diff options
author | Brian Paul <[email protected]> | 2010-01-22 17:17:01 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-22 17:17:05 -0700 |
commit | 5e78903952961fc207b8da1f7b2d0c6ddfd49881 (patch) | |
tree | 20dd1784688ae1cd93ef4d6be521a642d8d14d00 /src/gallium/auxiliary/util | |
parent | 099e8ec54d4f7b9cd9ae3a481d6a6ae60f4590be (diff) |
gallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba()
Fixes fd.o bug 23313.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_tile.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |