aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_eu_emit.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-08-04 14:26:26 -0700
committerKenneth Graunke <[email protected]>2014-08-08 00:51:44 -0700
commite64dbd050d6d5b4ea502ee2fc727e12135833771 (patch)
treec8d5e9d09eab2c4ba482d2f673830796215ea18a /src/mesa/drivers/dri/i965/brw_eu_emit.c
parente7a7b3317c5992d230cf55752ef0b6bc25928ff9 (diff)
i965/eu: Merge brw_CONT and gen6_CONT.
The only difference is setting PopCount on Gen4-5. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu_emit.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_emit.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c
index 845bcd48474..3be4449b4e0 100644
--- a/src/mesa/drivers/dri/i965/brw_eu_emit.c
+++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c
@@ -1532,7 +1532,7 @@ brw_BREAK(struct brw_compile *p)
}
brw_inst *
-gen6_CONT(struct brw_compile *p)
+brw_CONT(struct brw_compile *p)
{
const struct brw_context *brw = p->brw;
brw_inst *insn;
@@ -1542,25 +1542,13 @@ gen6_CONT(struct brw_compile *p)
brw_set_src0(p, insn, brw_ip_reg());
brw_set_src1(p, insn, brw_imm_d(0x0));
- brw_inst_set_qtr_control(brw, insn, BRW_COMPRESSION_NONE);
- brw_inst_set_exec_size(brw, insn, BRW_EXECUTE_8);
- return insn;
-}
+ if (brw->gen < 6) {
+ brw_inst_set_gen4_pop_count(brw, insn,
+ p->if_depth_in_loop[p->loop_stack_depth]);
+ }
-brw_inst *
-brw_CONT(struct brw_compile *p)
-{
- const struct brw_context *brw = p->brw;
- brw_inst *insn;
- insn = next_insn(p, BRW_OPCODE_CONTINUE);
- brw_set_dest(p, insn, brw_ip_reg());
- brw_set_src0(p, insn, brw_ip_reg());
- brw_set_src1(p, insn, brw_imm_d(0x0));
brw_inst_set_qtr_control(brw, insn, BRW_COMPRESSION_NONE);
brw_inst_set_exec_size(brw, insn, BRW_EXECUTE_8);
- /* insn->header.mask_control = BRW_MASK_DISABLE; */
- brw_inst_set_gen4_pop_count(brw, insn,
- p->if_depth_in_loop[p->loop_stack_depth]);
return insn;
}