summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-18 09:28:04 -0600
committerBrian <[email protected]>2008-03-18 09:28:04 -0600
commite8f8b12bb940794cef8eff52ae8c908ad0604161 (patch)
tree9b65e00aeedd358104de87de31ff6d47182fb6ef
parentf1cfb1e3676fc9e1fea6698ed5e8e79d2b094dae (diff)
gallium: fix a mix-up in the uint[1] do_row() case
-rw-r--r--src/gallium/auxiliary/util/u_gen_mipmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c
index d6d8c766cef..d47c677074b 100644
--- a/src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/src/gallium/auxiliary/util/u_gen_mipmap.c
@@ -322,10 +322,10 @@ do_row(enum dtype datatype, uint comps, int srcWidth,
uint i, j, k;
const uint *rowA = (const uint *) srcRowA;
const uint *rowB = (const uint *) srcRowB;
- float *dst = (float *) dstRow;
+ uint *dst = (uint *) dstRow;
for (i = j = 0, k = k0; i < (uint) dstWidth;
i++, j += colStride, k += colStride) {
- dst[i] = (float) rowA[j] / 4 + (float) rowA[k] / 4 + (float) rowB[j] / 4 + (float) rowB[k] / 4;
+ dst[i] = rowA[j] / 4 + rowA[k] / 4 + rowB[j] / 4 + rowB[k] / 4;
}
}