From: Rob Clark Date: Wed, 15 Jan 2020 22:23:23 +0000 (-0800) Subject: freedreno/ir3: number instructions from one X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a7a6c9ef0eb6b26d8410591353142207689d085;p=mesa.git freedreno/ir3: number instructions from one ra_block_compute_live_ranges() treats zero as "not yet defined", so probably best to not let this be a valid instruction # Signed-off-by: Rob Clark Part-of: --- diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c index 18c2936caa7..b9bcf3b08bd 100644 --- a/src/freedreno/ir3/ir3.c +++ b/src/freedreno/ir3/ir3.c @@ -1105,7 +1105,7 @@ ir3_clear_mark(struct ir3 *ir) unsigned ir3_count_instructions(struct ir3 *ir) { - unsigned cnt = 0; + unsigned cnt = 1; foreach_block (block, &ir->block_list) { block->start_ip = cnt; block->end_ip = cnt;