Mesa (master): gallium/util: minor formatting fixes
Brian Paul
brianp at kemper.freedesktop.org
Mon Dec 6 18:35:35 UTC 2010
Module: Mesa
Branch: master
Commit: 4fc62a074c5cc7e55a81c2a24cc5ef2f1452e948
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4fc62a074c5cc7e55a81c2a24cc5ef2f1452e948
Author: Brian Paul <brianp at vmware.com>
Date: Fri Dec 3 18:13:45 2010 -0700
gallium/util: minor formatting fixes
---
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 ebf91c6..d22ae8b 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;
More information about the mesa-commit
mailing list