i965: Drop unused do_insn argument from gen6_CONT().
authorEric Anholt <eric@anholt.net>
Tue, 6 Dec 2011 20:09:58 +0000 (12:09 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 21 Dec 2011 22:31:33 +0000 (14:31 -0800)
The branch distances get patched up later at the WHILE instruction.

Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs_emit.cpp
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
src/mesa/drivers/dri/i965/brw_vs_emit.c

index 1529ec622a71dc6d32cc3162610b841077651afb..481fbf1c7b6f05c1ae28b549b37a59f9d150d418 100644 (file)
@@ -1020,8 +1020,7 @@ struct brw_instruction *brw_WHILE(struct brw_compile *p,
 
 struct brw_instruction *brw_BREAK(struct brw_compile *p, int pop_count);
 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);
+struct brw_instruction *gen6_CONT(struct brw_compile *p);
 /* Forward jumps:
  */
 void brw_land_fwd_jump(struct brw_compile *p, 
index f6726fcfca581b29ab6a6a4ccbfe5aa120341693..6247e4c4b399acf996a322f34bbda5edebac0208 100644 (file)
@@ -1249,8 +1249,7 @@ struct brw_instruction *brw_BREAK(struct brw_compile *p, int pop_count)
    return insn;
 }
 
-struct brw_instruction *gen6_CONT(struct brw_compile *p,
-                                 struct brw_instruction *do_insn)
+struct brw_instruction *gen6_CONT(struct brw_compile *p)
 {
    struct brw_instruction *insn;
 
index 7f0e58e20b43e20983a5bb4cce65e9182e7cac13..2f5a026c54fa3db9ceb247fc37167be93d412d75 100644 (file)
@@ -813,7 +813,7 @@ fs_visitor::generate_code()
       case BRW_OPCODE_CONTINUE:
         /* FINISHME: We need to write the loop instruction support still. */
         if (intel->gen >= 6)
-           gen6_CONT(p, loop_stack[loop_stack_depth - 1]);
+           gen6_CONT(p);
         else
            brw_CONT(p, if_depth_in_loop[loop_stack_depth]);
         brw_set_predicate_control(p, BRW_PREDICATE_NONE);
index b2427da57e16764f637e74f2320b85a6854c12fe..ef1ca3dd84ad2c39f5028937aff84290b1a70aeb 100644 (file)
@@ -949,7 +949,7 @@ vec4_visitor::generate_code()
       case BRW_OPCODE_CONTINUE:
         /* FINISHME: We need to write the loop instruction support still. */
         if (intel->gen >= 6)
-           gen6_CONT(p, loop_stack[loop_stack_depth - 1]);
+           gen6_CONT(p);
         else
            brw_CONT(p, if_depth_in_loop[loop_stack_depth]);
         brw_set_predicate_control(p, BRW_PREDICATE_NONE);
index bcaef04bcf3aa7c116f4839d624f58d35c67b950..6c96a48ce50537fdf463e372b9af05344945d21e 100644 (file)
@@ -2106,7 +2106,7 @@ void brw_old_vs_emit(struct brw_vs_compile *c )
       case OPCODE_CONT:
         brw_set_predicate_control(p, get_predicate(inst));
         if (intel->gen >= 6) {
-           gen6_CONT(p, loop_inst[loop_depth - 1]);
+           gen6_CONT(p);
         } else {
            brw_CONT(p, if_depth_in_loop[loop_depth]);
         }