projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1946b81
)
util: fix util_pack_color for B4G4R4A4
author
Marek Olšák
<maraeo@gmail.com>
Thu, 23 Sep 2010 20:54:08 +0000
(22:54 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Fri, 24 Sep 2010 23:52:33 +0000
(
01:52
+0200)
NOTE: This is a candidate for the 7.9 branch.
src/gallium/auxiliary/util/u_pack_color.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_pack_color.h
b/src/gallium/auxiliary/util/u_pack_color.h
index aae8b8bdf189d4af35851cf67c6520bf207e2313..c90b0fdbc3fe4676f889541803b79c966bb9cbb0 100644
(file)
--- a/
src/gallium/auxiliary/util/u_pack_color.h
+++ b/
src/gallium/auxiliary/util/u_pack_color.h
@@
-394,7
+394,7
@@
util_pack_color(const float rgba[4], enum pipe_format format, union util_color *
return;
case PIPE_FORMAT_B4G4R4A4_UNORM:
{
- uc->u
b
= ((a & 0xf0) << 8) | ((r & 0xf0) << 4) | ((g & 0xf0) << 0) | (b >> 4);
+ uc->u
s
= ((a & 0xf0) << 8) | ((r & 0xf0) << 4) | ((g & 0xf0) << 0) | (b >> 4);
}
return;
case PIPE_FORMAT_A8_UNORM: