projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
099e8ec
)
gallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba()
author
Brian Paul
<brianp@vmware.com>
Sat, 23 Jan 2010 00:17:01 +0000
(17:17 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sat, 23 Jan 2010 00:17:05 +0000
(17:17 -0700)
Fixes fd.o bug 23313.
src/gallium/auxiliary/util/u_tile.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_tile.c
b/src/gallium/auxiliary/util/u_tile.c
index 8a22f584bee766962c09a1d01fd642670d3a8337..7b0680b5d044bedfc2ebac8ea2ba4f30cacf49f9 100644
(file)
--- 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;
}