i965: Rename brw_(IF|CONT)_gen6 functions to gen6_(IF|CONT).
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user