insn->header.compression_control = BRW_COMPRESSION_NONE;
insn->header.predicate_control = BRW_PREDICATE_NORMAL;
insn->header.mask_control = BRW_MASK_ENABLE;
- if (!p->single_program_flow)
+ if (!p->single_program_flow && brw->gen < 6)
insn->header.thread_control = BRW_THREAD_SWITCH;
push_if_stack(p, insn);
assert(insn->header.predicate_control == BRW_PREDICATE_NONE);
insn->header.destreg__conditionalmod = conditional;
- if (!p->single_program_flow)
- insn->header.thread_control = BRW_THREAD_SWITCH;
-
push_if_stack(p, insn);
return insn;
}
insn->header.compression_control = BRW_COMPRESSION_NONE;
insn->header.mask_control = BRW_MASK_ENABLE;
- if (!p->single_program_flow)
+ if (!p->single_program_flow && brw->gen < 6)
insn->header.thread_control = BRW_THREAD_SWITCH;
push_if_stack(p, insn);
insn->header.compression_control = BRW_COMPRESSION_NONE;
insn->header.mask_control = BRW_MASK_ENABLE;
- insn->header.thread_control = BRW_THREAD_SWITCH;
+ if (brw->gen < 6)
+ insn->header.thread_control = BRW_THREAD_SWITCH;
/* Also pop item off the stack in the endif instruction: */
if (brw->gen < 6) {