summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2015-04-25 22:10:42 +0200
committerRoland Scheidegger <sroland@vmware.com>2015-04-27 18:51:30 +0200
commit7c3d1c132eea83fb257cbc473a8a79638ddc3014 (patch)
tree52ce860c84853332aa1a1afc31e344c6d0f5d091 /src/gallium/auxiliary/util
parentdfb274af4c6e0991fa20af1606e45bea6f947fed (diff)
downloadexternal_mesa3d-7c3d1c132eea83fb257cbc473a8a79638ddc3014.zip
external_mesa3d-7c3d1c132eea83fb257cbc473a8a79638ddc3014.tar.gz
external_mesa3d-7c3d1c132eea83fb257cbc473a8a79638ddc3014.tar.bz2
softpipe: fix another stencil-as-float issue
Hopefully this is the last one now (for texture X32_S8X24_UINT views). +4 piglits. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90167 Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_tile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c
index 8e19920..b91bb41 100644
--- a/src/gallium/auxiliary/util/u_tile.c
+++ b/src/gallium/auxiliary/util/u_tile.c
@@ -341,13 +341,13 @@ x32_s8_get_tile_rgba(const unsigned *src,
unsigned i, j;
for (i = 0; i < h; i++) {
- float *pRow = p;
+ uint32_t *pRow = (uint32_t *)p;
for (j = 0; j < w; j++, pRow += 4) {
src++;
pRow[0] =
pRow[1] =
pRow[2] =
- pRow[3] = (float)(*src++ & 0xff);
+ pRow[3] = (*src++ & 0xff);
}
p += dst_stride;
}