diff options
author | Brian Paul <[email protected]> | 2010-12-03 18:13:45 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-12-06 09:46:45 -0700 |
commit | 4fc62a074c5cc7e55a81c2a24cc5ef2f1452e948 (patch) | |
tree | c4b0e0f0106a778dc153449957dfb86062d50049 /src/gallium/auxiliary/util | |
parent | b89a731ff297dec597e3a4be1abf94e97d9b0e44 (diff) |
gallium/util: minor formatting fixes
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_gen_mipmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c index ebf91c6701d..d22ae8b375b 100644 --- a/src/gallium/auxiliary/util/u_gen_mipmap.c +++ b/src/gallium/auxiliary/util/u_gen_mipmap.c @@ -1068,8 +1068,7 @@ reduce_3d(enum pipe_format pformat, /* second source image pointer */ const ubyte *imgSrcB = imgSrcA + srcImageOffset; /* address of the dest image */ - ubyte *imgDst = dstPtr - + img * dstImageStride; + ubyte *imgDst = dstPtr + img * dstImageStride; /* setup the four source row pointers and the dest row pointer */ const ubyte *srcImgARowA = imgSrcA; @@ -1555,7 +1554,8 @@ util_gen_mipmap(struct gen_mipmap_state *ctx, if (pt->target == PIPE_TEXTURE_3D) nr_layers = u_minify(pt->depth0, dstLevel); - else nr_layers = 1; + else + nr_layers = 1; for (i = 0; i < nr_layers; i++) { struct pipe_surface *surf, surf_templ; |