diff options
author | Matt Turner <[email protected]> | 2014-08-22 22:13:41 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-09-25 11:02:36 -0700 |
commit | b92a1e21747b58ec15faad6955ac3b9b6b8d2a44 (patch) | |
tree | 1fb06696aebfb2493e06820aa56bf13f08771658 /src/mesa | |
parent | eebf1f5441740704812d981b801e8ba6674370bd (diff) |
i965/compaction: Increment offset in for loop.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_eu_compact.c | 5 |
1 files changed, 2 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 dd32175b66d..696ed9838bc 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_compact.c +++ b/src/mesa/drivers/dri/i965/brw_eu_compact.c @@ -1160,7 +1160,8 @@ brw_compact_instructions(struct brw_compile *p, int start_offset, /* Fix up control flow offsets. */ p->next_insn_offset = start_offset + offset; - for (offset = 0; offset < p->next_insn_offset - start_offset;) { + for (offset = 0; offset < p->next_insn_offset - start_offset; + offset = next_offset(brw, store, offset)) { brw_inst *insn = store + offset; int this_old_ip = old_ip[offset / 8]; int this_compacted_count = compacted_counts[this_old_ip]; @@ -1188,8 +1189,6 @@ brw_compact_instructions(struct brw_compile *p, int start_offset, } break; } - - offset = next_offset(brw, store, offset); } /* p->nr_insn is counting the number of uncompacted instructions still, so |