diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-03-01 16:24:48 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-03-01 16:24:48 +0000 |
commit | daf7caf4cfb1c3732a31be56157e9c7d0399ef58 (patch) | |
tree | 74ee7d8b28351fd1aca5dd467ff6e8740e4c0838 /src/gallium/auxiliary/util/u_pack_color.h | |
parent | cd8b6523039d68459756db487566a97fac1d4d75 (diff) |
util: Use PIPE_FORMAT_R8G8B8A8_UNORM_REV where appropriate.
Diffstat (limited to 'src/gallium/auxiliary/util/u_pack_color.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_pack_color.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_pack_color.h b/src/gallium/auxiliary/util/u_pack_color.h index 0ab53c75dd..4e4ac7f3da 100644 --- a/src/gallium/auxiliary/util/u_pack_color.h +++ b/src/gallium/auxiliary/util/u_pack_color.h @@ -57,7 +57,7 @@ util_pack_color_ub(ubyte r, ubyte g, ubyte b, ubyte a, enum pipe_format format, union util_color *uc) { switch (format) { - case PIPE_FORMAT_R8G8B8A8_UNORM: + case PIPE_FORMAT_R8G8B8A8_UNORM_REV: { uc->ui = (r << 24) | (g << 16) | (b << 8) | a; } @@ -153,7 +153,7 @@ util_unpack_color_ub(enum pipe_format format, union util_color *uc, ubyte *r, ubyte *g, ubyte *b, ubyte *a) { switch (format) { - case PIPE_FORMAT_R8G8B8A8_UNORM: + case PIPE_FORMAT_R8G8B8A8_UNORM_REV: { uint p = uc->ui; *r = (ubyte) ((p >> 24) & 0xff); @@ -326,7 +326,7 @@ util_pack_color(const float rgba[4], enum pipe_format format, union util_color * } switch (format) { - case PIPE_FORMAT_R8G8B8A8_UNORM: + case PIPE_FORMAT_R8G8B8A8_UNORM_REV: { uc->ui = (r << 24) | (g << 16) | (b << 8) | a; } |