Mesa (mesa_7_5_branch): util: Unsaved change missing from last commit.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Wed Jun 3 01:41:33 UTC 2009


Module: Mesa
Branch: mesa_7_5_branch
Commit: 273117ceed47bff58a0f475dd36b37721e997f91
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=273117ceed47bff58a0f475dd36b37721e997f91

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Jun  2 16:41:45 2009 -0700

util: Unsaved change missing from last commit.

---

 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 a2fcdad..9747a55 100644
--- a/src/gallium/auxiliary/util/u_tile.c
+++ b/src/gallium/auxiliary/util/u_tile.c
@@ -1141,7 +1141,7 @@ pipe_get_tile_z(struct pipe_transfer *pt,
          for (i = 0; i < h; i++) {
             for (j = 0; j < w; j++) {
                /* convert 24-bit Z to 32-bit Z */
-               pDest[j] = (ptrc[j] & 0xffffff00) | (ptrc[j] & 0xff);
+               pDest[j] = (ptrc[j] & 0xffffff00) | ((ptrc[j] >> 24) & 0xff);
             }
             pDest += dstStride;
             ptrc += pt->stride/4;




More information about the mesa-commit mailing list