--- src/mesa/drivers/dri/i965/brw_eu_compact.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_eu_compact.c b/src/mesa/drivers/dri/i965/brw_eu_compact.c index 40d1fc2..f6f055f 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_compact.c +++ b/src/mesa/drivers/dri/i965/brw_eu_compact.c @@ -765,11 +765,7 @@ brw_compact_instructions(struct brw_compile *p, int start_offset, break; } - if (insn->header.cmpt_control) { - offset += 8; - } else { - offset += 16; - } + offset = next_offset(store, offset); } /* p->nr_insn is counting the number of uncompacted instructions still, so @@ -792,22 +788,12 @@ brw_compact_instructions(struct brw_compile *p, int start_offset, while (start_offset + old_ip[offset / 8] * 8 != annotation[i].offset) { assert(start_offset + old_ip[offset / 8] * 8 < annotation[i].offset); - struct brw_instruction *insn = store + offset; - if (insn->header.cmpt_control) { - offset += 8; - } else { - offset += 16; - } + offset = next_offset(store, offset); } annotation[i].offset = start_offset + offset; - struct brw_instruction *insn = store + offset; - if (insn->header.cmpt_control) { - offset += 8; - } else { - offset += 16; - } + offset = next_offset(store, offset); } annotation[num_annotations].offset = p->next_insn_offset; -- 1.8.3.2 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev