Mesa (master): gallium/u_pack: fix l8/i8 pack color ub

Dave Airlie airlied at kemper.freedesktop.org
Tue Dec 27 10:37:04 UTC 2011


Module: Mesa
Branch: master
Commit: 157566860dee7ef4560f0f0a0a09f86b5973ed19
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=157566860dee7ef4560f0f0a0a09f86b5973ed19

Author: Dave Airlie <airlied at redhat.com>
Date:   Sat Dec 24 19:30:26 2011 +0000

gallium/u_pack: fix l8/i8 pack color ub

just noticed this in passing, not sure it actually fixes any issus.

Signed-off-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Brian Paul <brianp at vmare.com>

---

 src/gallium/auxiliary/util/u_pack_color.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_pack_color.h b/src/gallium/auxiliary/util/u_pack_color.h
index 0bbf769..50ec226 100644
--- a/src/gallium/auxiliary/util/u_pack_color.h
+++ b/src/gallium/auxiliary/util/u_pack_color.h
@@ -122,7 +122,7 @@ util_pack_color_ub(ubyte r, ubyte g, ubyte b, ubyte a,
    case PIPE_FORMAT_L8_UNORM:
    case PIPE_FORMAT_I8_UNORM:
       {
-         uc->ub = a;
+         uc->ub = r;
       }
       return;
    case PIPE_FORMAT_R32G32B32A32_FLOAT:




More information about the mesa-commit mailing list