Mesa (master): i965: formatting and indentation fixes

Brian Paul brianp at kemper.freedesktop.org
Sat Feb 14 00:22:41 UTC 2009


Module: Mesa
Branch: master
Commit: 984c9636ed21f7d390b4b50c0b1d664506ede0e1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=984c9636ed21f7d390b4b50c0b1d664506ede0e1

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Feb 12 14:53:30 2009 -0700

i965: formatting and indentation fixes

---

 src/mesa/drivers/dri/i965/brw_wm_glsl.c |   33 +++++++++++++++----------------
 1 files changed, 16 insertions(+), 17 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
index 8fd776a..dcf2f3d 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c
@@ -323,7 +323,7 @@ static void emit_pixel_xy(struct brw_wm_compile *c,
 }
 
 static void emit_delta_xy(struct brw_wm_compile *c,
-		struct prog_instruction *inst)
+                          struct prog_instruction *inst)
 {
     struct brw_reg r1 = brw_vec1_grf(1, 0);
     struct brw_reg dst0, dst1, src0, src1;
@@ -351,10 +351,8 @@ static void emit_delta_xy(struct brw_wm_compile *c,
 		negate(suboffset(r1,1)));
 
     }
-
 }
 
-
 static void fire_fb_write( struct brw_wm_compile *c,
                            GLuint base_reg,
                            GLuint nr,
@@ -410,18 +408,19 @@ static void emit_fb_write(struct brw_wm_compile *c,
 	brw_pop_insn_state(p);
     }
 
-   if (c->key.source_depth_to_render_target)
-   {
-      if (c->key.computes_depth) {
-         src0 = get_src_reg(c, &inst->SrcReg[2], 2, 1);
-         brw_MOV(p, brw_message_reg(nr), src0);
-      } else {
-         src0 = get_src_reg(c, &inst->SrcReg[1], 1, 1);
-         brw_MOV(p, brw_message_reg(nr), src0);
-      }
-
-      nr += 2;
-   }
+    if (c->key.source_depth_to_render_target) {
+       if (c->key.computes_depth) {
+          src0 = get_src_reg(c, &inst->SrcReg[2], 2, 1);
+          brw_MOV(p, brw_message_reg(nr), src0);
+       }
+       else {
+          src0 = get_src_reg(c, &inst->SrcReg[1], 1, 1);
+          brw_MOV(p, brw_message_reg(nr), src0);
+       }
+
+       nr += 2;
+    }
+
     target = inst->Sampler >> 1;
     eot = inst->Sampler & 1;
     fire_fb_write(c, 0, nr, target, eot);
@@ -1675,8 +1674,8 @@ static void emit_noise3( struct brw_wm_compile *c,
    now causes.  Instead, we loop twice around performing a similar operation
    to noise3, once for the w=0 cube and once for the w=1, with a bit more
    code to glue it all together. */
-static void noise4_sub( struct brw_wm_compile *c ) {
-
+static void noise4_sub( struct brw_wm_compile *c )
+{
     struct brw_compile *p = &c->func;
     struct brw_reg param[ 4 ],
 	x0y0, x0y1, x1y0, x1y1, /* gradients at four of the corners */




More information about the mesa-commit mailing list