gallium: Silencium warnings on Windows.

This commit is contained in:
Michal Krol 2008-03-18 15:59:55 +01:00
parent de779c8d31
commit b2b905b04c
1 changed files with 3 additions and 3 deletions

View File

@ -325,7 +325,7 @@ do_row(enum dtype datatype, uint comps, int srcWidth,
float *dst = (float *) dstRow;
for (i = j = 0, k = k0; i < (uint) dstWidth;
i++, j += colStride, k += colStride) {
dst[i] = rowA[j] / 4 + rowA[k] / 4 + rowB[j] / 4 + rowB[k] / 4;
dst[i] = (float) rowA[j] / 4 + (float) rowA[k] / 4 + (float) rowB[j] / 4 + (float) rowB[k] / 4;
}
}
@ -1070,8 +1070,8 @@ util_gen_mipmap(struct gen_mipmap_state *ctx,
* has trouble with min clamping so we also set the lod_bias to
* try to work around that.
*/
sampler.min_lod = sampler.max_lod = srcLevel;
sampler.lod_bias = srcLevel;
sampler.min_lod = sampler.max_lod = (float) srcLevel;
sampler.lod_bias = (float) srcLevel;
sampler_cso = pipe->create_sampler_state(pipe, &sampler);
pipe->bind_sampler_states(pipe, 1, &sampler_cso);