i965/compaction: Don't set UIP on ELSE on Gen < 8.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Matt Turner 2014-08-21 16:46:49 -07:00
parent 45c3ece266
commit 118021f929
1 changed files with 2 additions and 1 deletions

View File

@ -1038,7 +1038,8 @@ update_uip_jip(struct brw_context *brw, brw_inst *insn,
brw_inst_set_jip(brw, insn, jip * scale);
if (brw_inst_opcode(brw, insn) == BRW_OPCODE_ENDIF ||
brw_inst_opcode(brw, insn) == BRW_OPCODE_WHILE)
brw_inst_opcode(brw, insn) == BRW_OPCODE_WHILE ||
(brw_inst_opcode(brw, insn) == BRW_OPCODE_ELSE && brw->gen <= 7))
return;
int32_t uip = brw_inst_uip(brw, insn) / scale;