i965: Rename brw_(IF|CONT)_gen6 functions to gen6_(IF|CONT).
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Mar 2011 07:00:09 +0000 (00:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Mar 2011 21:18:03 +0000 (14:18 -0700)
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vs_emit.c

index 119ffc7..2d2ed9d 100644 (file)
@@ -939,8 +939,8 @@ void brw_dp_READ_4_vs_relative(struct brw_compile *p,
  */
 struct brw_instruction *brw_IF(struct brw_compile *p, 
                               GLuint execute_size);
-struct brw_instruction *brw_IF_gen6(struct brw_compile *p, uint32_t conditional,
-                                   struct brw_reg src0, struct brw_reg src1);
+struct brw_instruction *gen6_IF(struct brw_compile *p, uint32_t conditional,
+                               struct brw_reg src0, struct brw_reg src1);
 
 struct brw_instruction *brw_ELSE(struct brw_compile *p, 
                                 struct brw_instruction *if_insn);
@@ -958,9 +958,9 @@ struct brw_instruction *brw_WHILE(struct brw_compile *p,
               struct brw_instruction *patch_insn);
 
 struct brw_instruction *brw_BREAK(struct brw_compile *p, int pop_count);
-struct brw_instruction *brw_CONT_gen6(struct brw_compile *p,
-                                     struct brw_instruction *do_insn);
 struct brw_instruction *brw_CONT(struct brw_compile *p, int pop_count);
+struct brw_instruction *gen6_CONT(struct brw_compile *p,
+                                 struct brw_instruction *do_insn);
 /* Forward jumps:
  */
 void brw_land_fwd_jump(struct brw_compile *p, 
index 287d72d..21ce92c 100644 (file)
@@ -874,8 +874,8 @@ struct brw_instruction *brw_IF(struct brw_compile *p, GLuint execute_size)
 }
 
 struct brw_instruction *
-brw_IF_gen6(struct brw_compile *p, uint32_t conditional,
-           struct brw_reg src0, struct brw_reg src1)
+gen6_IF(struct brw_compile *p, uint32_t conditional,
+       struct brw_reg src0, struct brw_reg src1)
 {
    struct brw_instruction *insn;
 
@@ -1061,8 +1061,8 @@ struct brw_instruction *brw_BREAK(struct brw_compile *p, int pop_count)
    return insn;
 }
 
-struct brw_instruction *brw_CONT_gen6(struct brw_compile *p,
-                                     struct brw_instruction *do_insn)
+struct brw_instruction *gen6_CONT(struct brw_compile *p,
+                                 struct brw_instruction *do_insn)
 {
    struct brw_instruction *insn;
    int br = 2;
index 8cc4166..95b5689 100644 (file)
@@ -3554,7 +3554,7 @@ fs_visitor::generate_code()
       case BRW_OPCODE_IF:
         if (inst->src[0].file != BAD_FILE) {
            assert(intel->gen >= 6);
-           if_stack[if_stack_depth] = brw_IF_gen6(p, inst->conditional_mod, src[0], src[1]);
+           if_stack[if_stack_depth] = gen6_IF(p, inst->conditional_mod, src[0], src[1]);
         } else {
            if_stack[if_stack_depth] = brw_IF(p, BRW_EXECUTE_8);
         }
@@ -3596,7 +3596,7 @@ fs_visitor::generate_code()
       case BRW_OPCODE_CONTINUE:
         /* FINISHME: We need to write the loop instruction support still. */
         if (intel->gen >= 6)
-           brw_CONT_gen6(p, loop_stack[loop_stack_depth - 1]);
+           gen6_CONT(p, loop_stack[loop_stack_depth - 1]);
         else
            brw_CONT(p, if_depth_in_loop[loop_stack_depth]);
         brw_set_predicate_control(p, BRW_PREDICATE_NONE);
index 6ec6255..acacf37 100644 (file)
@@ -2109,7 +2109,7 @@ void brw_vs_emit(struct brw_vs_compile *c )
       case OPCODE_CONT:
         brw_set_predicate_control(p, get_predicate(inst));
         if (intel->gen >= 6) {
-           brw_CONT_gen6(p, loop_inst[loop_depth - 1]);
+           gen6_CONT(p, loop_inst[loop_depth - 1]);
         } else {
            brw_CONT(p, if_depth_in_loop[loop_depth]);
         }