summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-12-03 18:13:45 -0700
committerBrian Paul <brianp@vmware.com>2010-12-06 09:46:45 -0700
commit4fc62a074c5cc7e55a81c2a24cc5ef2f1452e948 (patch)
treec4b0e0f0106a778dc153449957dfb86062d50049 /src/gallium
parentb89a731ff297dec597e3a4be1abf94e97d9b0e44 (diff)
gallium/util: minor formatting fixes
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/util/u_gen_mipmap.c6
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 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;