[Mesa-dev,79/95] i965/vec4: fix indentation in move_push_constants_to_pull_constants()

Submitted by Iago Toral Quiroga on July 19, 2016, 10:41 a.m.

Details

Message ID 1468924892-6910-80-git-send-email-itoral@igalia.com
State New
Headers show
Series "i965 Haswell ARB_gpu_shader_fp64 / OpenGL 4.0" ( rev: 2 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga July 19, 2016, 10:41 a.m.
---
 src/mesa/drivers/dri/i965/brw_vec4.cpp | 60 +++++++++++++++++-----------------
 1 file changed, 30 insertions(+), 30 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index 99b30ce..d7fbb5d 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -835,34 +835,34 @@  vec4_visitor::move_push_constants_to_pull_constants()
       pull_constant_loc[i / 4] = -1;
 
       if (i >= max_uniform_components) {
-	 const gl_constant_value **values = &stage_prog_data->param[i];
+         const gl_constant_value **values = &stage_prog_data->param[i];
 
-	 /* Try to find an existing copy of this uniform in the pull
-	  * constants if it was part of an array access already.
-	  */
-	 for (unsigned int j = 0; j < stage_prog_data->nr_pull_params; j += 4) {
-	    int matches;
+         /* Try to find an existing copy of this uniform in the pull
+          * constants if it was part of an array access already.
+          */
+         for (unsigned int j = 0; j < stage_prog_data->nr_pull_params; j += 4) {
+            int matches;
 
-	    for (matches = 0; matches < 4; matches++) {
-	       if (stage_prog_data->pull_param[j + matches] != values[matches])
-		  break;
-	    }
+            for (matches = 0; matches < 4; matches++) {
+               if (stage_prog_data->pull_param[j + matches] != values[matches])
+                  break;
+            }
 
-	    if (matches == 4) {
-	       pull_constant_loc[i / 4] = j / 4;
-	       break;
-	    }
-	 }
+            if (matches == 4) {
+               pull_constant_loc[i / 4] = j / 4;
+               break;
+            }
+         }
 
-	 if (pull_constant_loc[i / 4] == -1) {
-	    assert(stage_prog_data->nr_pull_params % 4 == 0);
-	    pull_constant_loc[i / 4] = stage_prog_data->nr_pull_params / 4;
+         if (pull_constant_loc[i / 4] == -1) {
+            assert(stage_prog_data->nr_pull_params % 4 == 0);
+            pull_constant_loc[i / 4] = stage_prog_data->nr_pull_params / 4;
 
-	    for (int j = 0; j < 4; j++) {
-	       stage_prog_data->pull_param[stage_prog_data->nr_pull_params++] =
+            for (int j = 0; j < 4; j++) {
+               stage_prog_data->pull_param[stage_prog_data->nr_pull_params++] =
                   values[j];
-	    }
-	 }
+            }
+         }
       }
    }
 
@@ -871,21 +871,21 @@  vec4_visitor::move_push_constants_to_pull_constants()
     */
    foreach_block_and_inst_safe(block, vec4_instruction, inst, cfg) {
       for (int i = 0 ; i < 3; i++) {
-	 if (inst->src[i].file != UNIFORM ||
+         if (inst->src[i].file != UNIFORM ||
              pull_constant_loc[inst->src[i].nr] == -1)
-	    continue;
+            continue;
 
          int uniform = inst->src[i].nr;
 
-	 dst_reg temp = dst_reg(this, glsl_type::vec4_type);
+         dst_reg temp = dst_reg(this, glsl_type::vec4_type);
 
-	 emit_pull_constant_load(block, inst, temp, inst->src[i],
-				 pull_constant_loc[uniform], src_reg());
+         emit_pull_constant_load(block, inst, temp, inst->src[i],
+                                 pull_constant_loc[uniform], src_reg());
 
-	 inst->src[i].file = temp.file;
+         inst->src[i].file = temp.file;
          inst->src[i].nr = temp.nr;
-	 inst->src[i].reg_offset = temp.reg_offset;
-	 inst->src[i].reladdr = NULL;
+         inst->src[i].reg_offset = temp.reg_offset;
+         inst->src[i].reladdr = NULL;
       }
    }