diff options
author | Matt Turner <[email protected]> | 2014-06-13 19:38:51 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-08-18 18:18:50 -0700 |
commit | 23ab55cb6c7936fd2c3d017bb9b5f5f7e5b19a06 (patch) | |
tree | a8c96b82ced38f4f8a764d225ac402945d01a83e /src/mesa | |
parent | 6cc6c3b6473ba838b86268ce2c60dfce4d5993d5 (diff) |
i965: Reverse condition ordering to let us support other gens.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu_compact.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c b/src/mesa/drivers/dri/i965/brw_eu_compact.c index 625cfbba6e7..25a96e7641c 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_compact.c +++ b/src/mesa/drivers/dri/i965/brw_eu_compact.c @@ -789,14 +789,14 @@ brw_compact_instructions(struct brw_compile *p, int start_offset, case BRW_OPCODE_ELSE: case BRW_OPCODE_ENDIF: case BRW_OPCODE_WHILE: - if (brw->gen == 6) { + if (brw->gen >= 7) { + update_uip_jip(brw, insn, this_old_ip, compacted_counts); + } else if (brw->gen == 6) { int gen6_jump_count = brw_inst_gen6_jump_count(brw, insn); target_old_ip = this_old_ip + gen6_jump_count; target_compacted_count = compacted_counts[target_old_ip]; gen6_jump_count -= (target_compacted_count - this_compacted_count); brw_inst_set_gen6_jump_count(brw, insn, gen6_jump_count); - } else { - update_uip_jip(brw, insn, this_old_ip, compacted_counts); } break; } |