r300g: fix indentation
authorMarek Olšák <maraeo@gmail.com>
Mon, 23 Aug 2010 03:58:08 +0000 (05:58 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 25 Aug 2010 00:44:28 +0000 (02:44 +0200)
src/gallium/drivers/r300/r300_fs.c
src/gallium/drivers/r300/r300_state.c

index 2a0c30620adf4f4cac91fdb35f3f1b0911ff79f8..315d5b85f75a0fcdffdf0d7e015a867a83a7f947 100644 (file)
@@ -257,17 +257,17 @@ static void r300_emit_fs_code_to_buffer(
         shader->cb_code_size = 19 +
                                ((code->inst_end + 1) * 6) +
                                imm_count * 7 +
-                              code->int_constant_count * 2;
+                               code->int_constant_count * 2;
 
         NEW_CB(shader->cb_code, shader->cb_code_size);
         OUT_CB_REG(R500_US_CONFIG, R500_ZERO_TIMES_ANYTHING_EQUALS_ZERO);
         OUT_CB_REG(R500_US_PIXSIZE, code->max_temp_idx);
         OUT_CB_REG(R500_US_FC_CTRL, code->us_fc_ctrl);
         for(i = 0; i < code->int_constant_count; i++){
-               OUT_CB_REG(R500_US_FC_INT_CONST_0 + (i * 4),
-                                               code->int_constants[i]);
-       }
-       OUT_CB_REG(R500_US_CODE_RANGE,
+                OUT_CB_REG(R500_US_FC_INT_CONST_0 + (i * 4),
+                                                code->int_constants[i]);
+        }
+        OUT_CB_REG(R500_US_CODE_RANGE,
                    R500_US_CODE_RANGE_ADDR(0) | R500_US_CODE_RANGE_SIZE(code->inst_end));
         OUT_CB_REG(R500_US_CODE_OFFSET, 0);
         OUT_CB_REG(R500_US_CODE_ADDR,
index 239edd98e320d34f7a19ebe4a2b83a645eea12aa..dc0d0415cb993b44120e768308a3e4b2fb28542d 100644 (file)
@@ -1050,11 +1050,11 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
     stuffing_enable = 0;
     if (state->sprite_coord_enable) {
         stuffing_enable = R300_GB_POINT_STUFF_ENABLE;
-       for (i = 0; i < 8; i++) {
-           if (state->sprite_coord_enable & (1 << i))
+        for (i = 0; i < 8; i++) {
+            if (state->sprite_coord_enable & (1 << i))
                 stuffing_enable |=
                     R300_GB_TEX_ST << (R300_GB_TEX0_SOURCE_SHIFT + (i*2));
-       }
+        }
 
         point_texcoord_left = 0.0f;
         point_texcoord_right = 1.0f;