From: José Fonseca Date: Tue, 2 Jun 2009 23:41:45 +0000 (-0700) Subject: util: Unsaved change missing from last commit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=273117ceed47bff58a0f475dd36b37721e997f91;p=mesa.git util: Unsaved change missing from last commit. --- diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c index a2fcdad9e4d..9747a55cbfa 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;