From 4fc62a074c5cc7e55a81c2a24cc5ef2f1452e948 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 3 Dec 2010 18:13:45 -0700 Subject: gallium/util: minor formatting fixes --- src/gallium/auxiliary/util/u_gen_mipmap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gallium') diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c index ebf91c6701..d22ae8b375 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; -- cgit v1.2.3